update theme

This commit is contained in:
Dmitry Belyaev 2020-02-08 13:41:40 +03:00
parent ced4f07001
commit ad6618b9a1
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
2 changed files with 14 additions and 8 deletions

View File

@ -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