diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6bff6e0..dc65c9a 100755 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -18,11 +18,13 @@

{{- .Title -}} + {{ partial "story-dates.html" . }} +
+ {{ partial "date.html" . }} +

{{/* 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: 1) A global config `params` value is set `show_reading_time = true` diff --git a/layouts/partials/story-dates.html b/layouts/partials/story-dates.html new file mode 100644 index 0000000..bbe510d --- /dev/null +++ b/layouts/partials/story-dates.html @@ -0,0 +1,6 @@ + +{{ with $.Params.init_date }} +

+ ({{ $.Params.init_date }} al {{ $.Params.end_date }}) +

+{{ end }}