sphinx_nervproject_theme/sphinx_nervproject_theme/share.html

80 lines
5.4 KiB
HTML
Raw Normal View History

2020-05-16 14:27:03 +02:00
<section>
{% set post = ablog[pagename] %}
2020-06-19 23:39:59 +02:00
<div class="center social-share no-print">
2020-05-16 14:27:03 +02:00
<p>{{ gettext('Like this article? Share it!') }}</p>
<ul class="social">
<li>
<a class="fasvglink diaspora"
href="https://share.diasporafoundation.org/?title={{ title|urlencode }}&url={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
target="_blank"
title="{{ gettext('Share on Diaspora') }}">
2020-07-31 15:50:49 +02:00
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
2020-05-16 14:27:03 +02:00
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#diaspora">
</use>
</svg> Diaspora*</a>
</li>
<li>
<a class="fasvglink mastodon"
href="https://mastodon.kujiu.org/share?text={{ title|urlencode }}:%20{{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}{% if post %}{% for tag in post.tags %}%20%23{{ tag }}{% endfor %}{% endif %}{% if theme_mastodon_user %}%20{{ theme_mastodon_user }}{% endif %}"
target="_blank"
title="{{ gettext('Share on Mastodon') }}">
2020-07-31 15:50:49 +02:00
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
2020-05-16 14:27:03 +02:00
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#mastodon">
</use>
</svg> Mastodon</a>
</li>
<li>
<a class="fasvglink facebook"
href="https://www.facebook.com/sharer/sharer.php?u={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
target="_blank"
title="{{ gettext('Share on Facebook') }}">
2020-07-31 15:50:49 +02:00
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
2020-05-16 14:27:03 +02:00
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#facebook">
</use>
</svg> Facebook</a>
</li>
<li>
<a class="fasvglink linkedin"
href="https://www.linkedin.com/shareArticle?mini=true&url={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}&title={{ title|urlencode }}&source={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
target="_blank"
title="{{ gettext('Share on LinkedIn') }}">
2020-07-31 15:50:49 +02:00
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
2020-05-16 14:27:03 +02:00
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#linkedin">
</use>
</svg> LinkedIn</a>
</li>
<li>
<a class="fasvglink reddit"
href="https://www.reddit.com/submit?url={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}&title={{ title|urlencode }}"
target="_blank"
title="{{ gettext('Share on Reddit') }}">
2020-07-31 15:50:49 +02:00
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
2020-05-16 14:27:03 +02:00
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#reddit">
</use>
</svg> Reddit</a>
</li>
<li>
<a class="fasvglink hackernews"
href="https://news.ycombinator.com/submitlink?t={{ title|urlencode }}&u={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
target="_blank"
title="{{ gettext('Share on HackerNews') }}">
2020-07-31 15:50:49 +02:00
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
2020-05-16 14:27:03 +02:00
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#hacker-news">
</use>
</svg> HackerNews</a>
</li>
<li>
<a class="fasvglink email"
href="mailto:?subject={{ title|urlencode }}&body={{
ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
target="_blank"
title="{{ gettext('Share by email') }}">
2020-07-31 15:50:49 +02:00
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
2020-05-16 14:27:03 +02:00
<use xlink:href="{{ pathto('_static/fa/solid.svg', 1)}}#mail-bulk">
</use>
</svg> {{ gettext('Email') }}</a>
</li>
</ul>
</div>
</section>