more minor fixes
All checks were successful
/ weblog.lol (push) Successful in 14s

This commit is contained in:
Gordon Pedersen 2024-05-11 16:48:37 +10:00
parent cad1d04823
commit 3606b3879d
2 changed files with 3 additions and 2 deletions

View file

@ -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>

View file

@ -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}