mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-17 17:00:25 +00:00
sitemap.xml and cards
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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" %}
|
||||
Reference in New Issue
Block a user