diff options
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> |