From 10207f629e1fca6497a0dbbd79e416536ee0958f Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Thu, 19 Oct 2023 20:06:55 +0200 Subject: Meta links by user dictionary --- layouts/partials/metadata.html | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) (limited to 'layouts/partials/metadata.html') 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 }} + + {{ $key }} + +{{ end }} +

By @@ -38,26 +49,4 @@ {{ . }} {{ end }} {{ end }} - - -
- {{ 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 }} - - {{ $key }} - - {{ end }} - {{ end }} -

-- cgit v1.2.3