diff options
author | Alex Legler <alex@a3li.li> | 2015-04-02 11:09:31 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2015-04-02 11:09:31 +0200 |
commit | b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef (patch) | |
tree | ae0ac2aedd349e4e5757200b5017e12f9a2b5b36 /_includes/frontpage | |
download | www-b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef.tar.gz www-b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef.tar.bz2 www-b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef.zip |
Initial version
Diffstat (limited to '_includes/frontpage')
-rw-r--r-- | _includes/frontpage/glsa | 17 | ||||
-rw-r--r-- | _includes/frontpage/news | 6 | ||||
-rw-r--r-- | _includes/frontpage/packages | 8 | ||||
-rw-r--r-- | _includes/frontpage/planet | 8 | ||||
-rw-r--r-- | _includes/frontpage/wiki | 8 |
5 files changed, 47 insertions, 0 deletions
diff --git a/_includes/frontpage/glsa b/_includes/frontpage/glsa new file mode 100644 index 0000000..6669532 --- /dev/null +++ b/_includes/frontpage/glsa @@ -0,0 +1,17 @@ +<table class="table table-striped"> + {% for advisory in site.data.glsa limit:5 %} + <tr> + <td>{{ advisory.id }}</td> + <td><a href="{{ advisory.uri }}">{{ advisory.title }}</a></td> + <td class="text-right"> + {% if advisory.severity == 'high' %} + <span class="label label-danger">high</span> + {% elsif advisory.severity == 'low' %} + <span class="label label-info">low</span> + {% else %} + <span class="label label-warning">normal</span> + {% endif %} + </td> + </tr> + {% endfor %} +</table>
\ No newline at end of file diff --git a/_includes/frontpage/news b/_includes/frontpage/news new file mode 100644 index 0000000..16e5f93 --- /dev/null +++ b/_includes/frontpage/news @@ -0,0 +1,6 @@ +{% for post in site.posts | limit: 3 %} +<article> + <h2><a href="{{ post.url }}">{{ post.title }}</a> <small>({{ post.date | date: "%b %-d, %Y" }})</small></h2> + {{ post.excerpt }} +</article> +{% endfor %}
\ No newline at end of file diff --git a/_includes/frontpage/packages b/_includes/frontpage/packages new file mode 100644 index 0000000..db7f8a5 --- /dev/null +++ b/_includes/frontpage/packages @@ -0,0 +1,8 @@ +<table class="table table-striped frontpage-table"> + {% for post in site.data.packages.updates limit:5 %} + <tr> + <td class="frontpage-table-package-atom"><a href="{{ post.uri }}" title="{{ post.atom }}">{{ post.atom_p }}</a></td> + <td>{{ post.description }}</td> + </tr> + {% endfor %} +</table>
\ No newline at end of file diff --git a/_includes/frontpage/planet b/_includes/frontpage/planet new file mode 100644 index 0000000..2edd146 --- /dev/null +++ b/_includes/frontpage/planet @@ -0,0 +1,8 @@ +<table class="table table-striped frontpage-table"> + {% for post in site.data.planet.posts limit:5 %} + <tr> + <td class="frontpage-table-planet-author">{{ post.author | xml_escape }}</td> + <td><a href="{{ post.uri }}" rel="nofollow" title="{{ post.title | xml_escape }}">{{ post.title | xml_escape }}</a></td> + </tr> + {% endfor %} +</table>
\ No newline at end of file diff --git a/_includes/frontpage/wiki b/_includes/frontpage/wiki new file mode 100644 index 0000000..5f8d818 --- /dev/null +++ b/_includes/frontpage/wiki @@ -0,0 +1,8 @@ +<table class="table table-striped frontpage-table"> + {% for post in site.data.wiki.updates limit:5 %} + <tr> + <td class="frontpage-table-wiki-title"><a href="{{ post.uri }}" rel="nofollow">{{ post.title }}</a></td> + <td>started by {{ post.author }}</td> + </tr> + {% endfor %} +</table>
\ No newline at end of file |