We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From discord conversation
mergedKeys allows to configure the merging strategy of some variables. This behavior should be applied also to layouts.
Use case:
I have a layout that needs a CSS file, and depends on other layout
--- layout: layouts/base.vto css_file: /styles1.css --- <main> {{ content }} </main>
The other layout has also a css_file:
--- css_file: /styles-base.css --- <html> <head> {{ for style of css_file }} <link rel="stylesheet" href="{{ style }}"> {{ /for }} </head> <body> {{ content }} </body> </html>
The idea is to use the stringArray mode for css_file variable. It works with pages and _data files but not in layouts.
stringArray
css_file
_data
The text was updated successfully, but these errors were encountered:
fc80187
No branches or pull requests
Enter your suggestions in details:
From discord conversation
mergedKeys allows to configure the merging strategy of some variables. This behavior should be applied also to layouts.
Use case:
I have a layout that needs a CSS file, and depends on other layout
The other layout has also a css_file:
The idea is to use the
stringArray
mode forcss_file
variable. It works with pages and_data
files but not in layouts.The text was updated successfully, but these errors were encountered: