aboutsummaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-19 20:06:55 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-19 20:06:55 +0200
commit10207f629e1fca6497a0dbbd79e416536ee0958f (patch)
treeca3566fe5919d753017f21ead4654d33936a9272 /layouts
parenta5a438cf9026ecf7f0b575e09cf16ba79b67e188 (diff)
downloadhugo-minimalist-theme-10207f629e1fca6497a0dbbd79e416536ee0958f.tar.gz
hugo-minimalist-theme-10207f629e1fca6497a0dbbd79e416536ee0958f.tar.bz2
hugo-minimalist-theme-10207f629e1fca6497a0dbbd79e416536ee0958f.zip
Meta links by user dictionary
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/metadata.html33
1 files changed, 11 insertions, 22 deletions
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html
index 4a9129e..5816186 100644
--- a/layouts/partials/metadata.html
+++ b/layouts/partials/metadata.html
@@ -1,6 +1,17 @@
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
+{{ range $key, $val := .Params.meta_links }}
+ <a
+ class="fr f6 link ba br3 ma2 ph2 pv1 dib w3-text-theme w3-hover-theme ttu"
+ href="{{ . }}"
+ target="_blank"
+ rel="noopener"
+ >
+ {{ $key }}
+ </a>
+{{ end }}
+
<p class="f6 lh-copy mv0 ph4 pv2">
By
@@ -38,26 +49,4 @@
<a class="link underline near-black" href="{{ $href }}">{{ . }}</a>
{{ end }}
{{ end }}
-
-
- <br />
- {{ range $key, $val := (dict "DOI" .Params.doi
- "PDF" .Params.url_pdf
- "Slides" .Params.url_slides
- "Video" .Params.url_video
- "Code" .Params.url_code
- )
- }}
- {{ with $val }}
- <a
- class="f6 link ba br3 ma2 ph2 pv1 dib w3-text-theme w3-hover-theme"
- href="{{ . }}"
- target="_blank"
- rel="noopener"
- >
- {{ $key }}
- </a>
- {{ end }}
- {{ end }}
-
</p>