only format Zotero metadata if there is a publication date in the Frontmatter
This commit is contained in:
parent
17f0fccb5b
commit
f5d48b12cc
1 changed files with 8 additions and 2 deletions
|
@ -48,6 +48,9 @@ Tags: citation_keywords (semicolon-separated)
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!--ZOTERO-COMPATIBLE METADATA FIELDS ######################################################################### -->
|
<!--ZOTERO-COMPATIBLE METADATA FIELDS ######################################################################### -->
|
||||||
|
|
||||||
|
|
||||||
|
{{ if .Page.Params.publishDate }}
|
||||||
<!-- DYNAMIC META FIELDS -->
|
<!-- DYNAMIC META FIELDS -->
|
||||||
<!-- AUTHORS (probabbly better to make one meta field for all.. but for now this works-->
|
<!-- AUTHORS (probabbly better to make one meta field for all.. but for now this works-->
|
||||||
{{ if .Params.contributors }}
|
{{ if .Params.contributors }}
|
||||||
|
@ -72,8 +75,6 @@ Tags: citation_keywords (semicolon-separated)
|
||||||
{{ $k:=delimit . " ; " }}
|
{{ $k:=delimit . " ; " }}
|
||||||
<meta name = "citation_keywords" content= "{{ $k }}" />
|
<meta name = "citation_keywords" content= "{{ $k }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<!-- URL: by default it doesn't get it-->
|
|
||||||
<meta name = "citation_fulltext_html_url" content = "{{ .Page.Permalink }}" />
|
|
||||||
<!-- ISSUE // Issue: citation_issue-->
|
<!-- ISSUE // Issue: citation_issue-->
|
||||||
<meta name = "citation_issue" content = "The Issue" />
|
<meta name = "citation_issue" content = "The Issue" />
|
||||||
<!-- STATIC META FIELDS -->
|
<!-- STATIC META FIELDS -->
|
||||||
|
@ -83,6 +84,11 @@ Tags: citation_keywords (semicolon-separated)
|
||||||
<meta name = "citation_journal_abbrev" content = "GDKPJ?"/>
|
<meta name = "citation_journal_abbrev" content = "GDKPJ?"/>
|
||||||
<!-- ISSN -->
|
<!-- ISSN -->
|
||||||
<meta name = "citation_issn" content = "The 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 }}
|
||||||
<!--########################################################################################################### -->
|
<!--########################################################################################################### -->
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue