Skip to content

Commit 1cad636

Browse files
committed
Fall back to site.author.name if no page.author
1 parent 342d651 commit 1cad636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<!-- Dublin Core metadata for Zotero -->
2222
<meta property="dc:title" content="{{ page.title }}" />
23-
<meta property="dc:creator" content="{{ page.author }}" />
23+
<meta property="dc:creator" content="{% if page.author %}{{ page.author }}{% else %}{{ site.author.name }}{% endif %}" />
2424
<meta property="dc:identifier" content="{{ resource_url }}" />
2525
{% if page.editor %}<meta property="dc:contributor" content="{{ page.editor }}" />{% endif %}
2626
{% if page.publication-date %}<meta property="dc:date" content="{{ page.publication-date }}" />{% endif %}

0 commit comments

Comments
 (0)