Skip to content

Commit

Permalink
Fall back to site.author.name if no page.author
Browse files Browse the repository at this point in the history
  • Loading branch information
karlstolley committed Sep 16, 2019
1 parent 342d651 commit 1cad636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

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

0 comments on commit 1cad636

Please sign in to comment.