Skip to content

Commit

Permalink
sitemap improvements (#20)
Browse files Browse the repository at this point in the history
- [Multilingual sitemap](https://github.com/quasibit/eleventy-plugin-sitemap#create-a-multilingual-sitemap) implementation (see quasibit/eleventy-plugin-sitemap#49)
- Better specification of `changefreq` and `priority` at a page level
  • Loading branch information
xplosionmind committed Jun 19, 2022
1 parent ccdb9a8 commit 71ba81b
Show file tree
Hide file tree
Showing 28 changed files with 87 additions and 18 deletions.
1 change: 1 addition & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ module.exports = function(eleventyConfig) {
sitemap: {
hostname: 'https://tommi.space'
},
lastModifiedProperty: 'updated'
});

// Filters //
Expand Down
2 changes: 2 additions & 0 deletions content/Everyone-it.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
image: /everyone.webp
description: Un assonnato stanco dolce coccoloso cortometraggio che sbadiglia 🥱, sull’amore e sulle nonne e sui cuscini e sul pigiama e… 😴
layout: ~
sitemap:
changefreq: never
---
<!DOCTYPE html>
<html lang='it'>
Expand Down
2 changes: 2 additions & 0 deletions content/Everyone.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
image: /everyone.webp
todo: convert Flickr to Piwigo img URLs
layout: ~
sitemap:
changefreq: never
---
<!DOCTYPE html>
<html lang='en'>
Expand Down
3 changes: 3 additions & 0 deletions content/Usa Firefox!.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ image: https://3u26hb1g25wn1xwo8g186fnd-wpengine.netdna-ssl.com/files/2019/10/Fx
permalink: /usa-firefox/
redirect_from: [/use-firefox/]
lang: it
sitemap:
changefreq: never
priority: 0.1
---
Non stai usando il browser che dovresti!
Sono molto deluso da te.
Expand Down
2 changes: 2 additions & 0 deletions content/about-it.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
lang: it
image: /profile.webp
type: AboutPage
sitemap:
changefreq: yearly
---
{% render 'about.html', lang: lang, site: site %}
2 changes: 2 additions & 0 deletions content/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
lang: en
image: /profile.webp
type: AboutPage
sitemap:
changefreq: yearly
---
{% render 'about.html', lang: lang, site: site %}
2 changes: 2 additions & 0 deletions content/filinge.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
lang: it
ref: filosofia
primary: var(--green)
sitemap:
changefreq: never
---
<main>
<section class='center row'>
Expand Down
8 changes: 6 additions & 2 deletions content/filinge/filinge.11tydata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"tags": "filinge",
"layout": "post"
"tags": "filinge",
"layout": "post",
"sitemap": {
"chengefreq": "never",
"priority": 0.3
}
}
2 changes: 2 additions & 0 deletions content/home-it.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
redirect-from: [/it/home/, /home-it/, /home/it/]
lang: it
ref: home
sitemap:
priority: 0.9
---
<section class='row'>
<p class='one column center'>Sei appena entrato in un confuso spazio fluttuante nello sterminato Universo del World Wide Web. Questo luogo è <strong>un perpetuo cantiere</strong> popolato da pensieri, visioni, domande, pseudo-risposte, pseudo-intuizioni, pseudo-podcast, contraddizioni, rappresentazioni di caos e sconclusionati tentativi di riordinarlo.
Expand Down
2 changes: 2 additions & 0 deletions content/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
lang: en
ref: home
layout: wrapper
sitemap:
priority: 1.0
---
<section class='row'>
<p class='one column center'>You just entered an overwhelming, mindblowing, and confused space inside the immense Universe of the World Wide Web. This place is <strong>a perpetual work in progress</strong> populated by thoughts, drivel, visions, questions, sort-of-answers, kinda-intuitions, contraddictions, disorderly attempts of reordering stuff, representations of chaos.
Expand Down
3 changes: 3 additions & 0 deletions content/newsletter-addio.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ link: /tuffo/
description: Ti sei disiscrittə con successo a Parole Sconnesse, la pseudo-newsletter di Tommi
lang: it
eleventyExcludeFromCollections: true
sitemap:
changefreq: never
prioriry: 0.1
---
Eh già, lo so. Posso diventare estenuante e logorroico, mi dispiace.
Ti sei disiscritto con successo (sob) alla mia pseudo-newsletter.
Expand Down
3 changes: 3 additions & 0 deletions content/newsletter-iscrittə.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ peremalink: /newsletter-iscritt/
description: Ti sei iscrittə con successo a Parole Sconnesse, la pseudo-newsletter di Tommi
eleventyExcludeFromCollections: true
lang: it
sitemap:
changefreq: never
prioriry: 0.1
---
Ti sei iscrittə con successo a <cite>Parole Sconnesse</cite>, la pseudo-newsletter di Tommi. Grazie!
Clicca in qualunque punto per tornare alla home.
5 changes: 4 additions & 1 deletion content/newsletter.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ redirect_from: [/parole-sconnesse/,/parolesconnesse/]
lang: it
layout: page
description: Parole Sconnesse è la mia pseudo-newsletter in cui, ogni tot, condivido idee, racconto vicessitudini relativamente interessanti e pubblico aggiornamenti sulle varie questioni a cui mi sto dedicando.
sitemap:
changefreq: yearly
priority: 0.6
---
<div lang='en' class='yellow box'>
<b>For English speakers</b>: as of right now, the newsletter is sent in Italian only. Please stay tuned <a href='/feeds' target='_blank' title='tommi.space feeds'>via RSS</a> since I may be starting a newsletter in English, too!
<b>For English speakers</b>: as of right now, the newsletter is sent in Italian only. Please stay tuned <a href='/feeds' title='tommi.space feeds'>via RSS</a> since I may be starting a newsletter in English, too!
</div>

