mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-18 09:20:24 +00:00
sitemap.xml and cards
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
const path = require("path");
|
|
||||||
|
|
||||||
module.exports = function (eleventyConfig) {
|
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/theme-code.css": "theme.css" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/favicon/code.svg": "favicon.svg" });
|
eleventyConfig.addPassthroughCopy({ "shared/favicon/code.svg": "favicon.svg" });
|
||||||
|
eleventyConfig.addPassthroughCopy({ "code/robots.txt": "robots.txt" });
|
||||||
|
|
||||||
return {
|
return {
|
||||||
dir: {
|
dir: {
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
User-agent: *
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
Sitemap: https://code.moonweb.org/sitemap.xml
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
permalink: /sitemap.xml
|
||||||
|
eleventyExcludeFromCollections: true
|
||||||
|
---
|
||||||
|
{% include "sitemap.njk" %}
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
const path = require("path");
|
|
||||||
|
|
||||||
module.exports = function (eleventyConfig) {
|
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/theme-hub.css": "theme.css" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/favicon/hub.svg": "favicon.svg" });
|
eleventyConfig.addPassthroughCopy({ "shared/favicon/hub.svg": "favicon.svg" });
|
||||||
|
eleventyConfig.addPassthroughCopy({ "hub/robots.txt": "robots.txt" });
|
||||||
|
|
||||||
return {
|
return {
|
||||||
dir: {
|
dir: {
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
User-agent: *
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
Sitemap: https://hub.moonweb.org/sitemap.xml
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
permalink: /sitemap.xml
|
||||||
|
eleventyExcludeFromCollections: true
|
||||||
|
---
|
||||||
|
{% include "sitemap.njk" %}
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
const path = require("path");
|
|
||||||
|
|
||||||
module.exports = function (eleventyConfig) {
|
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/theme-infra.css": "theme.css" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/favicon/infra.svg": "favicon.svg" });
|
eleventyConfig.addPassthroughCopy({ "shared/favicon/infra.svg": "favicon.svg" });
|
||||||
|
eleventyConfig.addPassthroughCopy({ "infra/robots.txt": "robots.txt" });
|
||||||
|
|
||||||
return {
|
return {
|
||||||
dir: {
|
dir: {
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
User-agent: *
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
Sitemap: https://infra.moonweb.org/sitemap.xml
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
permalink: /sitemap.xml
|
||||||
|
eleventyExcludeFromCollections: true
|
||||||
|
---
|
||||||
|
{% include "sitemap.njk" %}
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
const path = require("path");
|
|
||||||
|
|
||||||
module.exports = function (eleventyConfig) {
|
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/theme-retro.css": "theme.css" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/favicon/retro.svg": "favicon.svg" });
|
eleventyConfig.addPassthroughCopy({ "shared/favicon/retro.svg": "favicon.svg" });
|
||||||
|
eleventyConfig.addPassthroughCopy({ "retro/robots.txt": "robots.txt" });
|
||||||
|
|
||||||
return {
|
return {
|
||||||
dir: {
|
dir: {
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
User-agent: *
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
Sitemap: https://retro.moonweb.org/sitemap.xml
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
permalink: /sitemap.xml
|
||||||
|
eleventyExcludeFromCollections: true
|
||||||
|
---
|
||||||
|
{% include "sitemap.njk" %}
|
||||||
@@ -5,6 +5,14 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>{{ title }} · moonweb.org</title>
|
<title>{{ title }} · moonweb.org</title>
|
||||||
<meta name="description" content="{{ description }}">
|
<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="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
const path = require("path");
|
|
||||||
|
|
||||||
module.exports = function (eleventyConfig) {
|
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/theme-smarthome.css": "theme.css" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
|
||||||
eleventyConfig.addPassthroughCopy({ "shared/favicon/smarthome.svg": "favicon.svg" });
|
eleventyConfig.addPassthroughCopy({ "shared/favicon/smarthome.svg": "favicon.svg" });
|
||||||
|
eleventyConfig.addPassthroughCopy({ "smarthome/robots.txt": "robots.txt" });
|
||||||
|
|
||||||
return {
|
return {
|
||||||
dir: {
|
dir: {
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
User-agent: *
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
Sitemap: https://smarthome.moonweb.org/sitemap.xml
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
permalink: /sitemap.xml
|
||||||
|
eleventyExcludeFromCollections: true
|
||||||
|
---
|
||||||
|
{% include "sitemap.njk" %}
|
||||||
Reference in New Issue
Block a user