forked from github/pelican
Add a way to output pages as well.
This commit is contained in:
parent
259eb1571d
commit
340ddf4aa8
5 changed files with 109 additions and 45 deletions
|
|
@ -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>
|
||||
|
|
|
|||
8
pelican/themes/notmyidea/templates/page.html
Normal file
8
pelican/themes/notmyidea/templates/page.html
Normal 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue