Skip to content

Allow reusing of files in page layouts #539

@Chng-Zhi-Xuan

Description

@Chng-Zhi-Xuan

Version: v1.15.2

Problem

Currently page layouts would need to duplicate files if the exact same files are used as layouts are treated as stand-alone folders.

Potential solution

Introduce a new file e.g., settings.md into layouts that can contain this kind of settings?

To extend your idea, currently the layout files for footer and other items are separated. It would be neater if all the different files (footer, siteNav, css) are all stored in their respective folders and have a simple settings.md file to "store" the file names required. Basically abstracting layouts to just a front matter file.

E.G, content within settings.md:

css: colorTheme1.css, blackTheme2.css
footer: simpleFooter.md
pageNav: default
pageNavHeader: "This is a list of stuff"
siteNav: mySiteNav.md
script: myScript1.js, myScript2.js

Then all the different file types are just stored in their respective folders within _/markbind

Original comment by @Chng-Zhi-Xuan in #465 (comment)_

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions