Share links

This commit is contained in:
tsmitty11 2023-05-18 17:59:56 +02:00
parent 379d4a4b24
commit e65a91b777

View file

@ -19,6 +19,12 @@
{{ partial "sidebar" . }} {{ partial "sidebar" . }}
<div class="share-links">
<a href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" target="_blank" rel="noopener">Share on Facebook</a>
<a href="https://twitter.com/intent/tweet?url={{ .Permalink }}" target="_blank" rel="noopener">Share on Twitter</a>
<a href="https://www.linkedin.com/shareArticle?url={{ .Permalink }}" target="_blank" rel="noopener">Share on LinkedIn</a>
</div>
</div> </div>
</div> </div>
</main> </main>
@ -30,8 +36,6 @@
</html> </html>
<style> <style>
.sidebar { .sidebar {
flex: 0 0 30%; flex: 0 0 30%;
max-width: 20%; max-width: 20%;
@ -47,11 +51,17 @@
padding: 0.5em 0; padding: 0.5em 0;
} }
img{ .share-links {
max-width: 100%; position: fixed;
left: 0;
top: 50%;
transform: translateY(-50%);
display: flex;
flex-direction: column;
align-items: flex-start;
} }
code{ .share-links a {
color:#ff7ba7; margin-bottom: 10px;
} }
</style> </style>