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