share.html (1263B)
1 <div class="links text-inc pt-2"> 2 <a href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" class="fab fa-facebook"></a> 3 <a href="https://twitter.com/share?url={{ .Permalink }}&text={{ .Title }}" class="fab fa-twitter-square"></a> 4 <a href="mailto:?subject={{ .Title }}&body=Check out this article: {{ .Permalink }}" class="change-icon"> 5 <i class="fa fa-envelope"></i> 6 <i class="fa fa-envelope-open"></i> 7 </a> 8 <a href="https://reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}" class="fab fa-reddit"></a> 9 <a href="https://news.ycombinator.com/submitlink?u={{ .Permalink }}&t={{ .Title }}" class="fab fa-hacker-news-square"></a> 10 <a href="https://www.linkedin.com/shareArticle?url={{ .Permalink }}&title={{ .Title }}&summary={{ .Summary }}" class="fab fa-linkedin"></a> 11 <button onclick="clipboard_copy()" class="fas fa-link" style="border:none; background:none;"></button> 12 <script async> 13 function clipboard_copy() { 14 $("body").append('<input id="copyURL" type="text" value="" />'); 15 $("#copyURL").val(window.location.href).select(); 16 document.execCommand("copy"); 17 $("#copyURL").remove(); 18 document.execCommand("copy"); 19 /* TODO show "copied to clipboard" */ 20 } 21 </script> 22 </div>