Added rel="me" flag option into social media links

This commit is contained in:
Bashy 2026-03-27 07:19:17 +01:00
parent aa354ad732
commit bced40e2e8
2 changed files with 8 additions and 1 deletions

View file

@ -46,6 +46,7 @@ social:
enable: false
- url: https://mastodon.social
icon: fab fa-mastodon
relme: true # rel="me" for verifying your blog / site
enable: true
- url: https://www.linkedin.com/
icon: fab fa-linkedin

View file

@ -25,6 +25,8 @@
<script src="https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js"></script>
<script src="https://unpkg.com/infinite-scroll@4/dist/infinite-scroll.pkgd.min.js"></script>
<script data-goatcounter="https://bashynx.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
@ -111,7 +113,11 @@
<% theme.social.forEach(function(social) { %>
<% if (social.enable) { %>
<span class="social-icon">
<a href="<%= social.url %>" target="_blank">
<% if (social.relme) { %>
<a rel="me" href="<%= social.url %>" target="_blank">
<% } else { %>
<a href="<%= social.url %>" target="_blank">
<% } %>
<% if (theme.fontawesome) { %>
<i class="<%= social.icon %>"></i>
<% } else { %>