Skip to content

Commit

Permalink
Reduce extra whitespace in generated file.
Browse files Browse the repository at this point in the history
  • Loading branch information
mythmon committed Nov 26, 2011
1 parent d1d2c00 commit 365be9b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
14 changes: 7 additions & 7 deletions docs/templates/base.html
Expand Up @@ -11,19 +11,19 @@
<header>
<h1><a href="/">wok</a></h1>
<nav>
{% for nav in site.tags['_nav']|sort(attribute='nav_sort') %}
{% if nav.url == page.url %}
{%- for nav in site.tags['_nav']|sort(attribute='nav_sort') %}
{%- if nav.url == page.url %}
<a href="{{ nav.url }}" class="active">{{ nav.title }}</a>
{% else %}
{%- else %}
<a href="{{ nav.url }}">{{ nav.title }}</a>
{% endif %}
{% endfor %}
{%- endif %}
{%- endfor %}
</nav>
</header>

<div id="content">
{% block content %}
{% endblock %}
{%- block content %}
{%- endblock %}
</div>

<footer>
Expand Down
8 changes: 4 additions & 4 deletions docs/templates/default.html
@@ -1,11 +1,11 @@
{% extends "base.html" %}

{% block content %}
{%- block content %}
<hgroup class="pagehead">
<h1>{{ page.title }}</h1>
{% if page.subtitle %}
{%- if page.subtitle %}
<h2>{{ page.subtitle }}</h2>
{% endif %}
{%- endif %}
</hgroup>
{{ page.content }}
{% endblock %}
{%- endblock %}
14 changes: 6 additions & 8 deletions docs/templates/index-links.html
@@ -1,11 +1,9 @@
{% extends "base.html" %}

{% block content %}
{{ page.content }}

{%- extends "base.html" %}
{%- block content %}
{{ super() }}
<ul>
{% for subpage in page.subpages %}
{%- for subpage in page.subpages %}
<li><a href="{{ subpage.url }}">{{ subpage.title }}</a></li>
{% endfor %}
{%- endfor %}
</ul>
{% endblock %}
{%- endblock %}

0 comments on commit 365be9b

Please sign in to comment.