Fix social network support

This commit is contained in:
Jesús
2021-12-06 12:58:23 -05:00
parent 6ab75052f5
commit 52af188972
20 changed files with 49 additions and 11 deletions

View File

@@ -181,7 +181,7 @@
<div class="card-content">
<div class="content social">
<div class="navbar is-social-center">
<a class="navbar-item" href="{{ SOCIAL['gnusocial'] }}">
<a class="navbar-item" {% if article.gnusocial %}href="{{ article.gnusocial }}" rel="me noopener noreferrer" target="_blank" {% else %}href="#"{% endif %}>
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#gnusocial" />
@@ -189,7 +189,7 @@
</svg>
</span>
</a>
<a class="navbar-item" href="{{ SOCIAL['diaspora'] }}">
<a class="navbar-item" {% if article.diaspora %}href="{{ article.diaspora }}" rel="me noopener noreferrer" target="_blank" {% else %}href="#"{% endif %}>
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#diaspora" />
@@ -197,7 +197,7 @@
</svg>
</span>
</a>
<a class="navbar-item" href="{{ SOCIAL['mastodon'] }}">
<a class="navbar-item" {% if article.mastodom %}href="{{ article.mastodom }}" rel="me noopener noreferrer" target="_blank" {% else %}href="#"{% endif %}>
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mastodon" />