Add "Network status and alerts" page and RSS feed (fixes #170)

Generate alerts pages through alerts.rb plugin
Allow to keep short alias urls for each alert
Move alert pages in _alerts
Update sitemap plugin to include alerts
This commit is contained in:
Saivann 2013-06-18 23:50:37 -04:00
parent cd597fdb21
commit ec44853934
18 changed files with 385 additions and 54 deletions

17
_layouts/alert.html Normal file
View file

@ -0,0 +1,17 @@
---
layout: base
lang: en
---
{% if page.redirect != nil %}
<script>window.location.href='/en/alert/{{ page.redirect }}';</script>
<link rel="canonical" href="http://bitcoin.org/en/alert/{{ page.redirect }}"/>
{% endif %}
<link rel="alternate" type="application/rss+xml" href="/en/rss/alerts.rss" title="Bitcoin network status and alerts">
<div class="versiontext">
<h1>{{ page.title }}<br><small>{{ page.date | date:"%e %B %Y" }}</small></h1>
{{ content }}
<div style="text-align:right">
<i>This notice last updated: {{ page.lastmod }}</i>
</div>
</div>
<a href="/en/alerts">Go back to the network alerts history</a>