forked from I2P_Developers/i2p.www
Put blog metadata into sidebar
This commit is contained in:
@@ -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 %}
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user