diff options
author | Jesús <heckyel@hyperbola.info> | 2021-12-06 12:58:23 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-12-06 12:58:23 -0500 |
commit | 52af188972d4dd0c434b02cd14ee62c064ebbb92 (patch) | |
tree | 68ee29222b0d27fdd6f9c4d5bcfc6d4b63e4a4b7 /cl-theme | |
parent | 6ab75052f5c8c90aaee3bff645514f991bfbf4da (diff) | |
download | cl-52af188972d4dd0c434b02cd14ee62c064ebbb92.tar.lz cl-52af188972d4dd0c434b02cd14ee62c064ebbb92.tar.xz cl-52af188972d4dd0c434b02cd14ee62c064ebbb92.zip |
Fix social network support
Diffstat (limited to 'cl-theme')
-rw-r--r-- | cl-theme/templates/base.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cl-theme/templates/base.html b/cl-theme/templates/base.html index 8785276..402ec64 100644 --- a/cl-theme/templates/base.html +++ b/cl-theme/templates/base.html @@ -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" /> |