diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-10-15 22:18:48 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-10-15 22:18:48 +0200 |
commit | 7624fe7007c75a4074b7a257a44cb58f44e03752 (patch) | |
tree | e415981da78826c5ae69167f014b88fe2774bcff /layouts/partials/metadata.html | |
parent | 0ec36ee8242364847305df19e5f7f47f8b99125c (diff) | |
download | hugo-minimalist-theme-7624fe7007c75a4074b7a257a44cb58f44e03752.tar.gz hugo-minimalist-theme-7624fe7007c75a4074b7a257a44cb58f44e03752.tar.bz2 hugo-minimalist-theme-7624fe7007c75a4074b7a257a44cb58f44e03752.zip |
Publication with resource button metadata
Diffstat (limited to 'layouts/partials/metadata.html')
-rw-r--r-- | layouts/partials/metadata.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index 211e9d4..5ad92e3 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -38,4 +38,26 @@ <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 br3 ba ma2 ph2 pv1 dib near-white bg-green" + href="{{ . }}" + target="_blank" + rel="noopener" + > + {{ $key }} + </a> + {{ end }} + {{ end }} + </p> |