mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
Added stories dates on relatos.
This commit is contained in:
parent
4eb44cc94c
commit
081b29c0d0
@ -18,11 +18,13 @@
|
|||||||
</p>
|
</p>
|
||||||
<h1 class="{{ .Site.Params.post_title_class | default "f1 athelas mb1" }}">
|
<h1 class="{{ .Site.Params.post_title_class | default "f1 athelas mb1" }}">
|
||||||
{{- .Title -}}
|
{{- .Title -}}
|
||||||
|
{{ partial "story-dates.html" . }}
|
||||||
|
<div class="avenir mid-gray normal">
|
||||||
|
{{ partial "date.html" . }}
|
||||||
|
</div>
|
||||||
</h1>
|
</h1>
|
||||||
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
|
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
|
||||||
|
|
||||||
{{ partial "date.html" . }}
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Show "reading time" and "word count" but only if one of the following are true:
|
Show "reading time" and "word count" but only if one of the following are true:
|
||||||
1) A global config `params` value is set `show_reading_time = true`
|
1) A global config `params` value is set `show_reading_time = true`
|
||||||
|
6
layouts/partials/story-dates.html
Normal file
6
layouts/partials/story-dates.html
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
{{ with $.Params.init_date }}
|
||||||
|
<p class="f6 mb4 mt0">
|
||||||
|
({{ $.Params.init_date }} al {{ $.Params.end_date }})
|
||||||
|
</p>
|
||||||
|
{{ end }}
|
Loading…
x
Reference in New Issue
Block a user