aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClayton Craft2022-04-17 00:24:11 -0700
committerJieiku2022-05-30 22:15:48 -0700
commit50056964fe7561e0db371ea83a24ba99f881dce5 (patch)
treee2c7cb2f89d8e6da9b68bf31eca19a26e022fbd5
parentb7903f1f3bc8a286368e1b76cc3af2ce2b5996fe (diff)
downloadabridge-50056964fe7561e0db371ea83a24ba99f881dce5.tar.gz
abridge-50056964fe7561e0db371ea83a24ba99f881dce5.tar.bz2
abridge-50056964fe7561e0db371ea83a24ba99f881dce5.zip
social: accept url to mastodon profile
mastodon accounts can exist on many different servers besides mastodon.social, so this should really just accept a url to some profile. e.g.: mastodon = "https://freeradical.zone/@foobar"
-rw-r--r--templates/macros/social.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/macros/social.html b/templates/macros/social.html
index 824b5d3..8daf7bc 100644
--- a/templates/macros/social.html
+++ b/templates/macros/social.html
@@ -2,7 +2,7 @@
{% if config.generate_feed %}{% if config.extra.social.feed %} <a href="{{ get_url(path="atom.xml") }}" target="_blank"><span class="svg rss" title="Rss"></span></a>{% endif %}{% endif %}
{% if social_config.mail %} <a href="mailto:{{ social_config.mail }}" target="_blank"><span class="svg mail" title="Mail"></span></a>{% endif %}
-{% if social_config.mastodon %} <a href="https://mastodon.social/{{ social_config.mastodon }}/" target="_blank"><span class="svg mastodon" title="Mastodon"></span></a>{% endif %}
+{% if social_config.mastodon %} <a href="{{ social_config.mastodon }}/" target="_blank"><span class="svg mastodon" title="Mastodon"></span></a>{% endif %}
{% if social_config.element %} <a href="https://{{ social_config.element }}/" target="_blank"><span class="svg element" title="Element"></span></a>{% endif %}
{% if social_config.matrix %} <a href="https://{{ social_config.matrix }}/" target="_blank"><span class="svg matrix" title="Matrix"></span></a>{% endif %}
{% if social_config.twitter %} <a href="https://twitter.com/{{ social_config.twitter }}/" target="_blank"><span class="svg twitter" title="Twitter"></span></a>{% endif %}