Skip to content

Commit

Permalink
Merge pull request getpelican#293 from trulleberg/master
Browse files Browse the repository at this point in the history
Link pages in menu for foundation-default-colours theme
  • Loading branch information
justinmayer committed Mar 20, 2015
2 parents 27ac5c3 + 10546bb commit 2531aee
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions foundation-default-colours/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h1 class="title">{{ SITENAME|replace(' ', '&nbsp;') }}</h1>
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}

<li><label>Places</label></li>
<li><label>Links</label></li>
{% for name, link in LINKS %}
<li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
Expand All @@ -93,7 +93,7 @@ <h1 class="title">{{ SITENAME|replace(' ', '&nbsp;') }}</h1>
{% endfor %}
{% endif %}

<li><label>Links</label></li>
<li><label>Social</label></li>
{% for name, link in SOCIAL|sort %}
<li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
Expand All @@ -114,6 +114,15 @@ <h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
</ul>
<ul class="right">
{% for pg in PAGES | sort(attribute='index') %}
{% if 'http://' in pg.url -%}
<li><a href="{{ pg.url }}">{{ pg.title }}</a></li>
{% else %}····
<li{% if pg == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ pg.url }}">{{ pg.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</section>
</nav>

Expand All @@ -135,7 +144,7 @@ <h2>{{ pagetitle }}</h2>
<!-- Sidebar -->
<aside class="medium-3 hide-for-small-only columns">
<div class="panel">
<h5>Places</h5>
<h5>Links</h5>
<ul class="side-nav">
{% for name, link in LINKS %}
<li><a href="{{ link }}">{{ name }}</a></li>
Expand All @@ -147,7 +156,7 @@ <h5>Places</h5>
<h5>Tags</h5>
<ul class="tag-cloud">
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a></li>
<li><a href="/tag/{{ tag.0|lower|replace(' ', '-') }}.html" class="tag-{{ tag.1 }}">{{ tag.0 }}</a></li>
{% endfor %}
</ul>
</div>
Expand All @@ -166,7 +175,7 @@ <h5>Monthly Archives</h5>
{% endif %}

<div class="panel">
<h5>Links</h5>
<h5>Social</h5>
<ul class="side-nav">
{% for name, link in SOCIAL|sort %}
<li><a href="{{ link }}">{{ name }}</a></li>
Expand Down

0 comments on commit 2531aee

Please sign in to comment.