Skip to content

Commit

Permalink
Merge pull request #2 from OulipianSummer/feature-webmentions
Browse files Browse the repository at this point in the history
Prepare for webmentions
  • Loading branch information
OulipianSummer authored Apr 22, 2024
2 parents 2158873 + 4f913e2 commit a1d068f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ google_analytics:
goatcounter:
id: oulipiansummer # fill in your Goatcounter ID

webmentions:
id: # fill in your webmentions ID

# Prefer color scheme setting.
#
# Note: Keep empty will follow the system prefer color by default,
Expand Down
4 changes: 4 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
<link rel="dns-prefetch" href="https://www.googletagmanager.com">
{% endif %}

{% if site.webmentions.id != empty and site.webmentions.id %}
<link rel="webmention" href="https://webmention.io/{{ site.webmentions.id }}/webmention" />
{% endif %}

<!-- Bootstrap -->
<link rel="stylesheet" href="{{ site.data.origin[type].bootstrap.css | relative_url }}">

Expand Down
2 changes: 1 addition & 1 deletion _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h1 class="site-title">
{% assign link_types = 'noopener noreferrer' %}
{% endunless %}

{% if entry.type == 'mastodon' %}
{% if entry.type == 'mastodon' or entry.type == 'github' %}
{% assign link_types = link_types | append: ' me' | strip %}
{% endif %}

Expand Down

0 comments on commit a1d068f

Please sign in to comment.