Commit add818c5 authored by Julius Volz's avatar Julius Volz

Merge pull request #109 from sdurrheimer/master

Provide RSS feed for blog posts
parents fed73240 df23f67b
...@@ -7,3 +7,4 @@ gem 'guard-nanoc' ...@@ -7,3 +7,4 @@ gem 'guard-nanoc'
gem 'nokogiri' gem 'nokogiri'
gem 'redcarpet' gem 'redcarpet'
gem 'pygments.rb' gem 'pygments.rb'
gem 'builder'
...@@ -3,6 +3,7 @@ GEM ...@@ -3,6 +3,7 @@ GEM
specs: specs:
adsf (1.2.0) adsf (1.2.0)
rack (>= 1.0.0) rack (>= 1.0.0)
builder (3.2.2)
celluloid (0.16.0) celluloid (0.16.0)
timers (~> 4.0.0) timers (~> 4.0.0)
coderay (1.1.0) coderay (1.1.0)
...@@ -57,6 +58,7 @@ PLATFORMS ...@@ -57,6 +58,7 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
adsf adsf
builder
guard-nanoc guard-nanoc
kramdown kramdown
nanoc nanoc
......
...@@ -25,6 +25,15 @@ route '/README/' do ...@@ -25,6 +25,15 @@ route '/README/' do
'/README.md' '/README.md'
end end
# RSS Feed
compile '/blog/feed/' do
filter :erb
end
route '/blog/feed/' do
'/blog/feed.xml'
end
compile '*' do compile '*' do
filter :erb filter :erb
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
title: Prometheus Monitoring Spreads through the Internet title: Prometheus Monitoring Spreads through the Internet
created_at: 2015-04-24 created_at: 2015-04-24
kind: article kind: article
author: Brian Brazil author_name: Brian Brazil
--- ---
It has been almost three months since we publicy announced Prometheus version It has been almost three months since we publicy announced Prometheus version
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
title: Advanced Service Discovery in Prometheus 0.14.0 title: Advanced Service Discovery in Prometheus 0.14.0
created_at: 2015-06-01 created_at: 2015-06-01
kind: article kind: article
author: Fabian Reinartz, Julius Volz author_name: Fabian Reinartz, Julius Volz
--- ---
This week we released Prometheus v0.14.0 — a version with many long-awaited additions This week we released Prometheus v0.14.0 — a version with many long-awaited additions
......
<%= atom_feed :title => 'Prometheus Blog', :author_name => '© Prometheus Authors 2015',
:author_uri => 'http://prometheus.io/blog/', :limit => 10 %>
...@@ -5,7 +5,7 @@ title: Blog ...@@ -5,7 +5,7 @@ title: Blog
<% sorted_articles.each do |post| %> <% sorted_articles.each do |post| %>
<div class="blog doc-content"> <div class="blog doc-content">
<h1><%= link_to post[:title], post.path %></h1> <h1><%= link_to post[:title], post.path %></h1>
<aside>Posted at: <%= get_pretty_date(post) %> by <%= post[:author]%></aside> <aside>Posted at: <%= get_pretty_date(post) %> by <%= post[:author_name]%></aside>
<article class="doc-content"> <article class="doc-content">
<%= get_post_start(post) %> <%= get_post_start(post) %>
</article> </article>
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
<meta name="keywords" content="prometheus, monitoring, monitoring system, time series, time series database, alerting, metrics, telemetry"> <meta name="keywords" content="prometheus, monitoring, monitoring system, time series, time series database, alerting, metrics, telemetry">
<meta name="author" content="Prometheus"> <meta name="author" content="Prometheus">
<link rel="alternate" type="application/atom+xml" title="Prometheus Blog » Feed" href="/blog/feed.xml">
<link rel="shortcut icon" href="/assets/favicons/favicon.ico"> <link rel="shortcut icon" href="/assets/favicons/favicon.ico">
<link rel="apple-touch-icon" sizes="57x57" href="/assets/favicons/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon" sizes="57x57" href="/assets/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/assets/favicons/apple-touch-icon-60x60.png"> <link rel="apple-touch-icon" sizes="60x60" href="/assets/favicons/apple-touch-icon-60x60.png">
......
...@@ -75,3 +75,6 @@ checks: ...@@ -75,3 +75,6 @@ checks:
# E.g.: # E.g.:
# exclude: ['^/server_status'] # exclude: ['^/server_status']
exclude: [] exclude: []
# The base url required by atom_feed
base_url: "http://prometheus.io"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment