1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-25 03:34:29 +01:00

layouts: Update Twitter sharing link

Use the new (?) sharing intent and add the page title as Tweet text.
This commit is contained in:
Alan Orth 2019-05-05 12:20:21 +03:00
parent aed40fe2d3
commit ed69bec464
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -3,7 +3,7 @@
<nav class="nav sharing-icons">
<a class="nav-item" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" title="Share on Facebook"><span class="fa fa-facebook fa-2x" aria-hidden="true"></span></a>
<a class="nav-item" href="https://www.linkedin.com/shareArticle?mini=true&amp;url={{ .Permalink }}" title="Share on LinkedIn"><span class="fa fa-linkedin fa-2x" aria-hidden="true"></span></a>
<a class="nav-item" href="https://twitter.com/home?status={{ .Permalink }}" title="Tweet this"><span class="fa fa-twitter fa-2x"></span></a>
<a class="nav-item" href="https://twitter.com/intent/tweet?url={{ .Permalink }}&amp;text={{ .Title }}" title="Tweet this"><span class="fa fa-twitter fa-2x"></span></a>
</nav>
</section>