feat: Add check for content

The `source/screens` directory is checked for any present file. This changes the permalink path for demo/index.liquid.

- Add fs module to eleventy config
- Add function to check for files
- Add demoPath to global data
- Change permalink for demo index to use demoPath
This commit is contained in:
sthag 2026-03-15 08:52:09 +01:00
parent 437c561847
commit d3ab17d5a1
2 changed files with 16 additions and 3 deletions

View file

@ -1,5 +1,5 @@
---
permalink: "/"
permalink: "{{ hippie.demoPath }}"
title: Index
---
{% assign pageId = page.fileSlug -%}