sitemap.xml and cards

This commit is contained in:
2026-08-14 10:17:06 +02:00
parent a6036737ee
commit 51507e65ea
17 changed files with 77 additions and 10 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
const path = require("path");
module.exports = function (eleventyConfig) {
eleventyConfig.addGlobalData("site", { url: "https://code.moonweb.org" });
eleventyConfig.addFilter("date", (d) => d.toISOString());
eleventyConfig.addPassthroughCopy({ "shared/theme-code.css": "theme.css" });
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
eleventyConfig.addPassthroughCopy({ "shared/favicon/code.svg": "favicon.svg" });
eleventyConfig.addPassthroughCopy({ "code/robots.txt": "robots.txt" });
return {
dir: {
+4
View File
@@ -0,0 +1,4 @@
User-agent: *
Allow: /
Sitemap: https://code.moonweb.org/sitemap.xml
+5
View File
@@ -0,0 +1,5 @@
---
permalink: /sitemap.xml
eleventyExcludeFromCollections: true
---
{% include "sitemap.njk" %}
+3 -2
View File
@@ -1,9 +1,10 @@
const path = require("path");
module.exports = function (eleventyConfig) {
eleventyConfig.addGlobalData("site", { url: "https://hub.moonweb.org" });
eleventyConfig.addFilter("date", (d) => d.toISOString());
eleventyConfig.addPassthroughCopy({ "shared/theme-hub.css": "theme.css" });
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
eleventyConfig.addPassthroughCopy({ "shared/favicon/hub.svg": "favicon.svg" });
eleventyConfig.addPassthroughCopy({ "hub/robots.txt": "robots.txt" });
return {
dir: {
+4
View File
@@ -0,0 +1,4 @@
User-agent: *
Allow: /
Sitemap: https://hub.moonweb.org/sitemap.xml
+5
View File
@@ -0,0 +1,5 @@
---
permalink: /sitemap.xml
eleventyExcludeFromCollections: true
---
{% include "sitemap.njk" %}
+3 -2
View File
@@ -1,9 +1,10 @@
const path = require("path");
module.exports = function (eleventyConfig) {
eleventyConfig.addGlobalData("site", { url: "https://infra.moonweb.org" });
eleventyConfig.addFilter("date", (d) => d.toISOString());
eleventyConfig.addPassthroughCopy({ "shared/theme-infra.css": "theme.css" });
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
eleventyConfig.addPassthroughCopy({ "shared/favicon/infra.svg": "favicon.svg" });
eleventyConfig.addPassthroughCopy({ "infra/robots.txt": "robots.txt" });
return {
dir: {
+4
View File
@@ -0,0 +1,4 @@
User-agent: *
Allow: /
Sitemap: https://infra.moonweb.org/sitemap.xml
+5
View File
@@ -0,0 +1,5 @@
---
permalink: /sitemap.xml
eleventyExcludeFromCollections: true
---
{% include "sitemap.njk" %}
+3 -2
View File
@@ -1,9 +1,10 @@
const path = require("path");
module.exports = function (eleventyConfig) {
eleventyConfig.addGlobalData("site", { url: "https://retro.moonweb.org" });
eleventyConfig.addFilter("date", (d) => d.toISOString());
eleventyConfig.addPassthroughCopy({ "shared/theme-retro.css": "theme.css" });
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
eleventyConfig.addPassthroughCopy({ "shared/favicon/retro.svg": "favicon.svg" });
eleventyConfig.addPassthroughCopy({ "retro/robots.txt": "robots.txt" });
return {
dir: {
+4
View File
@@ -0,0 +1,4 @@
User-agent: *
Allow: /
Sitemap: https://retro.moonweb.org/sitemap.xml
+5
View File
@@ -0,0 +1,5 @@
---
permalink: /sitemap.xml
eleventyExcludeFromCollections: true
---
{% include "sitemap.njk" %}
+8
View File
@@ -5,6 +5,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title }} · moonweb.org</title>
<meta name="description" content="{{ description }}">
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
<meta property="og:title" content="{{ title }} · moonweb.org">
<meta property="og:description" content="{{ description }}">
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{{ title }} · moonweb.org">
<meta name="twitter:description" content="{{ description }}">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{%- for page in collections.all %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
<lastmod>{{ page.date | date }}</lastmod>
</url>
{%- endfor %}
</urlset>
+3 -2
View File
@@ -1,9 +1,10 @@
const path = require("path");
module.exports = function (eleventyConfig) {
eleventyConfig.addGlobalData("site", { url: "https://smarthome.moonweb.org" });
eleventyConfig.addFilter("date", (d) => d.toISOString());
eleventyConfig.addPassthroughCopy({ "shared/theme-smarthome.css": "theme.css" });
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
eleventyConfig.addPassthroughCopy({ "shared/favicon/smarthome.svg": "favicon.svg" });
eleventyConfig.addPassthroughCopy({ "smarthome/robots.txt": "robots.txt" });
return {
dir: {
+4
View File
@@ -0,0 +1,4 @@
User-agent: *
Allow: /
Sitemap: https://smarthome.moonweb.org/sitemap.xml
+5
View File
@@ -0,0 +1,5 @@
---
permalink: /sitemap.xml
eleventyExcludeFromCollections: true
---
{% include "sitemap.njk" %}