Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/urjaacharya/redgood.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/share.html')
-rw-r--r--layouts/partials/share.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/layouts/partials/share.html b/layouts/partials/share.html
new file mode 100644
index 0000000..e7cd823
--- /dev/null
+++ b/layouts/partials/share.html
@@ -0,0 +1,36 @@
+<div
+ class="share-links"
+ style="
+ display: flex;
+ margin-left: 1em;
+ align-items: center;
+ width: 120px;
+ justify-content: space-between;
+ "
+>
+ {{ $url := printf "%s" .URL | absLangURL }}
+ <a
+ class="header-icon"
+ href="mailto:?subject={{ print .Title ` by ` .Site.Params.author }}&amp;body={{ $url }}"
+ target="_self"
+ rel="noopener"
+ aria-label="share by email"
+ ><i class="bi bi-envelope"></i
+ ></a>
+ <a
+ class="header-icon"
+ href="https://facebook.com/sharer/sharer.php?u={{ $url }}"
+ target="_blank"
+ rel="noopener"
+ aria-label="share on facebook"
+ ><i class="bi bi-facebook"></i
+ ></a>
+ <a
+ class="header-icon"
+ href="https://twitter.com/intent/tweet/?text={{ print .Title ` by ` .Site.Params.author }}&amp;url={{ $url }}"
+ target="_blank"
+ rel="noopener"
+ aria-label="share on twitter"
+ ><i class="bi bi-twitter"></i
+ ></a>
+</div>