From 155ef1f06ecf3955e4598b4607a2bf5d1dc58bac Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 18 Sep 2013 17:36:35 -0700 Subject: [PATCH] website/www: enable the blog feed --- website/www/Gemfile | 1 + website/www/Gemfile.lock | 2 ++ website/www/config.rb | 2 ++ website/www/source/blog/2013-09-16-test.html.markdown | 2 +- website/www/source/layouts/blog_post.erb | 8 ++++++-- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/website/www/Gemfile b/website/www/Gemfile index 5c6699465..eea83f62c 100644 --- a/website/www/Gemfile +++ b/website/www/Gemfile @@ -1,5 +1,6 @@ source 'https://rubygems.org' +gem "builder", "~> 3.2.2" gem "less", "~> 2.2.2" gem "middleman", "~> 3.1.5" gem "middleman-blog", "~> 3.3.0" diff --git a/website/www/Gemfile.lock b/website/www/Gemfile.lock index ad9dea924..bf03aaa40 100644 --- a/website/www/Gemfile.lock +++ b/website/www/Gemfile.lock @@ -4,6 +4,7 @@ GEM activesupport (3.2.14) i18n (~> 0.6, >= 0.6.4) multi_json (~> 1.0) + builder (3.2.2) chunky_png (1.2.8) coffee-script (2.2.0) coffee-script-source @@ -111,6 +112,7 @@ PLATFORMS ruby DEPENDENCIES + builder (~> 3.2.2) highline (~> 1.6.15) less (~> 2.2.2) middleman (~> 3.1.5) diff --git a/website/www/config.rb b/website/www/config.rb index 764ea0a02..00f936793 100644 --- a/website/www/config.rb +++ b/website/www/config.rb @@ -33,6 +33,8 @@ # @which_fake_page = "Rendering a fake page with a variable" # end +page "/blog_feed.xml", layout: false + ### # Helpers ### diff --git a/website/www/source/blog/2013-09-16-test.html.markdown b/website/www/source/blog/2013-09-16-test.html.markdown index 5325b586a..db0fa59aa 100644 --- a/website/www/source/blog/2013-09-16-test.html.markdown +++ b/website/www/source/blog/2013-09-16-test.html.markdown @@ -20,7 +20,7 @@ It can be as general as how to use a certain feature of Vagrant, or as specific as how to use Vagrant to develop a certain application or in a certain language. -Please subscribe [to the RSS feed](#). +Please subscribe [to the RSS feed](/blog_feed.xml). We look forward to shipping blog posts shortly! READMORE diff --git a/website/www/source/layouts/blog_post.erb b/website/www/source/layouts/blog_post.erb index dd52324c0..11b014fc7 100644 --- a/website/www/source/layouts/blog_post.erb +++ b/website/www/source/layouts/blog_post.erb @@ -19,7 +19,7 @@
-
+
@@ -30,7 +30,11 @@ <% end %>

<%= current_article.title %>

- <%= yield %> +
+
+ <%= yield %> +
+