Skip to content

Commit

Permalink
Use object.url to get the url for author, category and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed May 14, 2012
1 parent 2e0d1ca commit 9c349d8
Show file tree
Hide file tree
Showing 42 changed files with 74 additions and 74 deletions.
4 changes: 2 additions & 2 deletions Just-Read/templates/archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h2>{{ year }}</h2>
<h2>Tags</h2>
<ul class="tag">
{% for tag in tag_cloud|sort %}
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/tag/{{ tag.0 }}.html">{{ tag.0 }}</a></li>
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a></li>
{% endfor %}
</ul>
</div>
Expand All @@ -43,4 +43,4 @@ <h2>Tags</h2>
$("#jquerytabs").tabs();
});
</script>
{% endblock %}
{% endblock %}
6 changes: 3 additions & 3 deletions Just-Read/templates/metadata.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<div class="meta wrapper">
<time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time>
<ul class="tag clearfix">
<li><a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></li>
<li><a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></li>
{% if article.tags %}
{% for tag in article.tags %}
<li><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a></li>
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
{% endif %}
</ul>
{% if PDF_PROCESSOR %}<p><a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">Download the .pdf</a></p>{% endif %}
</div>
</div>
4 changes: 2 additions & 2 deletions Just-Read/templates/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ <h2>Tags</h2>

<ul class="tag">
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/tag/{{ tag.0 }}.html">{{ tag.0 }}</a></li>
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a></li>
{% endfor %}
</ul>

