From fb298e1215e7e3cbc09f9d6831927b4f246efcb6 Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Mon, 20 Jul 2015 20:31:45 +0200 Subject: [PATCH] Add exclusion for posts Posts exclude themselves from the 'Read more' section. --- layouts/partials/latest-posts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/latest-posts.html b/layouts/partials/latest-posts.html index fedc57b..4ed1374 100644 --- a/layouts/partials/latest-posts.html +++ b/layouts/partials/latest-posts.html @@ -2,7 +2,7 @@

{{ with .Site.Params.readMore }}{{ . }}{{ else }}Read more{{ end }}

{{ range first 10 .Site.Pages }} {{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} - {{ if ne $url "about/" }} + {{ if and (ne $url "about/") (ne $.Title .Title) }}
  • {{ .Title }}