Skip to content

Commit b3b776e

Browse files
committed
feat(author): adds support for fediverse:creator meta tag
1 parent cecfc42 commit b3b776e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ social:
3636
# It will be displayed as the default author of the posts and the copyright owner in the Footer
3737
name: your_full_name
3838
email: [email protected] # change to your email address
39+
fediverse_handle: "@[email protected]" # change to your fediverse handle or leave empty
3940
links:
4041
# The first element serves as the copyright owner's link
4142
- https://twitter.com/username # change to your Twitter homepage

_includes/head.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
{% seo title=false %}
1414
{%- endcapture -%}
1515

16+
{%- if site.social.fediverse_handle %}
17+
<!-- Fediverse handle/creator -->
18+
<meta name="fediverse:creator" content="{{ site.social.fediverse_handle }}" />
19+
{% endif %}
20+
1621
<!-- Setup Open Graph image -->
1722

1823
{% if page.image %}
@@ -27,7 +32,7 @@
2732
{%- capture new_url -%}{{ img_url }}{%- endcapture -%}
2833

2934
{% assign seo_tags = seo_tags | replace: old_url, new_url %}
30-
{% endunless %}
35+
{% endunless %}
3136

3237
{% elsif site.social_preview_image %}
3338
{%- capture img_url -%}

0 commit comments

Comments
 (0)