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 | |
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')
-rw-r--r-- | layouts/partials/metadata.html | 22 | ||||
-rw-r--r-- | layouts/partials/post.html | 2 |
2 files changed, 23 insertions, 1 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> diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 08583cb..1c42c00 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -27,7 +27,7 @@ </div> </div> </a> - {{ if in (slice "post" "talk") .Section }} + {{ if in (slice "post" "talk" "publication") .Section }} {{ partial "metadata.html" . }} {{ end }} </article> |