Skip to content
Snippets Groups Projects
Commit 36fb8015 authored by William Light's avatar William Light
Browse files

add support for pages

parent 41b1981d
No related branches found
No related tags found
No related merge requests found
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}{{ SITENAME }} · {{ article.title }}{% endblock %}
{% block content %} {% block content %}
{% include "article_stub.html" %} {% include "article_stub.html" %}
{% endblock %} {% endblock %}
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<li {%- if output_file == "index.html" %} class="selected"{% endif %}><a href="{{ SITEURL }}">Home</a></li> <li {%- if output_file == "index.html" %} class="selected"{% endif %}><a href="{{ SITEURL }}">Home</a></li>
{% for page in PAGES -%} {% for page in PAGES -%}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li> <li {%- if output_file == page.url %} class="selected"{% endif %}><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor -%} {% endfor -%}
<li {%- if output_file == "archives.html" %} class="selected"{% endif %}><a href="{{ SITEURL }}/archives.html">Archives</a></li> <li {%- if output_file == "archives.html" %} class="selected"{% endif %}><a href="{{ SITEURL }}/archives.html">Archives</a></li>
</ul> </ul>
......
{% extends "base.html" %}
{% block title %}{{ SITENAME }} &middot; {{ page.title }}{% endblock %}
{% block content %}
<div class="page">
<h1>{{ page.title }}</h1>
{{ page.content }}
</div>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment