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