From 02d84dff98f828aa760b3867aa65fa2b461b9a57 Mon Sep 17 00:00:00 2001 From: Andrew Fowlie Date: Sun, 16 Sep 2018 02:49:13 +1000 Subject: [PATCH] publication: Add optional DOI link (#677) --- archetypes/publication.md | 3 +++ exampleSite/content/publication/clothing-search.md | 3 +++ exampleSite/content/publication/person-re-identification.md | 3 +++ layouts/partials/publication_links.html | 5 +++++ 4 files changed, 14 insertions(+) diff --git a/archetypes/publication.md b/archetypes/publication.md index d4aa2c16..15a5b41a 100644 --- a/archetypes/publication.md +++ b/archetypes/publication.md @@ -57,6 +57,9 @@ url_source = "" # Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`. # url_custom = [{name = "Custom Link", url = "http://example.org"}] +# Digital Object Identifier (DOI) +doi = "" + # Does this page contain LaTeX math? (true/false) math = false diff --git a/exampleSite/content/publication/clothing-search.md b/exampleSite/content/publication/clothing-search.md index e1a405c1..4218f97b 100644 --- a/exampleSite/content/publication/clothing-search.md +++ b/exampleSite/content/publication/clothing-search.md @@ -57,6 +57,9 @@ url_source = "#" # Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`. url_custom = [{name = "Custom Link", url = "http://example.org"}] +# Digital Object Identifier (DOI) +doi = "" + # Does this page contain LaTeX math? (true/false) math = true diff --git a/exampleSite/content/publication/person-re-identification.md b/exampleSite/content/publication/person-re-identification.md index 22b67afb..fe918ccb 100644 --- a/exampleSite/content/publication/person-re-identification.md +++ b/exampleSite/content/publication/person-re-identification.md @@ -57,6 +57,9 @@ url_source = "" # Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`. # url_custom = [{name = "Custom Link", url = "http://example.org"}] +# Digital Object Identifier (DOI) +doi = "" + # Does this page contain LaTeX math? (true/false) math = true diff --git a/layouts/partials/publication_links.html b/layouts/partials/publication_links.html index 402a9c39..1c61729a 100644 --- a/layouts/partials/publication_links.html +++ b/layouts/partials/publication_links.html @@ -66,6 +66,11 @@ {{ i18n "btn_source" }} {{ end }} +{{ with $.Params.doi }} + + DOI + +{{ end }} {{ range $.Params.url_custom }} {{ .name }}