generated from inherentlee/11ty
Compare commits
4
Commits
588b66f1ff
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac0a2e6d96 | ||
|
|
a08262ea81 | ||
|
|
e91d19073b | ||
|
|
eaec6b8f49 |
No files matched your search
@@ -2,7 +2,7 @@
|
||||
"autoquotes": null,
|
||||
"brandColors": [],
|
||||
"corsProxy": "/corsprox",
|
||||
"name": "district-dharma",
|
||||
"name": "District Dharma",
|
||||
"sidebar": [
|
||||
{
|
||||
"label": "Dashboard",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { HtmlBasePlugin } from "@11ty/eleventy";
|
||||
import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
|
||||
|
||||
import { attrs } from "@mdit/plugin-attrs";
|
||||
@@ -41,6 +42,9 @@ export default async function (eleventyConfig) {
|
||||
.addPassthroughCopy("favicon.ico")
|
||||
.addPassthroughCopy("robots.txt");
|
||||
|
||||
/* HTML base */
|
||||
eleventyConfig.addPlugin(HtmlBasePlugin);
|
||||
|
||||
/* Images */
|
||||
eleventyConfig.addPlugin(eleventyImageTransformPlugin, {
|
||||
// output image formats
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
permalink: 404.html
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
|
||||
# Content not found
|
||||
|
||||
Sorry, can't find this page. Return [home](/).
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
permalink: sitemap.xml
|
||||
layout: false
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
{% for page in collections.all %}
|
||||
{% if page.data.permalink != false %}
|
||||
{% set absoluteUrl %}{{ page.url | htmlBaseUrl(metadata.url) }}{% endset %}
|
||||
<url>
|
||||
<loc>{{ absoluteUrl }}</loc>
|
||||
<lastmod>{{ page.date | htmlDateString }}</lastmod>
|
||||
</url>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</urlset>
|
||||
Reference in new issue
Block a user