Template
sitemap
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { HtmlBasePlugin } from "@11ty/eleventy";
|
||||||
import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
|
import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
|
||||||
|
|
||||||
import { attrs } from "@mdit/plugin-attrs";
|
import { attrs } from "@mdit/plugin-attrs";
|
||||||
@@ -47,6 +48,9 @@ export default async function (eleventyConfig) {
|
|||||||
.addPassthroughCopy("favicon.ico")
|
.addPassthroughCopy("favicon.ico")
|
||||||
.addPassthroughCopy("robots.txt");
|
.addPassthroughCopy("robots.txt");
|
||||||
|
|
||||||
|
/* HTML base */
|
||||||
|
eleventyConfig.addPlugin(HtmlBasePlugin);
|
||||||
|
|
||||||
/* Images */
|
/* Images */
|
||||||
eleventyConfig.addPlugin(eleventyImageTransformPlugin, {
|
eleventyConfig.addPlugin(eleventyImageTransformPlugin, {
|
||||||
// output image formats
|
// output image formats
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ layout: false
|
|||||||
eleventyExcludeFromCollections: true
|
eleventyExcludeFromCollections: true
|
||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<?xml-stylesheet type="text/xsl" href="sitemap.xsl" ?>
|
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
{% for page in collections.all %}
|
{% for page in collections.all %}
|
||||||
{% if page.data.permalink != false %}
|
{% if page.data.permalink != false %}
|
||||||
|
|||||||
Reference in New Issue
Block a user