<br>
Expand Down
9 changes: 6 additions & 3 deletions content/notes/notes.11tydata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"layout": "jam",
"toc": true,
"isNote": true
"layout": "jam",
"toc": true,
"isNote": true,
"sitemap": {
"changefreq": "yearly"
}
}
5 changes: 4 additions & 1 deletion content/poetry-it.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
layout: vuoto
class: poetry
description: |
Non è come mangiare un gelato, la scrittura: se la addenti, non ti assale quell’immobilismo per cui il tuo cervello si contrae e non sei in grado di pensare ad altro per cinque virgola due secondi. La scrittura, invece, scalda e dilata, estende e quieta.<br />
Non è come mangiare un gelato, la scrittura: se la addenti, non ti assale quell’immobilismo per cui il tuo cervello si contrae e non sei in grado di pensare ad altro per cinque virgola due secondi. La scrittura, invece, scalda e dilata, estende e quieta.
Di seguito alcuni miei morsi di scrittura, vi prego di fare attenzione a non lasciarci un canino.
sitemap:
changefreq: monthly
priority: 0.7
---
<h1>{{ title }}</h1>
<article class='serif center'>
Expand Down
3 changes: 3 additions & 0 deletions content/poetry.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
layout: vuoto
class: poetry
description: A collection of wonderful failures of my foolish attempt at drawing images with my words you are invited to laugh at
sitemap:
changefreq: monthly
priority: 0.6
---
<h1>{{ title }}</h1>
<article class='center serif'>
Expand Down
7 changes: 5 additions & 2 deletions content/poetry/poetry.11tydata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"layout": "poem",
"class": "poetry"
"layout": "poem",
"class": "poetry",
"sitemap": {
"changefreq": "never"
}
}
9 changes: 6 additions & 3 deletions content/posts/posts.11tydata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"layout": "post",
"lang": "it",
"isPost": true
"layout": "post",
"lang": "it",
"isPost": true,
"sitemap": {
"changefreq": "never"
}
}
3 changes: 3 additions & 0 deletions content/privacy-it.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ lang: it
description: La Privacy Policy di tommi.space
redirect_from: [/privacy/it/, /it/privacy/]
layout: page
sitemap:
changefreq: yearly
priority: 0.2
---
I dati statistici riguardanti i visitatori di questo sito sono raccolti ed analizzati tramite [Plausible](https://plausible.io 'Plausible'), la cui Privacy Policy può essere consultata [qui](https://plausible.io/privacy 'Privacy Policy di Plausible').
Inoltre, le statistiche appena menzionate sono pubblicamente visibili, in [questa pagina](https://plausible.io/tommi.space 'Statistiche dei visitatori per tommi.space').
Expand Down
3 changes: 3 additions & 0 deletions content/privacy.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ lang: en
redirect_from: [/privacy-policy/, /privacypolicy/]
layout: page
description: Privacy Policy of tommi.space
sitemap:
changefreq: yearly
priority: 0.3
---
Visitors data concerning this website are handled by [Plausible](https://plausible.io 'Plausible'), whose Privacy Policy is [here](https://plausible.io/privacy 'Plausible Privacy Policy').
Furthermore, such data is [publicly available](https://plausible.io/tommi.space 'Visitors data for tommi.space')
Expand Down
3 changes: 3 additions & 0 deletions content/sconnesso.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
primary: var(--purple)
image: /sconnesso.webp
description: Uno pseudo-podcast in cui, per alcuni minuti, racconto ciò che mi sorprende. Sconnesso è sbagliato, ma non scorretto. È atipico, ma non è poi così originale. È curato, ma non studiato alla perfezione. È esasperante, ma mai noioso. È improvvisato, ma non raffazzonato. Non è preparato, ma è attentamente pensato. È confuso e disordinato, ma non complicato. È sconnesso, ma non disconnesso.
sitemap:
changefreq: monthly
priority: 0.7
---
<main>
<section class='row'>
Expand Down
11 changes: 7 additions & 4 deletions content/sconnesso/sconnesso.11tydata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"title": "Sconnesso",
"description": "Sconnesso è uno pseudo-podcast in cui, per alcuni minuti, racconto ciò che mi sorprende. Sconnesso è sbagliato, ma non scorretto. È atipico, ma non è poi così originale. È curato, ma non studiato alla perfezione. È esasperante, ma mai noioso. È improvvisato, ma non raffazzonato. Non è preparato, ma è attentamente pensato. È confuso e disordinato, ma non complicato. È sconnesso, ma non disconnesso.",
"layout": "sconnesso",
"image": "https://tommi.space/sconnesso.webp"
"title": "Sconnesso",
"description": "Sconnesso è uno pseudo-podcast in cui, per alcuni minuti, racconto ciò che mi sorprende. Sconnesso è sbagliato, ma non scorretto. È atipico, ma non è poi così originale. È curato, ma non studiato alla perfezione. È esasperante, ma mai noioso. È improvvisato, ma non raffazzonato. Non è preparato, ma è attentamente pensato. È confuso e disordinato, ma non complicato. È sconnesso, ma non disconnesso.",
"layout": "sconnesso",
"image": "https://tommi.space/sconnesso.webp",
"sitemap": {
"changefreq": "never"
}
}
3 changes: 3 additions & 0 deletions content/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
title: Search
description: look for anything in tommi.space
type: SearchResultsPage
sitemap:
changefreq: never
priority: 0.4
---
{% comment %}<script src='https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.9/lunr.min.js'></script>
<script>
Expand Down
1 change: 0 additions & 1 deletion content/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
lang: en
layout: large
description: Every topic, every recurrency, anything you need to find can be found somewhere in this page.
todo:
---
{% for tag in site.tags %}
<div class='row'>
Expand Down
3 changes: 3 additions & 0 deletions content/whole-jam.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
redirect_from: [/tutta-la-marmellata/,/tutta-marmellata/,/the-whole-jam/,/wholejam/,/whole-jar/,/wholejar/,/the-whole-jar/]
layout: large
type: CollectionPage
sitemap:
priority: 0.6
changefreq: weekly
---
<style>
.grid div {
Expand Down
3 changes: 3 additions & 0 deletions content/zibaldone.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
ref: Zibaldone
description: Cose che vengono fuori dala testa di Tommi, in forma di articoli
type: CollectionPage
sitemap:
priority: 0.8
changefreq: monthly
---
<section class='center row'>
<h1>Zibaldone</h1>
Expand Down
3 changes: 3 additions & 0 deletions content/zibenglish.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
ref: Zibaldone
description: Things getting out of Tommi’s head, in the form of articles
type: CollectionPage
sitemap:
priority: 0.8
changefreq: monthly
---
<section class='center row'>
<h1>Zibaldone</h1>
Expand Down
2 changes: 1 addition & 1 deletion sitemap.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ permalink: /sitemap.xml
layout: ~
eleventyExcludeFromCollections: true
---
{% sitemap collections.all %}
{% sitemap collections.sitemap %}

0 comments on commit 71ba81b

Please sign in to comment.