mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #976 from kylewm/notmyidea-active-pages
Modify notmyidea to include class="active" on pages
This commit is contained in:
commit
1443131fde
62 changed files with 221 additions and 221 deletions
|
|
@ -15,7 +15,7 @@
|
||||||
<header id="banner" class="body">
|
<header id="banner" class="body">
|
||||||
<h1><a href="/">A Pelican Blog </a></h1>
|
<h1><a href="/">A Pelican Blog </a></h1>
|
||||||
<nav><ul>
|
<nav><ul>
|
||||||
<li><a href="/override/">Override url/save_as</a></li>
|
<li class="active"><a href="/override/">Override url/save_as</a></li>
|
||||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||||
<li><a href="/category/bar.html">bar</a></li>
|
<li><a href="/category/bar.html">bar</a></li>
|
||||||
<li><a href="/category/cat1.html">cat1</a></li>
|
<li><a href="/category/cat1.html">cat1</a></li>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
<h1><a href="/">A Pelican Blog </a></h1>
|
<h1><a href="/">A Pelican Blog </a></h1>
|
||||||
<nav><ul>
|
<nav><ul>
|
||||||
<li><a href="/override/">Override url/save_as</a></li>
|
<li><a href="/override/">Override url/save_as</a></li>
|
||||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
<li class="active"><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||||
<li><a href="/category/bar.html">bar</a></li>
|
<li><a href="/category/bar.html">bar</a></li>
|
||||||
<li><a href="/category/cat1.html">cat1</a></li>
|
<li><a href="/category/cat1.html">cat1</a></li>
|
||||||
<li><a href="/category/misc.html">misc</a></li>
|
<li><a href="/category/misc.html">misc</a></li>
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<header id="banner" class="body">
|
<header id="banner" class="body">
|
||||||
<h1><a href="../">Alexis' log </a></h1>
|
<h1><a href="../">Alexis' log </a></h1>
|
||||||
<nav><ul>
|
<nav><ul>
|
||||||
<li><a href="../override/">Override url/save_as</a></li>
|
<li class="active"><a href="../override/">Override url/save_as</a></li>
|
||||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||||
<li><a href="../category/yeah.html">yeah</a></li>
|
<li><a href="../category/yeah.html">yeah</a></li>
|
||||||
<li><a href="../category/misc.html">misc</a></li>
|
<li><a href="../category/misc.html">misc</a></li>
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<h1><a href="../">Alexis' log </a></h1>
|
<h1><a href="../">Alexis' log </a></h1>
|
||||||
<nav><ul>
|
<nav><ul>
|
||||||
<li><a href="../override/">Override url/save_as</a></li>
|
<li><a href="../override/">Override url/save_as</a></li>
|
||||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
<li class="active"><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||||
<li><a href="../category/yeah.html">yeah</a></li>
|
<li><a href="../category/yeah.html">yeah</a></li>
|
||||||
<li><a href="../category/misc.html">misc</a></li>
|
<li><a href="../category/misc.html">misc</a></li>
|
||||||
<li><a href="../category/cat1.html">cat1</a></li>
|
<li><a href="../category/cat1.html">cat1</a></li>
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,8 @@
|
||||||
<li><a href="{{ link }}">{{ title }}</a></li>
|
<li><a href="{{ link }}">{{ title }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if DISPLAY_PAGES_ON_MENU -%}
|
{% if DISPLAY_PAGES_ON_MENU -%}
|
||||||
{% for page in PAGES %}
|
{% for pg in PAGES %}
|
||||||
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
|
<li{% if pg == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ pg.url }}">{{ pg.title }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if DISPLAY_CATEGORIES_ON_MENU -%}
|
{% if DISPLAY_CATEGORIES_ON_MENU -%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue