layouts: access DateForm and DateFormFull param as string.

This fix the usage of this theme with Hugo 0.18-dev
This commit is contained in:
remeh
2016-11-07 19:09:37 +01:00
parent 8fbb5ca033
commit 07da40c3cf
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
<li class="post-item">
<span class="meta">{{ .Date.Format .Site.Params.DateForm }}</span>
<span class="meta">{{ .Date.Format (.Site.Param "DateForm") }}</span>
<a href="{{ .Permalink }}"><span>{{ .Title }}</span></a>
</li>