Skip to content

Commit 4f31457

Browse files
committed
Switch sitemap.style to xml.style/sitemap/
1 parent 7f4d367 commit 4f31457

File tree

14 files changed

+76
-20
lines changed

14 files changed

+76
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This is a graphical viewer for `sitemap.xml` files. Try it at
88
[sitemap-viewer.fileformat.info](https://sitemap-viewer.fileformat.info/).
99

1010
See how to integrate it into your `sitemap.xml` file so it displays automatically at
11-
[Sitemap.Style](https://www.sitemap.style/)!
11+
[XML.Style](https://www.xml.style/sitemap/viewer-integration.html)!
1212

1313
## Running locally
1414

messages/de.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"show_log_label": "Protokollierungswerkzeug anzeigen",
1414
"show_mode_label": "Hell/Dunkel-Werkzeug anzeigen",
1515
"sort_label": "Sortieren",
16-
"tip": "<Icon></Icon>Siehe <Link>Sitemap.Style</Link> für die Integration in Ihre Website.",
16+
"tip": "<Icon></Icon>Siehe <Link>XML.Style</Link> für die Integration in Ihre Website.",
1717
"title": "Sitemap-Viewer",
1818
"transform_label": "Seitennamen-Transformation",
1919
"url_label": "URL Ihrer sitemap.xml",
@@ -56,7 +56,7 @@
5656
},
5757
"ViewPage": {
5858
"home": "Startseite",
59-
"poweredby": "Angetrieben durch Sitemap.Style",
59+
"poweredby": "Angetrieben durch XML.Style",
6060
"title": "Sitemap für {host}"
6161
}
6262
}

messages/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"show_log_label": "Show Logging Tool",
1414
"show_mode_label": "Show Light/Dark Tool",
1515
"sort_label": "Sort",
16-
"tip": "<Icon></Icon>See <Link>Sitemap.Style</Link> for how to integrate this into your website.",
16+
"tip": "<Icon></Icon>See <Link>XML.Style</Link> for how to integrate this into your website.",
1717
"title": "Sitemap Viewer",
1818
"transform_label": "Page name transform",
1919
"url_label": "URL of your sitemap.xml",
@@ -56,7 +56,7 @@
5656
},
5757
"ViewPage": {
5858
"home": "Home page",
59-
"poweredby": "Powered by Sitemap.Style",
59+
"poweredby": "Powered by XML.Style",
6060
"title": "{host} Site Map"
6161
}
6262
}

messages/es.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"show_log_label": "Mostrar herramienta de registro",
1414
"show_mode_label": "Mostrar herramienta de luz/oscuro",
1515
"sort_label": "Ordenar",
16-
"tip": "<Icon></Icon>Ver <Link>Sitemap.Style</Link> para integrar esto en tu sitio web.",
16+
"tip": "<Icon></Icon>Ver <Link>XML.Style</Link> para integrar esto en tu sitio web.",
1717
"title": "Visor de mapa del sitio",
1818
"transform_label": "Transformación del nombre de la página",
1919
"url_label": "URL de tu sitemap.xml",
@@ -56,7 +56,7 @@
5656
},
5757
"ViewPage": {
5858
"home": "Página de inicio",
59-
"poweredby": "Desarrollado por Sitemap.Style",
59+
"poweredby": "Desarrollado por XML.Style",
6060
"title": "Mapa del sitio de {host}"
6161
}
6262
}

messages/fr.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"show_log_label": "Afficher l'outil de journalisation",
1414
"show_mode_label": "Afficher l'outil clair/sombre",
1515
"sort_label": "Trier",
16-
"tip": "<Icon></Icon>Voir <Link>Sitemap.Style</Link> pour intégrer ceci dans votre site Web.",
16+
"tip": "<Icon></Icon>Voir <Link>XML.Style</Link> pour intégrer ceci dans votre site Web.",
1717
"title": "Visionneuse de plan du site",
1818
"transform_label": "Transformation du nom de la page",
1919
"url_label": "URL de votre sitemap.xml",
@@ -56,7 +56,7 @@
5656
},
5757
"ViewPage": {
5858
"home": "Page d'accueil",
59-
"poweredby": "Propulsé par Sitemap.Style",
59+
"poweredby": "Propulsé par XML.Style",
6060
"title": "Plan du site pour {host}"
6161
}
6262
}

messages/it.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"show_log_label": "Mostra Strumento di Registrazione",
1414
"show_mode_label": "Mostra Strumento Chiaro/Scuro",
1515
"sort_label": "Ordina",
16-
"tip": "<Icon></Icon>Vedi <Link>Sitemap.Style</Link> per come integrarlo nel tuo sito web.",
16+
"tip": "<Icon></Icon>Vedi <Link>XML.Style</Link> per come integrarlo nel tuo sito web.",
1717
"title": "Visualizzatore di Sitemap",
1818
"transform_label": "Trasformazione del nome della pagina",
1919
"url_label": "URL del tuo sitemap.xml",
@@ -56,7 +56,7 @@
5656
},
5757
"ViewPage": {
5858
"home": "Pagina iniziale",
59-
"poweredby": "Offerto da Sitemap.Style",
59+
"poweredby": "Offerto da XML.Style",
6060
"title": "Mappa del sito di {host}"
6161
}
6262
}

