]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - templates/article.html
readme: adds missing dependency (build fails without it)
[irc/freenode/web-7.0.git] / templates / article.html
index 32162c3bb9181f3400c51e04b46b74ca5e52ded8..578a50995eb99a9b670c609a4be4170d6b3a19ab 100644 (file)
@@ -1,9 +1,23 @@
-<div class="art">
-    <p><b class="art">{{ Title }}</b>&nbsp;
-    <span class="art-date">{{ Date }} by {{ Author }}</span></p>
-    <p class="art-ingress">{% block Content %}{% endblock %}</p>
-    <p class=art-links">
-        <a href="{{ previous }}" class="art-link">Previous</a>
-        <a href="{{ previous }}" class="art-link">Next</a>
-    </p>
-</div>
\ No newline at end of file
+{% extends "base.html" %}
+{% import "artinfo.html" as artinfo with context %}
+{% set title=article.title %}
+{% set robots=article.robots %}
+{% block content %}
+<div class="main">
+    {%- if article.source.meta.imported is defined %}
+    <div class="art-warning">
+        This article was imported from freenode's wordpress blog, and is
+        likely out of date. It's preserved here in the interest of
+        history, but please don't treat it as an authoritative source in
+        any context. Links on this page may be out of date and broken.
+    </div>
+    {%- endif %}
+    <div class="art-info">
+        {{ artinfo.info(article) }}
+    </div>
+    <div class="art-body">
+    {{ article.render() }}
+    </div>
+    {{ artinfo.nav(article) }}
+</div>
+{% endblock content %}