diff options
Diffstat (limited to 'cl-theme')
-rw-r--r-- | cl-theme/templates/article.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cl-theme/templates/article.html b/cl-theme/templates/article.html index b0ab9d2..8f1a4d8 100644 --- a/cl-theme/templates/article.html +++ b/cl-theme/templates/article.html @@ -96,7 +96,7 @@ <!-- post footer --> <div class="card-content-footer-small"> <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" /> @@ -104,7 +104,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" /> @@ -112,7 +112,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" /> |