commit:     f98a6b47e70389013e8dac94ce37270d76aeb923
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Jan  3 15:39:52 2016 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Jan  3 15:39:52 2016 +0000
URL:        https://gitweb.gentoo.org/sites/www.git/commit/?id=f98a6b47

Add basic full news item list at /news/

 news/index.html | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/news/index.html b/news/index.html
index 22bbd91..094cfbb 100644
--- a/news/index.html
+++ b/news/index.html
@@ -7,4 +7,22 @@ nav2-show: true
 meta: '<link rel="alternate" type="application/atom+xml" title="Gentoo Linux 
News" href="/feeds/news.xml">'
 ---
 
-{% include frontpage/news %}
\ No newline at end of file
+{% for post in site.posts %}
+<article class="newsitem">
+  <h2 class="stick-top newsitem-bullet">
+    <span class="fa fa-fw fa-chevron-circle-right" title="News item"> </span>
+  </h2>
+  <h2 class="stick-top newsitem-headline">
+    <a href="{{ post.url }}">{{ post.title }}</a> <small>({{ post.date | date: 
"%b %-d, %Y" }})</small>
+  </h2>
+  <div class="newsitem-content">
+    {{ post.excerpt }}
+    {% if post.teaserlink %}
+      <p>
+        <span class="fa fa-fw fa-chevron-right"></span>
+        <a href="{{ post.url }}">{{ post.teaserlink }}</a>
+      </p>
+    {% endif %}
+  </div>
+</article>
+{% endfor %}

Reply via email to