commit 46ef2d2cdcdaed281710de79186f0d4180d64d5d parent 216f64dc5f1824317ac297ee1eb9563907d79202 Author: Ed van Bruggen <ed@edryd.org> Date: Sun, 4 May 2025 16:02:58 -0400 Remove share links for posts Diffstat:
M | layouts/_default/single.html | | | 2 | -- |
D | layouts/partials/share.html | | | 22 | ---------------------- |
2 files changed, 0 insertions(+), 24 deletions(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html @@ -18,8 +18,6 @@ </time> <i class="far fa-clock"></i> {{ .ReadingTime }} mins {{ end }} - - {{ partial "share.html" }} </h5> </header> diff --git a/layouts/partials/share.html b/layouts/partials/share.html @@ -1,22 +0,0 @@ -<div class="links text-inc pt-2"> - <a href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" class="fab fa-facebook"></a> - <a href="https://twitter.com/share?url={{ .Permalink }}&text={{ .Title }}" class="fab fa-twitter-square"></a> - <a href="mailto:?subject={{ .Title }}&body=Check out this article: {{ .Permalink }}" class="change-icon"> - <i class="fa fa-envelope"></i> - <i class="fa fa-envelope-open"></i> - </a> - <a href="https://reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}" class="fab fa-reddit"></a> - <a href="https://news.ycombinator.com/submitlink?u={{ .Permalink }}&t={{ .Title }}" class="fab fa-hacker-news-square"></a> - <a href="https://www.linkedin.com/shareArticle?url={{ .Permalink }}&title={{ .Title }}&summary={{ .Summary }}" class="fab fa-linkedin"></a> - <button onclick="clipboard_copy()" class="fas fa-link" style="border:none; background:none;"></button> - <script async> - function clipboard_copy() { - $("body").append('<input id="copyURL" type="text" value="" />'); - $("#copyURL").val(window.location.href).select(); - document.execCommand("copy"); - $("#copyURL").remove(); - document.execCommand("copy"); - /* TODO show "copied to clipboard" */ - } - </script> -</div>