Added rel="me" flag option into social media links
This commit is contained in:
parent
aa354ad732
commit
bced40e2e8
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
<% 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 { %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue