update theme
This commit is contained in:
parent
ced4f07001
commit
ad6618b9a1
@ -23,14 +23,19 @@
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.showRelatedPosts }}
|
||||
{{ $related := .Site.RegularPages.Related . | first 3 }}
|
||||
{{ with $related }}
|
||||
{{ range first 1 (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
||||
{{ $.Scratch.Set "has_related" true }}
|
||||
{{ end }}
|
||||
|
||||
{{ if $.Scratch.Get "has_related" }}
|
||||
<h4 class="see-also">{{ i18n "seeAlso" }}</h4>
|
||||
<ul>
|
||||
{{ range . }}
|
||||
{{ $num_to_show := .Site.Params.related_content_limit | default 5 }}
|
||||
{{ range first $num_to_show (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</article>
|
||||
@ -50,6 +55,7 @@
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (and .Site.Params.comments (ne .Type "page"))) }}
|
||||
{{ partial "remark42.html" . }}
|
||||
{{ if .Site.DisqusShortname }}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit b71c2754dc32bb8690fabe795c300a7432243191
|
||||
Subproject commit 1ff3894b84b1802433b58e22dd22f4eb46a49fa9
|
Loading…
Reference in New Issue
Block a user