From 081b29c0d085910e13454637546e78e9556d3936 Mon Sep 17 00:00:00 2001 From: Emiliano Tortorella Date: Sat, 19 Jan 2019 08:32:12 -0500 Subject: [PATCH] Added stories dates on relatos. --- layouts/_default/single.html | 6 ++++-- layouts/partials/story-dates.html | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 layouts/partials/story-dates.html 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 }}