Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow reusing of files in page layouts #539

Closed
Chng-Zhi-Xuan opened this issue Jan 5, 2019 · 0 comments · Fixed by #1403
Closed

Allow reusing of files in page layouts #539

Chng-Zhi-Xuan opened this issue Jan 5, 2019 · 0 comments · Fixed by #1403

Comments

@Chng-Zhi-Xuan
Copy link
Contributor

Chng-Zhi-Xuan commented Jan 5, 2019

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)_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants