From ad6618b9a10d74c61de19b35a49a64e2ebd91166 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 8 Feb 2020 13:41:40 +0300 Subject: [PATCH] update theme --- layouts/_default/single.html | 20 +++++++++++++------- themes/beautifulhugo | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9ea1861..2ba6945 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -23,14 +23,19 @@ {{ end }} {{ if .Site.Params.showRelatedPosts }} - {{ $related := .Site.RegularPages.Related . | first 3 }} - {{ with $related }} -

{{ i18n "seeAlso" }}

- + + {{ if $.Scratch.Get "has_related" }} +

{{ i18n "seeAlso" }}

+ + {{ end }} {{ end }} @@ -50,6 +55,7 @@ {{ 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 }} diff --git a/themes/beautifulhugo b/themes/beautifulhugo index b71c275..1ff3894 160000 --- a/themes/beautifulhugo +++ b/themes/beautifulhugo @@ -1 +1 @@ -Subproject commit b71c2754dc32bb8690fabe795c300a7432243191 +Subproject commit 1ff3894b84b1802433b58e22dd22f4eb46a49fa9