compartir
This commit is contained in:
parent
14ccaf8961
commit
2fa97b40e1
3 changed files with 25 additions and 24 deletions
22
_data/en.yml
22
_data/en.yml
|
@ -58,27 +58,27 @@ share:
|
|||
text: Share
|
||||
icon: share-alt
|
||||
items:
|
||||
- title: Fediverse
|
||||
url: "https://fediverse.sutty.nl/en/?u=%url&t=%title&d=%description"
|
||||
icon: mastodon-alt
|
||||
- title: Facebook
|
||||
url: "https://www.facebook.com/sharer/sharer.php?u=%url&t=%title%0A%0A%description"
|
||||
icon: facebook-official
|
||||
- title: Twitter
|
||||
url: "https://twitter.com/intent/tweet?url=%url&text=%title%0A%0A%description&hashtags=ContamosConVoz"
|
||||
url: "https://twitter.com/intent/tweet?url=%url&text=%title%0A%0A%description&hashtags=%tags"
|
||||
icon: twitter
|
||||
- title: Facebook
|
||||
url: "https://www.facebook.com/sharer/sharer.php?u=%url&t=%title%0A%0A%description"
|
||||
icon: facebook-official
|
||||
- title: Whatsapp
|
||||
url: "https://api.whatsapp.com/send?text=%title%0A%0A%description%0A%0A%url"
|
||||
icon: whatsapp
|
||||
- title: Telegram
|
||||
url: "https://t.me/share/url?url=%url&text=%title%0A%0A%description"
|
||||
url: "https://t.me/share/url?url=%url&text=%title%0A%0A%description"
|
||||
icon: telegram
|
||||
- title: Tumblr
|
||||
url: "https://www.tumblr.com/widgets/share/tool?canonicalUrl=%url&title=%title&caption=%description&tags=ContamosConVoz"
|
||||
url: "https://www.tumblr.com/widgets/share/tool?canonicalUrl=%url&title=%title&caption=%description&tags=%tags"
|
||||
icon: tumblr
|
||||
- title: Reddit
|
||||
url: "https://reddit.com/submit?url=%url&title=ConVozContamos%20-%20%title"
|
||||
url: "https://reddit.com/submit?url=%url&title=%tags%20-%20%title"
|
||||
icon: reddit
|
||||
- title: E-mail
|
||||
url: "mailto:?subject=%title&body=%description%0A%0A%url"
|
||||
url: "mailto:?subject=%title&body=%description%0A%0A%url"
|
||||
icon: envelope
|
||||
- title: Fediverse
|
||||
url: "https://fediverse.sutty.nl/en/?u=%url&t=%title&d=%description%20%tags"
|
||||
icon: mastodon-alt
|
||||
|
|
22
_data/es.yml
22
_data/es.yml
|
@ -58,27 +58,27 @@ share:
|
|||
text: Compartir
|
||||
icon: share-alt
|
||||
items:
|
||||
- title: Fediverso
|
||||
url: "https://fediverse.sutty.nl/es/?u=%url&t=%title&d=%description"
|
||||
icon: mastodon-alt
|
||||
- title: Facebook
|
||||
url: "https://www.facebook.com/sharer/sharer.php?u=%url&t=%title%0A%0A%description"
|
||||
icon: facebook-official
|
||||
- title: Twitter
|
||||
url: "https://twitter.com/intent/tweet?url=%url&text=%title%0A%0A%description&hashtags=ContamosConVoz"
|
||||
url: "https://twitter.com/intent/tweet?url=%url&text=%title%0A%0A%description&hashtags=%tags"
|
||||
icon: twitter
|
||||
- title: Facebook
|
||||
url: "https://www.facebook.com/sharer/sharer.php?u=%url&t=%title%0A%0A%description"
|
||||
icon: facebook-official
|
||||
- title: Whatsapp
|
||||
url: "https://api.whatsapp.com/send?text=%title%0A%0A%description%0A%0A%url"
|
||||
icon: whatsapp
|
||||
- title: Telegram
|
||||
url: "https://t.me/share/url?url=%url&text=%title%0A%0A%description"
|
||||
url: "https://t.me/share/url?url=%url&text=%title%0A%0A%description"
|
||||
icon: telegram
|
||||
- title: Tumblr
|
||||
url: "https://www.tumblr.com/widgets/share/tool?canonicalUrl=%url&title=%title&caption=%description&tags=ContamosConVoz"
|
||||
url: "https://www.tumblr.com/widgets/share/tool?canonicalUrl=%url&title=%title&caption=%description&tags=%tags"
|
||||
icon: tumblr
|
||||
- title: Reddit
|
||||
url: "https://reddit.com/submit?url=%url&title=ConVozContamos%20-%20%title"
|
||||
url: "https://reddit.com/submit?url=%url&title=%tags%20-%20%title"
|
||||
icon: reddit
|
||||
- title: Correo
|
||||
url: "mailto:?subject=%title&body=%description%0A%0A%url"
|
||||
url: "mailto:?subject=%title&body=%description%0A%0A%url"
|
||||
icon: envelope
|
||||
- title: Fediverso
|
||||
url: "https://fediverse.sutty.nl/es/?u=%url&t=%title&d=%description%20%tags"
|
||||
icon: mastodon-alt
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
{% endunless %}
|
||||
{% assign title = include.title | default: '' | cgi_escape %}
|
||||
{% assign description = include.description | default: '' | cgi_escape %}
|
||||
{% assign tags = include.tags | join: ',' | default: '' | cgi_escape %}
|
||||
|
||||
<a
|
||||
{% if include.share.url == '%url' %}
|
||||
|
@ -12,10 +13,10 @@
|
|||
{% else %}
|
||||
target="_blank"
|
||||
{% endif %}
|
||||
rel="nofollow"
|
||||
rel="noopener nofollow"
|
||||
title="{{ include.share.title }}"
|
||||
class="d-flex flex-column align-items-center p-3"
|
||||
href="{{ include.share.url | replace: '%url', url | replace: '%title', title | replace: '%description', description }}">
|
||||
href="{{ include.share.url | replace: '%url', url | replace: '%title', title | replace: '%description', description | replace: '%tags', tags }}">
|
||||
<i class="fa fa-fw fa-2x fa-{{ include.share.icon }}"></i>
|
||||
<span>{{ include.share.title }}</span>
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue