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:
parent
437c561847
commit
d3ab17d5a1
2 changed files with 16 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
permalink: "/"
|
||||
permalink: "{{ hippie.demoPath }}"
|
||||
title: Index
|
||||
---
|
||||
{% assign pageId = page.fileSlug -%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue