diff --git a/archetypes/project/index.md b/archetypes/project/index.md index 09018675c..c9caea0b0 100644 --- a/archetypes/project/index.md +++ b/archetypes/project/index.md @@ -31,7 +31,7 @@ url_poster = "" # Custom links (optional). # Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`. -# url_custom = [{icon_pack = "fab", icon="twitter", name="Follow", url = "https://twitter.com"}] +# links = [{icon_pack = "fab", icon="twitter", name="Follow", url = "https://twitter.com"}] # Featured image # To use, add an image named `featured.jpg/png` to your page's folder. diff --git a/archetypes/publication/index.md b/archetypes/publication/index.md index 471dd948f..029cf3cd0 100644 --- a/archetypes/publication/index.md +++ b/archetypes/publication/index.md @@ -65,7 +65,7 @@ url_source = "" # Custom links (optional). # Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`. -# url_custom = [{name = "Custom Link", url = "http://example.org"}] +# links = [{name = "Custom Link", url = "http://example.org"}] # Featured image # To use, add an image named `featured.jpg/png` to your page's folder. diff --git a/exampleSite/content/project/internal-project/index.md b/exampleSite/content/project/internal-project/index.md index eb1a2adba..556bd61ea 100644 --- a/exampleSite/content/project/internal-project/index.md +++ b/exampleSite/content/project/internal-project/index.md @@ -31,7 +31,7 @@ url_code = "" # Custom links (optional). # Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`. -url_custom = [{icon_pack = "fab", icon="twitter", name="Follow", url = "https://twitter.com/georgecushen"}] +links = [{icon_pack = "fab", icon="twitter", name="Follow", url = "https://twitter.com/georgecushen"}] # Featured image # To use, add an image named `featured.jpg/png` to your project's folder. diff --git a/exampleSite/content/publication/clothing-search/index.md b/exampleSite/content/publication/clothing-search/index.md index fa5e41de6..9844b6091 100644 --- a/exampleSite/content/publication/clothing-search/index.md +++ b/exampleSite/content/publication/clothing-search/index.md @@ -57,7 +57,7 @@ url_source = "#" # Custom links (optional). # Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`. -url_custom = [{name = "Custom Link", url = "http://example.org"}] +links = [{name = "Custom Link", url = "http://example.org"}] # Does this page contain LaTeX math? (true/false) math = true diff --git a/exampleSite/content/publication/person-re-id/index.md b/exampleSite/content/publication/person-re-id/index.md index 58e541ef1..9c40597b3 100644 --- a/exampleSite/content/publication/person-re-id/index.md +++ b/exampleSite/content/publication/person-re-id/index.md @@ -65,7 +65,7 @@ url_source = "" # Custom links (optional). # Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`. -# url_custom = [{name = "Custom Link", url = "http://example.org"}] +# links = [{name = "Custom Link", url = "http://example.org"}] # Does this page contain LaTeX math? (true/false) math = true diff --git a/layouts/partials/page_links.html b/layouts/partials/page_links.html index 8cbcf00b5..106347d67 100644 --- a/layouts/partials/page_links.html +++ b/layouts/partials/page_links.html @@ -130,7 +130,7 @@ DOI {{ end }} -{{ range $.Params.url_custom }} +{{ range $.Params.links }} {{ $pack := or .icon_pack "fas" }} {{ $pack_prefix := $pack }} {{ if in (slice "fab" "fas" "far" "fal") $pack }} diff --git a/layouts/partials/page_links_div.html b/layouts/partials/page_links_div.html index f4d18caa8..979b9268d 100644 --- a/layouts/partials/page_links_div.html +++ b/layouts/partials/page_links_div.html @@ -18,7 +18,7 @@ {{ $cite_link = true }} {{ end }} -{{ if $cite_link | or $pdf_link | or .Params.external_link | or .Params.url_preprint | or .Params.url_pdf | or .Params.url_slides | or .Params.url_video | or .Params.url_source | or .Params.url_code | or .Params.url_dataset | or .Params.url_poster | or .Params.url_project | or .Params.url_custom | or .Params.projects | or .Params.slides }} +{{ if $cite_link | or $pdf_link | or .Params.external_link | or .Params.url_preprint | or .Params.url_pdf | or .Params.url_slides | or .Params.url_video | or .Params.url_source | or .Params.url_code | or .Params.url_dataset | or .Params.url_poster | or .Params.url_project | or .Params.links | or .Params.projects | or .Params.slides }}