messages/pl.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"show_log_label": "Pokaż narzędzie logowania",
1414
"show_mode_label": "Pokaż narzędzie jasny/ciemny",
1515
"sort_label": "Sortuj",
16-
"tip": "<Icon></Icon>Zobacz <Link>Sitemap.Style</Link> jak zintegrować to na swojej stronie.",
16+
"tip": "<Icon></Icon>Zobacz <Link>XML.Style</Link> jak zintegrować to na swojej stronie.",
1717
"title": "Przeglądarka mapy witryny",
1818
"transform_label": "Transformacja nazwy strony",
1919
"url_label": "URL twojego sitemap.xml",
@@ -56,7 +56,7 @@
5656
},
5757
"ViewPage": {
5858
"home": "Strona główna",
59-
"poweredby": "Zasilane przez Sitemap.Style",
59+
"poweredby": "Zasilane przez XML.Style",
6060
"title": "Mapa witryny {host}"
6161
}
6262
}

messages/pt.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"show_log_label": "Mostrar Ferramenta de Registro",
1414
"show_mode_label": "Mostrar Ferramenta de Modo Claro/Escuro",
1515
"sort_label": "Ordenar",
16-
"tip": "<Icon></Icon>Veja <Link>Sitemap.Style</Link> para saber como integrar isso ao seu site.",
16+
"tip": "<Icon></Icon>Veja <Link>XML.Style</Link> para saber como integrar isso ao seu site.",
1717
"title": "Visualizador de Sitemap",
1818
"transform_label": "Transformação do nome da página",
1919
"url_label": "URL do seu sitemap.xml",
@@ -56,7 +56,7 @@
5656
},
5757
"ViewPage": {
5858
"home": "Página inicial",
59-
"poweredby": "Desenvolvido por Sitemap.Style",
59+
"poweredby": "Desenvolvido por XML.Style",
6060
"title": "Mapa do Site de {host}"
6161
}
6262
}

public/sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<?xml-stylesheet type="text/xsl" href="https://www.sitemap.style/xslt/vanilla-water.xslt" ?>
2+
<?xml-stylesheet type="text/xsl" href="linked.xslt" ?>
33
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
44
<url>
55
<loc>https://logo-of-the-day.vectorlogo.zone/</loc>

public/sitemap.xslt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xsl:stylesheet
3+
version="3.0"
4+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5+
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
6+
>
7+
<xsl:output method="html" indent="yes" encoding="UTF-8"/>
8+
<xsl:template match="/">
9+
<xsl:message>Powered by <a href="https://www.xml.style/sitemap/">XML.Style</a></xsl:message>
10+
11+
<!-- get the hostname from the first url/loc -->
12+
<xsl:variable name="hostname" select="substring-before(substring-after(/sitemap:urlset/sitemap:url[1]/sitemap:loc, '://'), '/')" />
13+
14+
<html>
15+
<head>
16+
<meta name="viewport" content="width=device-width, initial-scale=1" />
17+
<meta name="referrer" content="unsafe-url" />
18+
<title>Sitemap for <xsl:value-of select="$hostname"/></title>
19+
<link rel="stylesheet" href="https://www.xml.style/css/pico.classless.min.css" />
20+
<script>
21+
window.addEventListener('load', function() {
22+
var viewPara = document.getElementById("viewpara");
23+
viewPara.style.display = "block";
24+
var viewLink = document.getElementById("viewlink");
25+
viewLink.href = `https://sitemap-viewer.fileformat.info/view.html?url=${encodeURIComponent(window.location.href)}`;
26+
});
27+
</script>
28+
</head>
29+
<body>
30+
<main>
31+
<h1>Pages on <xsl:value-of select="$hostname" /></h1>
32+
33+
<p id="viewpara" style="display:none;">
34+
<a id="viewlink" href="" role="button">View as a tree</a>
35+
</p>
36+
37+
<ul>
38+
<xsl:for-each select="sitemap:urlset/sitemap:url">
39+
<xsl:variable name="sitemap_loc"><xsl:value-of select="sitemap:loc" /></xsl:variable>
40+
<xsl:variable name="sitemap_lastmod"><xsl:value-of select="sitemap:lastmod" /></xsl:variable>
41+
<li>
42+
<a href="{$sitemap_loc}">
43+
<xsl:value-of select="sitemap:loc" /></a>
44+
<xsl:if test="$sitemap_lastmod!=''">
45+
(<xsl:value-of select="sitemap:lastmod" />)
46+
</xsl:if>
47+
</li>
48+
</xsl:for-each>
49+
</ul>
50+
<p><xsl:value-of select="count(sitemap:urlset/sitemap:url)" /> pages</p>
51+
<p><small>Powered by <a href="https://www.xml.style/sitemap/"><img referrerpolicy="origin" src="https://www.xml.style/favicon.svg" style="height:1em;padding-right:0.25em;vertical-align:middle;" />XML.Style</a></small></p>
52+
</main>
53+
</body>
54+
</html>
55+
</xsl:template>
56+
</xsl:stylesheet>

0 commit comments

Comments
 (0)