readd _copy params to templates

This commit is contained in:
Jan Steinke 2019-02-20 21:19:14 +01:00
parent a161d51020
commit 0b5445ac2c
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
{{/* Use $section_name to get the section title. Use "with" to only show it if it exists */}}
{{ with .Site.GetPage "section" $section_name }}
<h1 class="flex-none">
{{ i18n "recentTitle" . }}
{{ $.Param "recent_copy" | default (i18n "recentTitle" .) }}
</h1>
{{ end }}

View File

@ -20,7 +20,7 @@
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
{{ .Summary }}
</div>
<a href="{{.URL}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{ i18n "readMore" }}</a>
<a href="{{.URL}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{ $.Param "read_more_copy" | default (i18n "readMore") }}</a>
{{/* TODO: add author
<p class="f6 lh-copy mv0">By {{ .Author }}</p> */}}
</div>