]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - templates/index.html
do titles a bit differently
[irc/freenode/web-7.0.git] / templates / index.html
index 6235d8c303ebe002185373eb90ef0428ac459339..c2bb7d2e909a635c63d2c3a3a2db151500c173b5 100644 (file)
@@ -1,5 +1,6 @@
 {% extends "base.html" %}
-{% set title = config.name %}
+{% block title %}{{ config.name }}{% endblock %}
+{% import "artinfo.html" as artinfo %}
 {% block content %}
 <div class="jumbotron">
     <h2 class="child">Welcome to freenode&thinsp;—&thinsp;supporting free and open source communities since 1998</h2>
 </div>
 <div class="main">
     {% with article = get_module("news").articles[-1] %}
-    <b class="art"><a href="{{ article.url }}">{{ article.title }}</a></b>&nbsp;
-    <span class="art-date">{{ article.author }} on {{ article.datetime }}</span>
-    <p class="art-ingress">{{ article.render() }}</p>
+    {{ artinfo.info(article) }}
+    <div class="art-body">{{ article.render() }}</div>
     {#
     <p class="art-links">
         <a href="{{ next }}">Next</a>&nbsp;
         <a href="{{ previous }}">Previous</a>&nbsp;
     #}
     {% endwith %}
-    <a href="{{ url_for("archive") }}" ckass="art-link">
-                News Archive</a>
 </div>
 {% endblock content %}