[PATCH 03/10] replace news section w/ blogroll content
Mo Morsi
mmorsi at redhat.com
Mon Nov 5 20:23:10 UTC 2012
---
_includes/blogroll_feed.js | 8 ++++++++
index.html | 41 ++++++++++++++++++++++++++---------------
js/jquery-FeedEk.js | 8 ++++++++
3 files changed, 42 insertions(+), 15 deletions(-)
create mode 100644 _includes/blogroll_feed.js
create mode 100644 js/jquery-FeedEk.js
diff --git a/_includes/blogroll_feed.js b/_includes/blogroll_feed.js
new file mode 100644
index 0000000..21aadfe
--- /dev/null
+++ b/_includes/blogroll_feed.js
@@ -0,0 +1,8 @@
+ //<![CDATA[
+ $('#divRss').FeedEk({
+ FeedUrl : 'http://blog.aeolusproject.org/feed/',
+ MaxCount : 25,
+ ShowDesc : false,
+ ShowPubDate:true
+ });
+ //]]>
diff --git a/index.html b/index.html
index 94689a5..78c2fa7 100644
--- a/index.html
+++ b/index.html
@@ -15,18 +15,12 @@ layout: main
<sup>TM</sup>
</h1>
<h2>
- Meet the world's best cloud management software,
- <br />
- <strong>and it's free.</strong>
+ Meet the world's best cloud management software, <strong>and it's free.</strong>
</h2>
<div class='frontpagebuttons'>
- <a class='button' href='about.html'>
+ <a class='button' href='projects.html'>
Learn More
- <img alt='→' src='images/button-right.png' />
- </a>
- <a class='button' href='get_it.html'>
- Get Aeolus
- <img alt='v' src='images/button-down.png' />
+ <img alt='→' src='projects.html' />
</a>
</div>
</div>
@@ -47,8 +41,8 @@ layout: main
REDUCE YOUR RISK of being caught out whenever your preferred Cloud
vendor has issues.
</p>
- <a class='button small' href='about.html'>
- More
+ <a class='button small' href='get_it.html'>
+ How To Use It
</a>
<br />
<br />
@@ -71,6 +65,18 @@ layout: main
</ul>
</div>
</div>
+
+ <div class='grid_8'>
+ <h1>
+ <a href='http://blog.aeolusproject.org' style='color: #007EB5; text-decoration: none'>News</a>
+ </h1>
+ <div id="divRss"></div>
+ <script src='js/jquery-FeedEk.js' type='text/javascript'></script>
+ <script type='text/javascript'>
+ {% include blogroll_feed.js %}
+ </script>
+ </div>
+
<div class='grid_8'>
<br />
<script src='http://widgets.twimg.com/j/2/widget.js'></script>
@@ -81,13 +87,18 @@ layout: main
</div>
<div class='grid_24'>
<div class='grid_8 alpha'>
- <a class='button small' href='developers.html'>
- More
+ <a class='button small' href='get_it.html'>
+ Developers
+ </a>
+ </div>
+ <div class='grid_8 alpha'>
+ <a class='button small' href='http://blog.aeolusproject.org'>
+ Community
</a>
</div>
<div class='grid_8 omega'>
- <a class='button small' href='http://twitter.com/aeolusproject'>
- More
+ <a class='button small' href='contact.html'>
+ Contact
</a>
</div>
</div>
diff --git a/js/jquery-FeedEk.js b/js/jquery-FeedEk.js
new file mode 100644
index 0000000..c018b79
--- /dev/null
+++ b/js/jquery-FeedEk.js
@@ -0,0 +1,8 @@
+/*
+ * * FeedEk jQuery RSS/ATOM Feed Plugin
+ * * http://jquery-plugins.net/FeedEk/FeedEk.html
+ * * Author : Engin KIZIL
+ * * http://www.enginkizil.com
+ * */
+
+(function($){$.fn.FeedEk=function(opt){var def={FeedUrl:'http://rss.cnn.com/rss/edition.rss',MaxCount:5,ShowDesc:true,ShowPubDate:true};if(opt){$.extend(def,opt)}var idd=$(this).attr('id');var pubdt;$('#'+idd).empty().append('<div style="text-align:left; padding:3px;"><img src="loader.gif" /></div>');$.ajax({url:'http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num='+def.MaxCount+'&output=json&q='+encodeURIComponent(def.FeedUrl)+'&callback=?',dataType:'json',success:function(data){$('#'+idd).empty();$.each(data.responseData.feed.entries,function(i,entry){$('#'+idd).append('<div class="ItemTitle"><a href="'+entry.link+'" target="_blank" >'+entry.title+'</a></div>');if(def.ShowPubDate){pubdt=new Date(entry.publishedDate);$('#'+idd).append('<div class="ItemDate">'+pubdt.toLocaleDateString()+'</div>')}if(def.ShowDesc)$('#'+idd).append('<div class="ItemContent">'+entry.content+'</div>')})}})}})(jQuery);
--
1.7.11.4
More information about the aeolus-devel
mailing list