Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/epistemehealth/health-science-journal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEpisteme Health Inc <ehi-git@epistemehealth.com>2020-12-29 19:03:53 +0300
committerEpisteme Health Inc <ehi-git@epistemehealth.com>2020-12-29 19:03:53 +0300
commitd06547e2471ab8e0aea7b8fb5fb315a3c6138e8a (patch)
treec398344b8ce87df55835ef05d2b62559d196c6b9
parent31f882c30775aaea605db19ff4833f36da1cb770 (diff)
citation_reference meta tags
-rw-r--r--exampleSite/content/article/1/1.md3
-rw-r--r--layouts/article/single.html3
-rw-r--r--layouts/partials/head_custom.html4
3 files changed, 6 insertions, 4 deletions
diff --git a/exampleSite/content/article/1/1.md b/exampleSite/content/article/1/1.md
index 6033768..7308e44 100644
--- a/exampleSite/content/article/1/1.md
+++ b/exampleSite/content/article/1/1.md
@@ -47,6 +47,7 @@ socialimage = ""
socialimagealt = ""
twitterhandle = []
-references = ["None."]
+references = ["Author, AB. (2020). Title of citation one. Journal One, 35, 23-35. doi:10.35430/doistring",
+ "Author, BC. (2025). Title of citation two. Journal Two, 35, 23-35. doi:10.35430/doistring"]
+++
diff --git a/layouts/article/single.html b/layouts/article/single.html
index 164a36d..f22563c 100644
--- a/layouts/article/single.html
+++ b/layouts/article/single.html
@@ -3,8 +3,7 @@
<head>
{{ partial "relcanonical.html" . }}
{{ partial "head.html" . }}
-{{ partial "head_custom.html" . }}
-{{ partial "social-meta.html" . }}
+{{ partial "head_custom.html" . }}{{ partial "social-meta.html" . }}
{{ partial "stylesheets.html" . }}
</head>
<body>
diff --git a/layouts/partials/head_custom.html b/layouts/partials/head_custom.html
index 1786d2c..8b09ec4 100644
--- a/layouts/partials/head_custom.html
+++ b/layouts/partials/head_custom.html
@@ -49,4 +49,6 @@
{{ end }}{{ if .Params.language }}<meta name="citation_language" content="{{ slicestr .Params.language 0 2 }}" />
{{ else }}<meta name="citation_language" content="{{ .Language }}" />
{{ end }}{{ range $.Params.keywords }}<meta name="citation_keywords" xml:lang="{{ if $.Params.language }}{{ slicestr $.Params.language 0 2 }}{{ else }}{{ $.Site.Language }}{{ end }}" content="{{ . }}" />
-{{ end }}{{ with .Params.PDF }}<meta name="citation_pdf_url" content="{{ $.Permalink }}{{ . }}" />{{ end }} \ No newline at end of file
+{{ end }}{{ with .Params.PDF }}<meta name="citation_pdf_url" content="{{ $.Permalink }}{{ . }}" />
+{{ end }}{{ range.Params.references }}<meta name="citation_reference" content="{{ htmlUnescape . }}" />
+{{ end }} \ No newline at end of file