Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Giving a class to a navigation element
· 11 years ago
You mean if there would be a page.header that would be an object that is a html element? It seems to me like page.xyz like page.menu is returning just a string so wouldn't work in my case what you sug
-
Giving a class to a navigation element
· 11 years ago
you can get a custom header by using: page.header.my_custom_class, but your on the right track.
-
Giving a class to a navigation element
· 11 years ago
Ok, thought maybe it is definable from the modular.md or in some of the .md files but well, I'm starting to learn twig: <a href="{{ page.url }}" {% if page.menu == "MyMenu" %} style="text-transform
-
Giving a class to a navigation element
· 11 years ago
you can add a custom param option in the header of the page, you would just need to look for this and do something with it. it will require you editing the Twig file though to look for this header va
-
Giving a class to a navigation element
· 11 years ago
In my header navigation pane I have all texts capitalized but would like to use camelCase in the name of the first one, to override the default styling I would need to have a class defined for the hom
-
Include external files
· 11 years ago
you should be able to symlink that one file: $ ln -s email.yaml user/config/email.yaml
-
Include external files
· 11 years ago
email: [email protected] -> config/email.yaml and <a href="mailto:{{ config.email.email }}">{{ item.text }}</a> in the template works like a charm. Thanks for your help, even if I now mus
-
Include external files
· 11 years ago
This could easily be done with a very simple plugin that simply installed a twig extension which in turn wrapped a simple php include. Alternatively, you could simply put your email into a custom yaml
-
Include external files
· 11 years ago
Add.: Some pseudocode: [Write me](mailto:{{../external/file/here}}) ---
-
Include external files
· 11 years ago
Hi. I generate a new email every day (avoid spamming). All old addresses are deleted. I could include the plain text files containing only the current address in my WordPress pages without a problem .