</div>
</div>
{% endblock %}
{% endblock %}
4 changes: 2 additions & 2 deletions bootstrap/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{% endfor %}
{% endif %}
{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/category/{{ cat }}.html">{{ cat }}</a></li>
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
</ul>
<p class="pull-right"><a href="{{ SITEURL }}/archives.html">[archives]</a> <a href="{{ SITEURL }}/tags.html">[tags]</a></p>
Expand Down Expand Up @@ -73,4 +73,4 @@ <h3>Social</h3>

</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion bootstrap/templates/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% block content %}
<ul>
{% for category, articles in categories %}
<li><a href="{{ SITEURL }}/category/{{ category }}.html">{{ category }}</a></li>
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
{% endfor %}
</ul>
{% endblock %}
6 changes: 3 additions & 3 deletions bootstrap/templates/metadata.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Permalink: <a class="more" href="{{ SITEURL }}/{{ article.url }}">{{ article.date }}</a>
{% if article.author %}by <a class="url fn" href="{{ SITEURL }}/author/{{ article.author }}.html">{{ article.author }}</a>{% endif %}
in <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>
{% if article.tags %}tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a> {% endfor %}{% endif %}
{% if article.author %}by <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>{% endif %}
in <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
{% if article.tags %}tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> {% endfor %}{% endif %}
2 changes: 1 addition & 1 deletion bootstrap/templates/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% block content %}
<ul>
{% for tag, articles in tags %}
<li><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a></li>
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
{% endblock %}
2 changes: 1 addition & 1 deletion bootstrap2/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
{% endif %}
{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}>
<a href="{{ SITEURL }}/category/{{ cat }}.html">
<a href="{{ SITEURL }}/{{ cat.url }}">
<i class="icon-folder-open icon-large"></i>{{ cat }}
</a>
</li>
Expand Down
6 changes: 3 additions & 3 deletions bootstrap2/templates/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<li class="nav-header"><h4><i class="icon-folder-close icon-large"></i>Categories</h4></li>
{% for cat, null in categories %}
<li>
<a href="{{ SITEURL }}/category/{{ cat }}.html">
<a href="{{ SITEURL }}/{{ cat.url }}">
<i class="icon-folder-open icon-large"></i>{{ cat }}
</a>
</li>
Expand All @@ -28,7 +28,7 @@
<li class="nav-header"><h4><i class="icon-tags icon-large"></i>Tags</h4></li>
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}">
<a href="{{ SITEURL }}/tag/{{ tag.0 }}.html">
<a href="{{ SITEURL }}/{{ tag.0.url }}">
<i class="icon-tag icon-large"></i>{{ tag.0 }}
</a>
</li>
Expand All @@ -40,4 +40,4 @@
{% if SIDEBAR_CUSTOM %}
{{ SIDEBAR_CUSTOM }}
{% endif %}
</ul>
</ul>
4 changes: 2 additions & 2 deletions bootstrap2/templates/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<li class="nav-header"><h4><i class="icon-tags icon-large"></i>Tags</h4></li>
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}">
<a href="{{ SITEURL }}/tag/{{ tag.0 }}.html">
<a href="{{ SITEURL }}/{{ tag.0.url }}">
<i class="icon-tag icon-large"></i>{{ tag.0 }}
</a>
</li>
{% endfor %}
</ul>
{% endblock %}
{% endblock %}
4 changes: 2 additions & 2 deletions brownstone/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<div id="content">
<div class="post">
<h2 class="title"><a href="{{ article.url }}">{{ article.title }}</a></h2>
<p class="meta"><span class="date">Le {{ article.locale_date }} </span><span class="posted">Par <a href="#">{{ article.author }}</a></span><span>&nbsp; | Catégorie : <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></span></p>
<p class="meta"><span class="date">Le {{ article.locale_date }} </span><span class="posted">Par <a href="#">{{ article.author }}</a></span><span>&nbsp; | Catégorie : <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></span></p>
<p class="meta">Tags : {% for tag in article.tags %}
<span><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a> / </span>
<span><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> / </span>
{% endfor %}</p>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
Expand Down
4 changes: 2 additions & 2 deletions brownstone/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h1><a href="{{ SITEURL }}">{{ SITENAME }}</h1>
<h2>Catégories</h2>
<ul>
{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/category/{{ cat }}.html">{{ cat }}</a></li>
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
</ul>
</li>
Expand Down Expand Up @@ -82,7 +82,7 @@ <h2>Social</h2>
<h2>Tags</h2>
<ul>
{% for tag, articles in tags %}
<li><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a></li>
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</li>
Expand Down
4 changes: 2 additions & 2 deletions brownstone/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<div id="content">
<div class="post">
<h2 class="title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
<p class="meta"><span class="date">Le {{ article.date.locale_date }} </span><span class="posted">Par <a href="#">{{ article.author }}</a></span><span>&nbsp; | Catégorie : <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></span></p>
<p class="meta"><span class="date">Le {{ article.date.locale_date }} </span><span class="posted">Par <a href="#">{{ article.author }}</a></span><span>&nbsp; | Catégorie : <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></span></p>
<p class="meta">Tags : {% for tag in article.tags %}
<span><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a> / </span>
<span><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> / </span>
{% endfor %}</p>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
Expand Down
10 changes: 5 additions & 5 deletions dev-random/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ <h1>
</a>
</h1>
<div class="meta">
Dans «<a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>»
par <a href="{{ SITEURL }}/author/{{article.author}}.html">{{ article.author}}</a>
Dans «<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>»
par <a href="{{ SITEURL }}/{{article.author.url}}">{{ article.author}}</a>
</div>
</header>
<div class="post-content">
{{ article.content}}
</div>
<footer class="post-footer">
<div class="meta">
Posté dans «<a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>»
par <a href="{{ SITEURL }}/author/{{article.author}}.html">{{ article.author}}</a><br />
Mots-clés: {% for tag in article.tags %} #<a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a>{% endfor %}
Posté dans «<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>»
par <a href="{{ SITEURL }}/{{article.author.url}}">{{ article.author}}</a><br />
Mots-clés: {% for tag in article.tags %} #<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% endfor %}
</div>
</footer>
{% if DISQUS_SITENAME %}
Expand Down
4 changes: 2 additions & 2 deletions dev-random/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ <h1>
</a>
</h1>
<div class="meta">
Dans «<a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>»
par <a href="{{ SITEURL }}/author/{{article.author}}.html">{{ article.author}}</a>
Dans «<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>»
par <a href="{{ SITEURL }}/{{article.author.url}}">{{ article.author}}</a>
</div>
</header>
<div class="post-content">
Expand Down
2 changes: 1 addition & 1 deletion dev-random/templates/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h1>Mots-clés</h1>
<ul id="tagslist">
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/tag/{{ tag.0 }}.html">{{ tag.0 }}</a></li>
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a></li>
{% endfor %}
</ul>
</section>
Expand Down
4 changes: 2 additions & 2 deletions lightweight/templates/meta.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<details class="meta">
Publié le <time datetime="{{ article.date.isoformat() }}" pubdate="pubdate">{{ article.locale_date }}</time>
{% if article.author %} par {{ article.author }}{% endif %} dans «<a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>».
{% if article.tags %}Mots-clés: {% for tag in article.tags %}{%if loop.index > 1%}, {%endif%}<a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a>{% endfor %}</p>{% endif %}
{% if article.author %} par {{ article.author }}{% endif %} dans «<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>».
{% if article.tags %}Mots-clés: {% for tag in article.tags %}{%if loop.index > 1%}, {%endif%}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% endfor %}</p>{% endif %}
</details>
4 changes: 2 additions & 2 deletions lightweight/templates/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<h2>Catégories</h2>
<ul>
{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/category/{{ cat }}.html">{{ cat }}</a></li>
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
</ul>
</div>
Expand All @@ -16,7 +16,7 @@ <h2>Catégories</h2>
<h2>Mots-clés:</h2>
<ul>
{% for tag in article.tags %}
<li><a href="{{SITEURL}}/tag/{{tag}}.html">{{ tag }}</a></li>
<li><a href="{{SITEURL}}/{{tag.url}}">{{ tag }}</a></li>
{% endfor %}
<li><a class="more" href="{{SITEURL}}/tags.html">Plus...</a></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion lightweight/templates/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<h2 class="page_title">Liste des mots-clés</h2>
<ul id="tag_list">
{% for tag, articles in tags %}
<li><h3><a href="{{SITEURL}}/tag/{{tag}}.html">{{ tag }}</a></h3></li>
<li><h3><a href="{{SITEURL}}/{{tag.url}}">{{ tag }}</a></h3></li>
{% endfor %}
</ul>
{% endblock %}
2 changes: 1 addition & 1 deletion martyalchin/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1>{{ article.title }}</h1>
By <a class="url fn" href="#">{{ article.author }}</a>
{% endif %}
on <a>{{ article.date.locale_date }}</a>
about <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>
about <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</div>
{{ article.content }}
{% endblock %}
2 changes: 1 addition & 1 deletion mnmlist/templates/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% block content %}
<ul>
{% for category, articles in categories %}
<li><a href="{{ SITEURL }}/category/{{ category }}.html">{{ category }}</a></li>
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
{% endfor %}
</ul>
{% endblock %}
2 changes: 1 addition & 1 deletion mnmlist/templates/taglist.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{% if article.tags %}<p>tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a>{% endfor %}</p>{% endif %}
{% if article.tags %}<p>tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% endfor %}</p>{% endif %}
{% if PDF_PROCESSOR %}<p><a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a></p>{% endif %}
2 changes: 1 addition & 1 deletion mnmlist/templates/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% block content %}
<ul>
{% for tag, articles in tags %}
<li><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a></li>
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion notmyidea-cms-fr/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Par <a class="url fn" href="#">{{ article.author }}</a>
</address>
{% endif %}
<p>Dans <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>.
<p>Dans <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>.
{% include 'taglist.html' %}
</footer><!-- /.post-info -->
{{ article.content }}
Expand Down
4 changes: 2 additions & 2 deletions notmyidea-cms-fr/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1><a href="{{ SITEURL }}/index.html">{{ SITENAME }} {% if SITESUBTITLE %} <str
{% endfor %}
{% endif %}
{#{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/category/{{ cat }}.html">{{ cat }}</a></li>
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}#}
</ul></nav>
</header><!-- /#banner -->
Expand All @@ -51,7 +51,7 @@ <h1><a href="{{ SITEURL }}/index.html">{{ SITENAME }} {% if SITESUBTITLE %} <str
<h2>Catégories</h2>
<ul>
{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/category/{{ cat }}.html">{{ cat }}</a></li>
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions notmyidea-cms-fr/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url
Par <a class="url fn" href="#">{{ article.author }}</a>
</address>
{% endif %}
<p>Dans <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>. {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">télécharger le PDF</a>{% endif %}</p>
<p>Dans <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>. {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">télécharger le PDF</a>{% endif %}</p>
{% include 'taglist.html' %}
</footer><!-- /.post-info -->
{{ article.content }}
Expand All @@ -43,7 +43,7 @@ <h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalien ve
<address class="vcard author">
Par <a class="url fn" href="#">{{ article.author }}</a>
</address>
<p> Dans <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></p>
<p> Dans <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
{% include 'taglist.html' %}
<p>{% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">PDF</a>{% endif %}</p>
</footer><!-- /.post-info -->
Expand Down
2 changes: 1 addition & 1 deletion notmyidea-cms-fr/templates/taglist.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{% if article.tags %}<p>tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a>{% endfor %}</p>{% endif %}
{% if article.tags %}<p>tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% endfor %}</p>{% endif %}
{% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">Télécharger le PDF</a>{% endif %}</p>
4 changes: 2 additions & 2 deletions notmyidea-cms/templates/article_infos.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

{% if article.author %}
<address class="vcard author">
By <a class="url fn" href="{{ SITEURL }}/author/{{ article.author }}.html">{{ article.author }}</a>
By <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
</address>
{% endif %}
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>. {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>{% endif %}</p>
<p>In <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>. {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>{% endif %}</p>
{% include 'taglist.html' %}
{% include 'translations.html' %}
</footer><!-- /.post-info -->
4 changes: 2 additions & 2 deletions notmyidea-cms/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1><a href="{{ SITEURL }}/index.html">{{ SITENAME }} {% if SITESUBTITLE %} <str
{% endfor %}
{% endif %}
{#{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/category/{{ cat }}.html">{{ cat }}</a></li>
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}#}
</ul></nav>
</header><!-- /#banner -->
Expand All @@ -50,7 +50,7 @@ <h1><a href="{{ SITEURL }}/index.html">{{ SITENAME }} {% if SITESUBTITLE %} <str
<h2>Categories</h2>
<ul>
{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/category/{{ cat }}.html">{{ cat }}</a></li>
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion notmyidea-cms/templates/taglist.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{% if article.tags %}<p>tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a>{% endfor %}</p>{% endif %}
{% if article.tags %}<p>tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% endfor %}</p>{% endif %}
{% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>{% endif %}</p>
Loading

0 comments on commit 9c349d8

Please sign in to comment.