Skip to content

Instantly share code, notes, and snippets.

@mxm
Created January 15, 2015 17:24
Show Gist options
  • Save mxm/845bb62969f654bc3b25 to your computer and use it in GitHub Desktop.
Save mxm/845bb62969f654bc3b25 to your computer and use it in GitHub Desktop.
Patch for adding an RSS feed to the Flink website
Index: _config.yml
===================================================================
--- _config.yml (revision 1652149)
+++ _config.yml (working copy)
@@ -5,6 +5,8 @@
# {{ site.CONFIG_KEY }}
#------------------------------------------------------------------------------
+url: http://flink.apache.org
+
FLINK_VERSION_STABLE: 0.7.0-incubating
FLINK_VERSION_HADOOP_2_STABLE: 0.7.0-hadoop2-incubating
FLINK_VERSION_STABLE_SHORT: 0.7.0
Index: _includes/footer.html
===================================================================
--- _includes/footer.html (revision 1652149)
+++ _includes/footer.html (working copy)
@@ -95,7 +95,20 @@
</div>
<div class="af-footer-bar">
<div class="container">
- <p>Copyright &copy 2014-2015, <a href="http://www.apache.org">The Apache Software Foundation</a>. All Rights Reserved. Apache and the Apache feather logo are trademarks of the Apache Software Foundation. <a href="{{ site.baseurl }}/privacy-policy.html" title="Privacy Policy" class="af-privacy-policy">Privacy Policy</a></p>
- </div>
+ <p>Copyright &copy 2014-2015, <a href="http://www.apache.org">The Apache Software Foundation</a>. All Rights Reserved. Apache and the Apache feather logo are trademarks of the Apache Software Foundation.
+ </p>
+ <div>
+ <div style="float:left">
+ <p>
+ <a href="{{ site.baseurl }}/privacy-policy.html" title="Privacy Policy" class="af-privacy-policy">Privacy Policy</a>
+ </p>
+ </div>
+ <div style="float:right">
+ <p>
+ <a href="{{ site.baseurl }}/blog/feed.xml" class="af-privacy-policy">RSS Feed</a>
+ </p>
+ </div>
+ </div>
+ </div>
</div>
</footer>
Index: _layouts/default.html
===================================================================
--- _layouts/default.html (revision 1652149)
+++ _layouts/default.html (working copy)
@@ -9,7 +9,7 @@
<script type="text/javascript">
window.location.href = "{{ site.baseurl}}/{{ page.redirect }}"
</script>
-{% endif %}
+{% endif %}
<title>Apache Flink: {{ page.title }}</title>
<link rel="shortcut icon" href="{{ site.baseurl }}favicon.ico" type="image/x-icon">
<link rel="icon" href="{{ site.baseurl }}favicon.ico" type="image/x-icon">
@@ -18,6 +18,7 @@
<link rel="stylesheet" href="{{ site.baseurl }}/css/syntax.css">
<link rel="stylesheet" href="{{ site.baseurl }}/css/custom.css">
<link href="{{ site.baseurl }}/css/main/main.css" rel="stylesheet">
+ <link href="{{ site.baseurl }}/blog/feed.xml" rel="alternate" type="application/rss+xml" title="Flink Blog RSS feed" />
<!-- <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="{{ site.baseurl }}/js/bootstrap.min.js"></script>
Index: blog/feed.xml
===================================================================
--- blog/feed.xml (revision 0)
+++ blog/feed.xml (working copy)
@@ -0,0 +1,21 @@
+---
+layout: none
+---
+<?xml version="1.0" encoding="UTF-8"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+<channel>
+<title>Flink Blog Feed</title>
+<description>Flink Blog</description>
+<link>{{ site.url }}/blog</link>
+<atom:link href="{{ site.url }}/blog/feed.xml" rel="self" type="application/rss+xml" />
+{% for post in site.posts limit:100 %}
+<item>
+<title>{{ post.title | xml_escape }}</title>
+<description>{{ post.content | xml_escape }}</description>
+<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
+<link>{{ site.url }}{{ post.url }}</link>
+<guid isPermaLink="true">{{ site.baseurl }}{{ post.url }}</guid>
+</item>
+{% endfor %}
+</channel>
+</rss>
Index: blog/index.html
===================================================================
--- blog/index.html (revision 1652149)
+++ blog/index.html (working copy)
@@ -1,10 +1,9 @@
---
-title: Blog
+title: Blog
description: Blog posts and news around the Stratosphere Big Data Analytics platform.
keywords: stratosphere, news, blog, big data, data analytics
---
-
<div class="container">
<div class="row">
<div class="col-md-2"></div>
@@ -13,7 +12,7 @@
<article>
<h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
<p class="meta">{{ post.date | date_to_string }}</p>
-
+
<div>{{ post.content }}</div>
<a href="{{ site.baseurl }}{{ post.url }}#disqus_thread">{{ post.title }}</a>
</article>
@@ -35,8 +34,8 @@
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
-
+
{% if paginator.total_pages > 1 %}
<!-- Pagination links -->
<ul class="pager">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment