Put blog metadata into sidebar

This commit is contained in:
str4d
2015-05-30 00:22:40 +00:00
parent 068c60acb2
commit 526c56cd26
2 changed files with 8 additions and 3 deletions

View File

@@ -1,12 +1,15 @@
{% extends "global/layout.html" %}
{%- from "global/macros" import render_categories with context -%}
{% block title %}{{ title }} - {{ _('Blog') }}{% endblock %}
{% block content %}
{% block sidebar %}
<ul id="post-info" class="lastupdated">
<li class="date">{{ _('Posted:') }} {{ meta.date }}</li>
<li class="author">{{ _('Author:') }} {{ meta.author }}</li>
<li class="category">{{ render_categories(meta.category)|safe }}</li>
</ul>
{% endblock %}
{% block content %}
{% autoescape false %}
{{ body }}
{% endautoescape %}

View File

@@ -54,7 +54,7 @@
</div>
<main role="main" class="inner">
{% if self.content_nav() or self.lastupdated() or self.accuratefor() -%}
{% if self.content_nav() or self.sidebar() or self.lastupdated() or self.accuratefor() -%}
<aside class="sidebar">
{% if self.content_nav() -%}
<nav{% if self.lastupdated() or self.accuratefor() %} class="top"{% endif %}>
@@ -62,6 +62,8 @@
</nav>
{%- endif %}
{% block sidebar %}{% endblock %}
{% if self.lastupdated() or self.accuratefor() -%}
<div class="lastupdated">
<!--
@@ -86,7 +88,7 @@
</aside>
{%- endif %}
<article class="content-inner{% if self.content_nav() or self.lastupdated() or self.accuratefor() %} two-col{% endif %}">
<article class="content-inner{% if self.content_nav() or self.sidebar() or self.lastupdated() or self.accuratefor() %} two-col{% endif %}">
{% block content %}{% endblock %}
</article>
</main>