diff options
author | kosmgco <i@ooops.me> | 2017-02-27 15:26:45 +0800 |
---|---|---|
committer | kosmgco <i@ooops.me> | 2017-02-27 15:26:45 +0800 |
commit | 1f3170df75d42d1cab8860080d0c254fb1d9355e (patch) | |
tree | df8625f539a938b0892fa6f8a2b264ad5604c493 /ops/templates/page.html | |
parent | 7e960821836f8d4cc4c84e30002bc634635ca894 (diff) | |
download | pelican-themes-1f3170df75d42d1cab8860080d0c254fb1d9355e.tar.gz |
update
Diffstat (limited to 'ops/templates/page.html')
-rw-r--r-- | ops/templates/page.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ops/templates/page.html b/ops/templates/page.html new file mode 100644 index 0000000..ca79465 --- /dev/null +++ b/ops/templates/page.html @@ -0,0 +1,38 @@ +{% extends 'base.html' %} + +{% block title %}{{ SITENAME }} - {{ page.title }} {% endblock %} + +{% block container %} + {% if page.title == 'blog' %} + <section id="content"> + <header class="header"> + <h2 class="blogpost-title">Articles in {{ AUTHOR }}'s blog</h2> + </header> + <dl> + {% for category,articles in categories %} + <h3> + {{ category }} + </h3> + {% for article in articles %} + <dd> + <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> + </dd> + {% endfor %} + {% endfor %} + </dl> + </section> + <br/><br/><br/> + {% else %} + <section id="content"> + <header class="header"> + <h2 class="blogpost-title">{{ page.title }}</h2> + </header> + {{ page.content }} + </section> + <br/> <br/> <br/> + {% endif %} +{% endblock %} + +{% block footer %} + {% include '_includes/footer.html' %} +{% endblock %} |