Browse Source

laatste structuur aanpassingen

master
mb@mb 6 years ago
parent
commit
c437d29e47
  1. 60
      theme/wttf/templates/article.html
  2. 40
      theme/wttf/templates/base.html
  3. 9
      theme/wttf/templates/index.html

60
theme/wttf/templates/article.html

@ -1,44 +1,32 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block head %} {% block head %}
{{ super() }} {{ super() }}
{% if article.description %} {% if article.description %}
<meta name="description" content="{{article.description}}" /> <meta name="description" content="{{article.description}}" />
{% endif %} {% endif %}
{% for tag in article.tags %}
<meta name="tags" content="{{tag}}" />
{% endfor %}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<section id="content" class="body"> <section id="content" class="body">
<header> <h1 class="entry-title p-name">
<h2 class="entry-title"> <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" </h1>
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> <div class="entry-subtitle">
{% import 'translations.html' as translations with context %} A
{{ translations.translations_for(article) }} <span class="entry-category">
</header> <em>{{ article.category }}</em>
<footer class="post-info"> </span>
<time class="published" datetime="{{ article.date.isoformat() }}"> about
{{ article.locale_date }} <span class="entry-tags">
</time> {% for tag in article.tags %}
{% if article.modified %} <span itemprop="keywords">
<time class="modified" datetime="{{ article.modified.isoformat() }}"> <a href="/{{ tag.url }}" rel="tag">{{ tag }}</a>
{{ article.locale_modified }} </span>
</time> {% endfor %}
{% endif %} </span>
{% if article.authors %} published on
<address class="vcard author"> <span class="entry-date dt-published">{{ article.date }}</span>
By {% for author in article.authors %} </div>
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> <div class="entry-content e-content">{{ article.content }}</div>
{% endfor %}
</address>
{% endif %}
</footer><!-- /.post-info -->
<div class="entry-content">
{{ article.content }}
</div><!-- /.entry-content -->
</section> </section>
{% endblock %} {% endblock %}

40
theme/wttf/templates/base.html

@ -34,25 +34,25 @@
</head> </head>
<body id="index" class="home"> <body id="index" class="home">
<header id="banner"> <header id="banner">
<h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1> <h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1>
<h1 id="menu"> <h1 id="menu">
Welcome to the Welcome to the
<select onchange="window.location.href=this.value"> <select onchange="window.location.href=this.value">
{%- for t, article in tags|sort %} {%- for t, article in tags|sort %}
<option value="/{{ t.url }}" {% if t == tag %}selected{% endif %}>{{ t }}</option> <option value="/{{ t.url }}" {% if t == tag %}selected{% endif %}>{{ t }}</option>
{% endfor %} {% endfor %}
</select> </select>
Federation Federation
</h1> </h1>
</header><!-- /#banner --> </header>
{% block content %} {% block content %}
{% endblock %} {% endblock %}
<footer> <footer>
{% for page in pages %} {% for page in pages %}
{{ page.title }} {{ page.title }}
{{ page.content }} {{ page.content }}
{% endfor %} {% endfor %}
</footer> </footer>
</body> </body>
</html> </html>

9
theme/wttf/templates/index.html

@ -74,15 +74,6 @@
</article> </article>
</li> </li>
{% endif %} {% endif %}
{% if loop.last %}
{% if loop.length > 1 or articles_page.has_other_pages() %}
</ul>
{% if articles_page.has_other_pages() %}
{% include 'pagination.html' %}
{% endif %}
</section>
{% endif %}
{% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endblock content %} {% endblock content %}

Loading…
Cancel
Save