aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/metadata.html
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2022-01-01 21:03:20 +0100
committerÓscar Nájera <hi@oscarnajera.com>2022-01-01 21:03:20 +0100
commit113d4e53416ddf42212da6f217670bdc6f0c9dd8 (patch)
tree7e9bcd4a2a274e45da5538fe67c525dfb36680de /layouts/partials/metadata.html
parente34ded01904b07456a48cf28f1a5a2d2d77a0be7 (diff)
downloadhugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.tar.gz
hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.tar.bz2
hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.zip
Import new minimalist design
Diffstat (limited to 'layouts/partials/metadata.html')
-rw-r--r--layouts/partials/metadata.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html
new file mode 100644
index 0000000..77373f9
--- /dev/null
+++ b/layouts/partials/metadata.html
@@ -0,0 +1,24 @@
+{{ $dateTime := .PublishDate.Format "2006-01-02" }}
+{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
+
+<p class="f6 lh-copy mv0 ph4 pv2">By {{ range .Params.authors }} {{ . }} {{ end }}
+<br/>
+<i class="far fa-calendar"></i>
+<time class="f6 lh-copy mv0" datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
+|
+{{ .ReadingTime }} mins read
+{{ with .Params.tags }}
+| <i class="fas fa-tags"></i>
+ {{ range . }}
+ {{ $href := print (absURL "tags/") (urlize .) }}
+ <a class="link underline light-gray" href="{{ $href }}">{{ . }}</a>
+ {{ end }}
+{{ end }}
+{{ with .Params.categories }}
+| <i class="fas fa-bookmark"></i>
+ {{ range . }}
+ {{ $href := print (absURL "tags/") (urlize .) }}
+ <a class="link underline light-gray" href="{{ $href }}">{{ . }}</a>
+ {{ end }}
+{{ end }}
+</p>