Unify name convention for config params (camelCase)

* disable_comments -> comments
* dateformat -> dateFormat
* CardsColumns -> cardsPerRow
This commit is contained in:
vimux 2018-04-25 21:51:50 +03:00
parent d5e00b4ac7
commit fa13a9b9e2
3 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@
{{ end }}
<div class="cards">
{{ range .Paginator.Pages }}
<div class="card{{ with .Site.Params.CardsColumns }} card--{{ . }}col{{ else }} card--2col{{ end }}">
<div class="card{{ with .Site.Params.cardsPerRow }} card--{{ . }}col{{ else }} card--2col{{ end }}">
{{ .Render "summary" }}
</div>
{{ end }}

View file

@ -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)) }}
<section class="comments block">
{{ template "_internal/disqus.html" . }}
</section>

View file

@ -1,8 +1,8 @@
{{- if not .Date.IsZero }}
<time class="post__meta-published meta-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format ( .Site.Params.dateformat | default "January 02, 2006" )}}</time>
<time class="post__meta-published meta-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format ( .Site.Params.dateFormat | default "January 02, 2006" )}}</time>
{{ end }}
{{- if ne .Date .Lastmod }}
<time class="post__meta-lastmod meta-lastmod" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05" }}">{{ T "meta_lastmod" }}: {{ .Lastmod.Format ( .Site.Params.dateformat | default "January 02, 2006" )}}</time>
<time class="post__meta-lastmod meta-lastmod" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05" }}">{{ T "meta_lastmod" }}: {{ .Lastmod.Format ( .Site.Params.dateFormat | default "January 02, 2006" )}}</time>
{{- end }}
{{- if .Params.categories }}
<span class="post__meta-categories meta-categories">