]> 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 4091c5e93e82bb9fb3f3327534f83529c650b60a..c2bb7d2e909a635c63d2c3a3a2db151500c173b5 100644 (file)
@@ -1,33 +1,33 @@
 {% 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, the new home of your
-    projects.</h2>
+    <h2 class="child">Welcome to freenode&thinsp;—&thinsp;supporting free and open source communities since 1998</h2>
     <div class="box-container">
-        <a class="box" href="about"><i class=
-        "fa fa-comment fa-4x"></i><br>
-        Chat</a> <a class="box" href="help"><i class=
-        "fa fa-question fa-4x"></i><br>
-        FAQ</a> <a class="box" href="contribute"><i class=
-        "fa fa-users fa-4x"></i><br>
-        Register a group</a>
+        <a class="box" href="{{ url_for("faq/chat") }}">
+            <i class="fa fa-comment fa-4x"></i>
+            <div>Chat</div>
+        </a>
+        <a class="box" href="{{ url_for("pages/soon") }}">
+            <i class="fa fa-users fa-4x"></i>
+            <div>Register a group</div>
+        </a>
+        <a class="box" href="{{ url_for("faq") }}">
+            <i class="fa fa-question fa-4x"></i>
+            <div href="{{ url_for("faq") }}">FAQ</div>
+        </a>
     </div>
 </div>
 <div class="main">
     {% with article = get_module("news").articles[-1] %}
-    <p><b class="art"><a href="{{ article.url }}">{{ article.title }}</a></b>&nbsp;
-    <span class="art-date">{{ article.datetime }} by {{ article.author }}</span></p>
-    <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;
-        <a href="{{ archive }}">Archive</a>&nbsp;
-    </p>
     #}
     {% endwith %}
-    <a href="{{ url_for("archive.html") }}" ckass="art-link"><i class="fa fa-rss"></i>
-                News Archive</a>
 </div>
 {% endblock content %}