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
|
text: Share
|
||||||
icon: share-alt
|
icon: share-alt
|
||||||
items:
|
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
|
- 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
|
icon: twitter
|
||||||
|
- title: Facebook
|
||||||
|
url: "https://www.facebook.com/sharer/sharer.php?u=%url&t=%title%0A%0A%description"
|
||||||
|
icon: facebook-official
|
||||||
- title: Whatsapp
|
- title: Whatsapp
|
||||||
url: "https://api.whatsapp.com/send?text=%title%0A%0A%description%0A%0A%url"
|
url: "https://api.whatsapp.com/send?text=%title%0A%0A%description%0A%0A%url"
|
||||||
icon: whatsapp
|
icon: whatsapp
|
||||||
- title: Telegram
|
- 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
|
icon: telegram
|
||||||
- title: Tumblr
|
- 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
|
icon: tumblr
|
||||||
- title: Reddit
|
- 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
|
icon: reddit
|
||||||
- title: E-mail
|
- title: E-mail
|
||||||
url: "mailto:?subject=%title&body=%description%0A%0A%url"
|
url: "mailto:?subject=%title&body=%description%0A%0A%url"
|
||||||
icon: envelope
|
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
|
text: Compartir
|
||||||
icon: share-alt
|
icon: share-alt
|
||||||
items:
|
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
|
- 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
|
icon: twitter
|
||||||
|
- title: Facebook
|
||||||
|
url: "https://www.facebook.com/sharer/sharer.php?u=%url&t=%title%0A%0A%description"
|
||||||
|
icon: facebook-official
|
||||||
- title: Whatsapp
|
- title: Whatsapp
|
||||||
url: "https://api.whatsapp.com/send?text=%title%0A%0A%description%0A%0A%url"
|
url: "https://api.whatsapp.com/send?text=%title%0A%0A%description%0A%0A%url"
|
||||||
icon: whatsapp
|
icon: whatsapp
|
||||||
- title: Telegram
|
- 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
|
icon: telegram
|
||||||
- title: Tumblr
|
- 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
|
icon: tumblr
|
||||||
- title: Reddit
|
- 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
|
icon: reddit
|
||||||
- title: Correo
|
- title: Correo
|
||||||
url: "mailto:?subject=%title&body=%description%0A%0A%url"
|
url: "mailto:?subject=%title&body=%description%0A%0A%url"
|
||||||
icon: envelope
|
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 %}
|
{% endunless %}
|
||||||
{% assign title = include.title | default: '' | cgi_escape %}
|
{% assign title = include.title | default: '' | cgi_escape %}
|
||||||
{% assign description = include.description | default: '' | cgi_escape %}
|
{% assign description = include.description | default: '' | cgi_escape %}
|
||||||
|
{% assign tags = include.tags | join: ',' | default: '' | cgi_escape %}
|
||||||
|
|
||||||
<a
|
<a
|
||||||
{% if include.share.url == '%url' %}
|
{% if include.share.url == '%url' %}
|
||||||
|
@ -12,10 +13,10 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
rel="nofollow"
|
rel="noopener nofollow"
|
||||||
title="{{ include.share.title }}"
|
title="{{ include.share.title }}"
|
||||||
class="d-flex flex-column align-items-center p-3"
|
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>
|
<i class="fa fa-fw fa-2x fa-{{ include.share.icon }}"></i>
|
||||||
<span>{{ include.share.title }}</span>
|
<span>{{ include.share.title }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue