Skip to content

Commit

Permalink
feat: option to override author in metatags
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Sep 5, 2023
1 parent 21f650f commit ec4a2b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/layouts/partials/metatags.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
{# keywords / tags #}
{% set keywords = page.tags|default([])|merge(site.keywords|default([]))|e %}
{# author #}
{% if author is not defined or author is empty %}
{% set author = page.author|default(site.author|default(''))|e %}
{% endif %}
{% if author is not empty %}
{%- if author is not iterable %}
{%- set author = {'name': author} %}
Expand Down

0 comments on commit ec4a2b0

Please sign in to comment.