FEATURE: Added verification for links to mastodon
This commit is contained in:
parent
5810c8e1ca
commit
a7ff51028c
2 changed files with 4 additions and 3 deletions
|
@ -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...
|
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
|
color: "#0D0D0D" # or that if you want to set it to an exact color
|
||||||
- text: "Twitter"
|
- text: "Twitter"
|
||||||
|
verify: "Mastodon"
|
||||||
hyperlink: "test"
|
hyperlink: "test"
|
||||||
brandcolor: "twitter"
|
brandcolor: "twitter"
|
||||||
smallLinks:
|
smallLinks:
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="mainLinkbox">
|
<div class="mainLinkbox">
|
||||||
<% links.forEach(link => { %>
|
<% 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>
|
<button class="<%= `${link.brandcolor} ${link.color}` %>"><%= link.text %></button>
|
||||||
</a>
|
</a>
|
||||||
<% }) %>
|
<% }) %>
|
||||||
|
|
Loading…
Reference in a new issue