forked from OfflineIMAP/offlineimap.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
news.html
44 lines (34 loc) · 1.16 KB
/
news.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
layout: page
title: News
---
{% assign links = site.data.links %}
{% assign announces = site.data.announces %}
<h3>Lastest Releases</h3>
<div id='releases'></div>
<!-- Put the announces we know hidden in the page. -->
{% for announce in announces %}
<div id='{{ announce.version }}' link='{{ announce.link }}' style='display=none'></div>
{% endfor %}
<h3>Lastest commits</h3>
<div id='feed-commits'></div>
<!-- TODO:
* Get rid of the feed parser by using the github API.
* Explore API to add interresting stuff:
- https://developer.github.com/v3/repos/contents/#get-archive-link
- https://api.github.com/repos/offlineimap/offlineimap
- https://api.github.com/repos/OfflineIMAP/offlineimap/tags
-->
<!-- See assets/js -->
<script type="text/javascript">
// releases
$(document).ready(fillNews);
// feed-commits
$(document).ready(newsRSS("#feed-commits",
"{{ links.offlineimap.rss.commits }}",
'<li><a href="{url}">{title}</a> <i>(by <a href="http://github.com/{author}">{author}</a>, {date}) <img with=22px height=22px style="vertical-align:middle" data="{author}" src=""></img></i></li>',
commitsSuccess));
</script>
<!--
vim: ts=2 expandtab :
-->