Commit d4f56896 authored by Jim Newsome's avatar Jim Newsome
Browse files

In People page: replaces mastodon_handle with mastodon_url

mastodon_handle assumed a hard-coded mastodon instance of
mastodon.social. mastodon_url instead takes the full URL, which includes
both the instance and the handle.
parent 9c759804
......@@ -10,7 +10,7 @@ pronoun: he
---
nickname: jnewsome
---
mastodon: sporksmith@mastodon.social
mastodon_url: https://mastodon.social/@sporksmith
---
twitter_handle: sporksmith
---
......
......@@ -14,7 +14,7 @@ gpg: https://meejah.ca/meejah.asc
---
image: /static/images/people/meejah.png
---
mastodon_handle: meejah
mastodon_url: https://mastodon.social/@meejah
---
description:
......
......@@ -12,8 +12,8 @@ label = Twitter Handle
type = string
addon_label = @
[fields.mastodon_handle]
label = Mastodon Handle
[fields.mastodon_url]
label = Mastodon URL
type = string
addon_label = @
......
......@@ -25,8 +25,8 @@
{% if item.twitter_handle %}
<a class="float-right py-4 px-2" href="https://twitter.com/{{ item.twitter_handle }}"><i class="fab fa-twitter-png-purple"></i></a>
{% endif %}
{% if item.mastodon_handle %}
<a class="float-right py-4 px-2" href="https://mastodon.social/@{{ item.mastodon_handle }}"><i class="fab fa-mastodon-png-purple"></i></a>
{% if item.mastodon_url %}
<a class="float-right py-4 px-2" href="{{ item.mastodon_url }}"><i class="fab fa-mastodon-png-purple"></i></a>
{% endif %}
{% if item.gpg %}
{% set link = site.get(item.gpg) %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment