Created
November 23, 2010 13:50
-
-
Save navilan/711784 to your computer and use it in GitHub Desktop.
Exclude directories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% extends "skeleton/_base.html" %} | |
| {# Note that context variables here are meaningless since they are not evaluated in base templates #} | |
| {# So we create the variable in the CONTEXT #} | |
| {% block content %} | |
| {% block content_header %} | |
| <div id="content-header"><h1>{{ page.title }}</h1></div> | |
| {% endblock %} | |
| {% block content_body %} | |
| {% endblock %} | |
| {% for module in site.children %} | |
| {% if module.name not in excluded_modules %} | |
| <a href="module.url">{{module.name}}</a> | |
| {% endif %} | |
| {% endfor %} | |
| {% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ... | |
| CONTEXT = { | |
| 'GENERATE_CLEAN_URLS': GENERATE_CLEAN_URLS, | |
| 'excluded_modules': [ | |
| 'about' | |
| ] | |
| } | |
| #... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment