only format Zotero metadata if there is a publication date in the Frontmatter
This commit is contained in:
parent
054eb5f21b
commit
5420f92902
1 changed files with 8 additions and 2 deletions
|
@ -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 }}
|
||||
<!--########################################################################################################### -->
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue