Unify name convention for config params (camelCase)
* disable_comments -> comments * dateformat -> dateFormat * CardsColumns -> cardsPerRow
This commit is contained in:
parent
d5e00b4ac7
commit
fa13a9b9e2
3 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="cards">
|
<div class="cards">
|
||||||
{{ range .Paginator.Pages }}
|
{{ 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" }}
|
{{ .Render "summary" }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -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">
|
<section class="comments block">
|
||||||
{{ template "_internal/disqus.html" . }}
|
{{ template "_internal/disqus.html" . }}
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{{- if not .Date.IsZero }}
|
{{- 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 }}
|
{{ end }}
|
||||||
{{- if ne .Date .Lastmod }}
|
{{- 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 }}
|
{{- end }}
|
||||||
{{- if .Params.categories }}
|
{{- if .Params.categories }}
|
||||||
<span class="post__meta-categories meta-categories">
|
<span class="post__meta-categories meta-categories">
|
||||||
|
|
Loading…
Reference in a new issue