1
0
Fork 0
forked from github/pelican

Add a way to output pages as well.

This commit is contained in:
Alexis Metaireau 2010-10-30 20:17:23 +01:00
commit 340ddf4aa8
5 changed files with 109 additions and 45 deletions

View file

@ -30,6 +30,9 @@
{% for title, link in MENUITEMS %}
<li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
{% for title, link in PAGES %}
<li><a href="{{ SITEURL }}/{{ link }}">{{ title }}</a></li>
{% endfor %}
{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/category/{{ cat }}.html">{{ cat }}</a></li>
{% endfor %}
@ -38,11 +41,11 @@
{% block content %}
{% endblock %}
<section id="extras" class="body">
{% if SITEROLL %}
{% if LINKS %}
<div class="blogroll">
<h2>blogroll</h2>
<ul>
{% for name, link in SITEROLL %}
{% for name, link in LINKS %}
<li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
</ul>

View file

@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block title %}{{ page.title }}{% endblock %}
{% block content %}
<section id="content" class="body">
<h2>{{ page.title }}</h2>
{{ page.content }}
</section>
{% endblock %}