mirror of
https://gitlab.com/octospacc/octospacc.gitlab.io
synced 2024-12-22 06:14:43 +01:00
Home tweaks
This commit is contained in:
parent
ec7b3aaa49
commit
cb8b81c300
@ -49,10 +49,11 @@
|
||||
<p>Alternatively, check out my collections directly on my external sites:</p>
|
||||
<ul id="SitesList" class="BackgroundedBox">
|
||||
<li>✨ <a href="https://sitoctt.octt.eu.org/Categories/"
|
||||
data-platform="staticoso"
|
||||
data-platform="json"
|
||||
data-categories-blacklist="Blog MicroBlog Note"
|
||||
data-staticoso-assets-root="https://sitoctt-assets.octt.eu.org"
|
||||
>Tutte le categorie sul sitoctt</a></li>
|
||||
data-dump="https://sitoctt.octt.eu.org/it/searchindex.js"
|
||||
>Tutte le categorie sul sitoctt</a> (momentaneamente non in lista)</li>
|
||||
<li>📓️ <a href="https://octospacc.altervista.org/libreria-post/"
|
||||
data-platform="wordpress"
|
||||
data-categories-blacklist="Senza-categoria"
|
||||
@ -102,6 +103,9 @@
|
||||
break; case 'wordpress':
|
||||
fetchUrl = refElem.dataset.dump;
|
||||
fetchParser = wordpressFetchParser;
|
||||
//break; case 'json':
|
||||
// fetchUrl = refElem.dataset.dump;
|
||||
// fetchParser = jsonFetchParser;
|
||||
}
|
||||
if (!fetchUrl || !fetchParser) {
|
||||
continue;
|
||||
@ -231,6 +235,17 @@
|
||||
return finalPosts;
|
||||
}
|
||||
|
||||
async function jsonFetchParser (req, extra) {
|
||||
var json = await req.text();
|
||||
var sourcePosts = JSON.parse(`[${json.split('[').slice(1).join('[')}`); // handle JSON-in-JS files
|
||||
var finalPosts = [];
|
||||
for (var post of sourcePosts) {
|
||||
post.url = siteUrl + permalink;
|
||||
// ... TODO
|
||||
}
|
||||
return finalPosts;
|
||||
}
|
||||
|
||||
// NOTE: doesn't handle negative time zones
|
||||
function isoToUnixWithZone (time) { return Number(`${Date.parse(time)}.${time.split('+')[1] || 0}`) }
|
||||
|
||||
|
@ -33,22 +33,28 @@
|
||||
</div>
|
||||
<br/><br/><br/>
|
||||
<div id="Links"><div>
|
||||
<h3>Sites and Content 📚️</h3>
|
||||
<h4><!--
|
||||
--><small>[🇮🇹]</small>
|
||||
<a rel="me" href="https://sitoctt.octt.eu.org">✨sitoctt✨</a>
|
||||
<small>(long-form blog, personale)</small><!--
|
||||
--></h4>
|
||||
<h4><!--
|
||||
--><a rel="me" href="https://kb.octt.eu.org">📝 OcttKB</a>
|
||||
<small>(knowledge base & personal wiki)</small><!--
|
||||
<small>(personale long-form blog & wiki)</small><!--
|
||||
--></h4>
|
||||
<h4><!--
|
||||
--><small>[🇮🇹]</small>
|
||||
<a rel="me" href="https://octospacc.altervista.org">📓️ fritto misto di octospacc</a>
|
||||
<small>(microblog)</small><!--
|
||||
--></h4>
|
||||
<h4><!--
|
||||
--><a rel="me" href="https://memos.octt.eu.org">📝 Memocto</a>
|
||||
<small>(public notes & knowledge base)</small><!--
|
||||
--></h4>
|
||||
<h4><del><!--
|
||||
--><a rel="me" href="https://kb.octt.eu.org">📝 OcttKB</a>
|
||||
<small>(knowledge base & personal wiki)</small><!--
|
||||
--></del></h4>
|
||||
<!--<h4><del><a href="https://octtspacc.gitlab.io/bachecoctt">🔖️ bachecoctt</a> (my WebPinBoard)</del></h4>-->
|
||||
<br/>
|
||||
</div><br/><div>
|
||||
<h3>Web Apps 🈸️</h3>
|
||||
<h4><!--
|
||||
--><a href="./HashyMagnet/">🧲 HashyMagnet</a>
|
||||
<small>(BitTorrent Hash to Magnet)</small><!--
|
||||
@ -78,7 +84,8 @@
|
||||
--><a href="./Ecoji/">🦜 Ecoji v1</a>
|
||||
<small>(webapp fork)</small><!--
|
||||
--></h4>
|
||||
<br/>
|
||||
</div><br/><div>
|
||||
<h3>??? 💖️</h3>
|
||||
<h4><a href="https://octospacc.gitlab.io/FumoPrisms/">🔺️ Fumo Prisms (!)</a></h4>
|
||||
<h4><a href="./Collections/">🎀 My Collections</a> <small>(of posts/pages)</small></h4>
|
||||
<h4><a href="./Userscripts/">⚙️ My Userscripts</a> <small>for a nicer web</small></h4>
|
||||
|
Loading…
Reference in New Issue
Block a user