Use Eleventy's file path stem variable

This commit is contained in:
Helen Chong 2025-03-19 09:51:50 +08:00
parent 62c1f1ded2
commit f17b84a53f
4 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
---
permalink: .htaccess
permalink: "{{ page.filePathStem }}"
eleventyExcludeFromCollections: true
eleventyAllowMissingExtension: true
---

View File

@ -1,4 +1,4 @@
---
layout: misc/404
permalink: /404.html
permalink: "{{ page.filePathStem }}.html"
---

View File

@ -1,5 +1,5 @@
---
permalink: robots.txt
permalink: "{{ page.filePathStem }}.txt"
eleventyExcludeFromCollections: true
---
User-agent: *

View File

@ -1,5 +1,5 @@
---
permalink: sitemap.xml
permalink: "{{ page.filePathStem }}.xml"
eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="utf-8"?>