Skip to content

Commit 0a93626

Browse files
authored
feat: implement fediverse:creator meta tag option (#24)
* feat: implement fediverse:creator meta tag option * docs: add fediverse creator tag
1 parent e13f18b commit 0a93626

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,22 @@ theme_config:
6969
footer: true # Show/hide site footer (default: true)
7070
```
7171

72+
### Fediverse Creator tag
73+
74+
Monoholic supports `fediverse:creator` meta tag:
75+
76+
```yaml
77+
fediverse_creator: @username@social.example.com
78+
```
79+
80+
Setting `fediverse_creator` tag appends following tag to the site's header:
81+
82+
```html
83+
<meta name="fediverse:creator" content="@username@social.example.com">
84+
```
85+
86+
[See Also](https://docs.joinmastodon.org/user/profile/#attribution)
87+
7288
### Analytics
7389

7490
Monoholic has built-in support for [GoatCounter](https://www.goatcounter.com/), a privacy-friendly analytics platform. Add your GoatCounter subdomain to `_config.yml`:

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ theme_config:
1919
footer: true # set to false to hide the footer
2020

2121
# goatcounter: mycode # your GoatCounter site code (e.g. mycode.goatcounter.com)
22+
# fediverse_creator: @example@example.social # this enables author attirbution
2223

2324
plugins:
2425
- jekyll-feed

_includes/head.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
<meta charset="utf-8">
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
44
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
6+
{%- if site.fediverse_creator -%}
7+
<meta name="fediverse:creator" content="{{ site.fediverse_creator }}">
8+
{%- endif -%}
9+
510
{%- seo -%}
611
<link rel="preconnect" href="https://fonts.googleapis.com">
712
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

0 commit comments

Comments
 (0)