FEATURE: Added verification for links to mastodon

This commit is contained in:
nikurasu 2022-11-15 10:58:34 +01:00
parent 5810c8e1ca
commit a7ff51028c
2 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,7 @@ links:
brandcolor: "youtube" # set this if you want to set the color of the link to the brand color of a platform...
color: "#0D0D0D" # or that if you want to set it to an exact color
- text: "Twitter"
verify: "Mastodon"
hyperlink: "test"
brandcolor: "twitter"
smallLinks:
@ -16,4 +17,4 @@ smallLinks:
- platform: "facebook"
hyperlink: "https://facebook.com"
- platform: "youtube"
hyperlink: "https://youtu.be"
hyperlink: "https://youtu.be"

View File

@ -14,7 +14,7 @@
</div>
<div class="mainLinkbox">
<% links.forEach(link => { %>
<a href="<%= link.hyperlink %>">
<a <% if(link.verify && link.verify.toLowerCase() === 'mastodon') { %> rel="me" <% } %> href="<%= link.hyperlink %>">
<button class="<%= `${link.brandcolor} ${link.color}` %>"><%= link.text %></button>
</a>
<% }) %>
@ -27,4 +27,4 @@
<% }) %>
</div>
</div>
<%- include('partials/footer') %>
<%- include('partials/footer') %>