Use blog layout for alerts with clear RSS feeds

This commit is contained in:
Saivann 2015-07-04 13:15:29 -04:00
parent a1b7f4f533
commit 7748504b94
No known key found for this signature in database
GPG key ID: 5780F5D31B5577B0
4 changed files with 31 additions and 15 deletions

View file

@ -11,8 +11,22 @@ lang: en
{% endif %} {% endif %}
<link rel="alternate" type="application/rss+xml" href="/en/rss/alerts.rss" title="Bitcoin network status and alerts"> <link rel="alternate" type="application/rss+xml" href="/en/rss/alerts.rss" title="Bitcoin network status and alerts">
<div class="alerttext">
<img src="/img/icons/warning.svg" class="alerticon" alt="warning"><h1>{{ page.title }}<a type="application/rss+xml" href="/en/rss/alerts.rss"><img src="/img/icons/icon_rss.svg" alt="rss" class="rssicon"></a><br><small>{{ page.date | date:"%e %B %Y" }}</small></h1> <div class="subhead-links">
{{ content }} <a href="/en/alerts">Network alerts history</a>
| <a type="application/rss+xml" href="/en/rss/alerts.rss"><img src="/img/icons/icon_rss.svg" width="12px" alt="rss" class="rssicon"> Subscribe to RSS feed</a>
| <a href="https://github.com/bitcoin-dot-org/bitcoin.org/commits/master/{{page.path|uri_escape}}">Post history</a>
| <a href="https://github.com/bitcoin-dot-org/bitcoin.org/issues/new?body=Source%20File%3A%20{{page.path|uri_escape}}%0A%0A">Report issue</a>
</div>
<div class="post">
<header class="post-header">
<h1 class="post-title alerttitle"><img src="/img/icons/warning.svg" alt="warning">{{ page.title }}<br><small>{{ page.date | date:"%e %B %Y" }}</small></h1>
</header>
<article class="post-content">
{{ content }}
</article>
</div> </div>
<a href="/en/alerts">Go back to the network alerts history</a>

View file

@ -967,7 +967,6 @@ br.clear {
} }
.subhead-links { .subhead-links {
font-size: 85%; font-size: 85%;
height: 18px;
} }
div.post { div.post {
@ -1772,14 +1771,11 @@ h2 .rssicon{
text-align:left; text-align:left;
} }
.alerttext{ .alerttitle img{
margin-bottom:40px; display:block;
} margin:auto;
.alerttext h1{ width:42px;
text-align:left; height:42px;
}
.alerttext img+h1{
margin-left:54px;
} }
.alertstatusinactive{ .alertstatusinactive{
font-size:130%; font-size:130%;

View file

@ -30,6 +30,7 @@ module Jekyll
self.read_yaml(File.join(base, srcdir), src) self.read_yaml(File.join(base, srcdir), src)
self.data['lang'] = lang self.data['lang'] = lang
self.data['date'] = date self.data['date'] = date
self.data['path'] = srcdir+'/'+src
self.data['layout'] = 'alert' self.data['layout'] = 'alert'
if dstdir == '' if dstdir == ''
self.data['canonical'] = '/en/alert/' + src.split('.')[0] self.data['canonical'] = '/en/alert/' + src.split('.')[0]

View file

@ -8,8 +8,13 @@ id: alerts
title: Network status and alerts - Bitcoin title: Network status and alerts - Bitcoin
--- ---
<link rel="alternate" type="application/rss+xml" href="/en/rss/alerts.rss" title="Bitcoin network status and alerts"> <link rel="alternate" type="application/rss+xml" href="/en/rss/alerts.rss" title="Bitcoin network status and alerts">
<div class="alerttext">
<h1>Network status and alerts<a type="application/rss+xml" href="/en/rss/alerts.rss"><img src="/img/icons/icon_rss.svg" alt="rss" class="rssicon"></a></h1>
<h1>Network status and alerts</h1>
<p class="summary">Stay aware of network alerts by <a href="/en/rss/alerts.rss">subscribing to the RSS feed</a> <a type="application/rss+xml" href="/en/rss/alerts.rss"><img src="/img/icons/icon_rss.svg" alt="rss" class="rssicon"></a></p>
<div>
{% if site.STATUS == 0 %} {% if site.STATUS == 0 %}
<div class="alertstatusinactive">There is no ongoing event on the Bitcoin network.</div> <div class="alertstatusinactive">There is no ongoing event on the Bitcoin network.</div>
{% else %} {% else %}