This commit is contained in:
parent
cad1d04823
commit
3606b3879d
2 changed files with 3 additions and 2 deletions
|
@ -123,6 +123,7 @@ function fediverse() {
|
||||||
const data = JSON.parse(localStorage.getItem('fedi-social') || '{}')
|
const data = JSON.parse(localStorage.getItem('fedi-social') || '{}')
|
||||||
document.querySelectorAll("a.external_url:not([href='{external_url}'])").forEach(el => {
|
document.querySelectorAll("a.external_url:not([href='{external_url}'])").forEach(el => {
|
||||||
if(data.template){
|
if(data.template){
|
||||||
|
href = template.replace("{uri}", el.href)
|
||||||
const innerHTML = `
|
const innerHTML = `
|
||||||
<a href='${href}' target="_blank"><i class="fa fa-comment"></i></a>
|
<a href='${href}' target="_blank"><i class="fa fa-comment"></i></a>
|
||||||
<a href='${href}' target="_blank"><i class="fa fa-star"></i></a>
|
<a href='${href}' target="_blank"><i class="fa fa-star"></i></a>
|
||||||
|
|
|
@ -8,8 +8,8 @@ Title: Post Template
|
||||||
<i data-emoji="{emoji}"></i>
|
<i data-emoji="{emoji}"></i>
|
||||||
{body}
|
{body}
|
||||||
<aside class="post-info">
|
<aside class="post-info">
|
||||||
<a class="status_url" href="{status_url}"><i class="omg-icon omg-prami"></i> via status.lol</a>
|
<a class="status_url" href="{status_url}" target="_blank"><i class="omg-icon omg-prami"></i> via status.lol</a>
|
||||||
<a class="external_url" href="{external_url}"><i class="omg-icon omg-fediverse"></i> Interact on the Fediverse</a>
|
<a class="external_url" href="{external_url}" target="_blank"><i class="omg-icon omg-fediverse"></i> Interact on the Fediverse</a>
|
||||||
</aside>
|
</aside>
|
||||||
<aside class="post-tags">
|
<aside class="post-tags">
|
||||||
{tags}
|
{tags}
|
||||||
|
|
Loading…
Reference in a new issue