From fa13a9b9e2764775240ce05d4d911f02feb4339a Mon Sep 17 00:00:00 2001 From: vimux Date: Wed, 25 Apr 2018 21:51:50 +0300 Subject: [PATCH] Unify name convention for config params (camelCase) * disable_comments -> comments * dateformat -> dateFormat * CardsColumns -> cardsPerRow --- layouts/_default/list.html | 2 +- layouts/partials/comments.html | 2 +- layouts/partials/post_meta.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index eb81b25..c0c758d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -8,7 +8,7 @@ {{ end }}
{{ range .Paginator.Pages }} -
+
{{ .Render "summary" }}
{{ end }} diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index b7b93c6..ad3ca18 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -1,4 +1,4 @@ -{{ if and .Site.DisqusShortname (not (or .Site.Params.disable_comments .Params.disable_comments)) }} +{{ if and .Site.DisqusShortname (not (or .Site.Params.comments .Params.comments)) }}
{{ template "_internal/disqus.html" . }}
diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 0841022..dcd4bb9 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -1,8 +1,8 @@ {{- if not .Date.IsZero }} - + {{ end }} {{- if ne .Date .Lastmod }} - + {{- end }} {{- if .Params.categories }}