Fix parameters on layouts/_default/single.html so follow the same style in the rest of the files.

This commit is contained in:
Emiliano Tortorella 2018-11-14 18:46:53 -04:00
parent 24af405e73
commit 55e62448dd

View File

@ -6,7 +6,7 @@
{{ define "main" }}
{{ $section := .Site.GetPage "section" .Section }}
<article class="{{ .Site.Param.post_article_class | default "flex-l flex-wrap justify-between mw8 center ph3 ph0-l"}}">
<article class="{{ .Site.Params.post_article_class | default "flex-l flex-wrap justify-between mw8 center ph3 ph0-l"}}">
<header class="mt4 w-100">
<p class="f6 b helvetica tracked">
@ -16,7 +16,7 @@
*/}}
{{with .CurrentSection.Title }}{{. | upper }}{{end}}
</p>
<h1 class="{{ $.Param "post_title_class" | default "f1 athelas mb1" }}">
<h1 class="{{ .Site.Params.post_title_class | default "f1 athelas mb1" }}">
{{- .Title -}}
</h1>
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
@ -35,7 +35,7 @@
{{ end }}
</header>
<main class="{{ .Site.Param.post_main_class | default "nested-copy-line-height lh-copy f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l" }}">
<main class="{{ .Site.Params.post_main_class | default "nested-copy-line-height lh-copy f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l" }}">
{{- .Content -}}
{{- partial "tags.html" . -}}
<div class="mt6">