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:

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>
<% }) %>