mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 10:36:39 -07:00
required data
prefix to extra data in templates now
resolves #12 and #13
This commit is contained in:
parent
281a181958
commit
83c5f6038f
4 changed files with 19 additions and 20 deletions
|
@ -1,22 +1,22 @@
|
|||
{% extends "base.tera" %}
|
||||
{% block content %}
|
||||
{% if tag %}
|
||||
<h1>blog posts tagged {{tag}}</h1>
|
||||
{% if data.tag %}
|
||||
<h1>blog posts tagged {{data.tag}}</h1>
|
||||
<p><a href="/blog/">View all blog posts</a></p>
|
||||
{% else %}
|
||||
<h1>blog Posts</h1>
|
||||
<p><a href="tags">view blog tags</a></p>
|
||||
<p><a href="rss.xml">rss feed</a></p>
|
||||
{% endif %}
|
||||
<h1>Page {{page}}/{{page_max}}</h1>
|
||||
{% if previous %}
|
||||
<a href="./{{previous}}">previous page</a>
|
||||
<h1>Page {{data.page}}/{{data.page_max}}</h1>
|
||||
{% if data.previous %}
|
||||
<a href="./{{data.previous}}">previous page</a>
|
||||
{% endif %}
|
||||
{% if next %}
|
||||
<a href="./{{next}}">next page</a>
|
||||
{% if data.next %}
|
||||
<a href="./{{data.next}}">next page</a>
|
||||
{% endif %}
|
||||
<div class="blog-post-list">
|
||||
{% for resource in resources %}
|
||||
{% for resource in data.resources %}
|
||||
<div class="post">
|
||||
<p class="title"><a href="/blog/{{resource.id}}">{{resource.title}}</a></p>
|
||||
<p class="timestamp">{{resource.timestamp}}</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue