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
If i have partials/menu.ejs, I figured I should be able to use "front matter" there such that:
partials/menu.ejs
--- menuItems: - Item 1 - Item 2 - Item 3 ---
would be available, e.g.:
<% if (partial.menuItems.tags) { %> <% partial.menuItems.forEach(function(item) { %> <span><%= item %></span> <% }) %> <% } %>
Alternatively..since "menu" is site wide I could make the "menuItems" available in site.config.js.
site.config.js
Thought it would be a good nice-to-have though...assuming it's not complicated since page already implements this.
page
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If i have
partials/menu.ejs
, I figured I should be able to use "front matter" there such that:would be available, e.g.:
Alternatively..since "menu" is site wide I could make the "menuItems" available in
site.config.js
.Thought it would be a good nice-to-have though...assuming it's not complicated since
page
already implements this.The text was updated successfully, but these errors were encountered: