only format Zotero metadata if there is a publication date in the Frontmatter

This commit is contained in:
constantinos 2023-08-22 22:57:26 +03:00
parent 17f0fccb5b
commit f5d48b12cc

View file

@ -48,6 +48,9 @@ Tags: citation_keywords (semicolon-separated)
-->
<!--ZOTERO-COMPATIBLE METADATA FIELDS ######################################################################### -->
{{ if .Page.Params.publishDate }}
<!-- DYNAMIC META FIELDS -->
<!-- AUTHORS (probabbly better to make one meta field for all.. but for now this works-->
{{ if .Params.contributors }}
@ -72,8 +75,6 @@ Tags: citation_keywords (semicolon-separated)
{{ $k:=delimit . " ; " }}
<meta name = "citation_keywords" content= "{{ $k }}" />
{{ end }}
<!-- URL: by default it doesn't get it-->
<meta name = "citation_fulltext_html_url" content = "{{ .Page.Permalink }}" />
<!-- ISSUE // Issue: citation_issue-->
<meta name = "citation_issue" content = "The Issue" />
<!-- STATIC META FIELDS -->
@ -83,6 +84,11 @@ Tags: citation_keywords (semicolon-separated)
<meta name = "citation_journal_abbrev" content = "GDKPJ?"/>
<!-- ISSN -->
<meta name = "citation_issn" content = "The ISSN"/>
<!-- URL TEST -- by default it doesn't get it-->
<meta name = "citation_fulltext_html_url" content = "{{ .Page.Permalink }}" />
{{ end }}
<!--########################################################################################################### -->