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'
gem 'nokogiri'
gem 'redcarpet'
gem 'pygments.rb'
gem 'builder'
......@@ -3,6 +3,7 @@ GEM
specs:
adsf (1.2.0)
rack (>= 1.0.0)
builder (3.2.2)
celluloid (0.16.0)
timers (~> 4.0.0)
coderay (1.1.0)
......@@ -57,6 +58,7 @@ PLATFORMS
DEPENDENCIES
adsf
builder
guard-nanoc
kramdown
nanoc
......
......@@ -25,6 +25,15 @@ route '/README/' do
'/README.md'
end
# RSS Feed
compile '/blog/feed/' do
filter :erb
end
route '/blog/feed/' do
'/blog/feed.xml'
end
compile '*' do
filter :erb
......
......@@ -2,7 +2,7 @@
title: Prometheus Monitoring Spreads through the Internet
created_at: 2015-04-24
kind: article
author: Brian Brazil
author_name: Brian Brazil
---
It has been almost three months since we publicy announced Prometheus version
......
......@@ -2,7 +2,7 @@
title: Advanced Service Discovery in Prometheus 0.14.0
created_at: 2015-06-01
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
......
<%= atom_feed :title => 'Prometheus Blog', :author_name => '© Prometheus Authors 2015',
:author_uri => 'http://prometheus.io/blog/', :limit => 10 %>
......@@ -5,7 +5,7 @@ title: Blog
<% sorted_articles.each do |post| %>
<div class="blog doc-content">
<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">
<%= get_post_start(post) %>
</article>
......
......@@ -8,6 +8,8 @@
<meta name="keywords" content="prometheus, monitoring, monitoring system, time series, time series database, alerting, metrics, telemetry">
<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="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">
......
......@@ -75,3 +75,6 @@ checks:
# E.g.:
# exclude: ['^/server_status']
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