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

menu fix for base_url #1

Merged
merged 1 commit into from Oct 16, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions layout/macros.j2
Expand Up @@ -6,11 +6,11 @@
#} #}
<ul> <ul>
{% for menu_item in menu -%} {% for menu_item in menu -%}
<li><a {% if (menu_item.url == resource.full_url) or <li><a {% if (menu_item.url == resource.url) or
(menu_item.title == "Advanced topics" (menu_item.title == "Advanced topics"
and resource.node.name == "advanced") and resource.node.name == "advanced")
%}class="selected"{% endif %} %}class="selected"{% endif -%}
href="{{ menu_item.url }}">{{ menu_item.title }}</a></li> href="{{ content_url(menu_item.url) }}">{{ menu_item.title }}</a></li>
{%- endfor %} {%- endfor %}
</ul> </ul>
{%- endmacro %} {%- endmacro %}
Expand Down
11 changes: 6 additions & 5 deletions site.yaml
@@ -1,6 +1,7 @@
mode: learning mode: learning
media_root: media media_root: media
media_url: /media media_url: /starter/media
base_url: /starter/
template: hyde.ext.templates.jinja.Jinja2Template template: hyde.ext.templates.jinja.Jinja2Template
plugins: plugins:
- hyde.ext.plugins.meta.MetaPlugin - hyde.ext.plugins.meta.MetaPlugin
Expand All @@ -23,13 +24,13 @@ context:
install: "http://hyde.github.com/install.html" install: "http://hyde.github.com/install.html"
menu: menu:
- title: Home - title: Home
url: /index.html url: index.html
- title: First steps - title: First steps
url: /first-steps.html url: first-steps.html
- title: Advanced topics - title: Advanced topics
url: /advanced/overview.html url: advanced/overview.html
- title: About - title: About
url: /about.html url: about.html


### Advanced part ### ### Advanced part ###


Expand Down