website diff index.php @ rev 809

Move #news to a class and display blog posts on main page
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 30 20:52:06 2011 +0200 (2011-03-30)
parents 111573c244f6
children 933c366e6957
line diff
     1.1 --- a/index.php	Wed Mar 30 20:31:49 2011 +0200
     1.2 +++ b/index.php	Wed Mar 30 20:52:06 2011 +0200
     1.3 @@ -87,16 +87,21 @@
     1.4       at min-height: 220px; -->
     1.5  
     1.6  <!-- We just keep the last 4 web site news -->
     1.7 -<div id="news">
     1.8 +<div class="news">
     1.9  
    1.10 -<h2>Latest news</h2>
    1.11 +<h2>Latest News</h2>
    1.12  
    1.13  <ul>
    1.14 -	<li><strong><a href="en/#news">29 March 2011 - New Cooking 20110329</a></strong></li>
    1.15 -	<li><strong><a href="en/#20101104">4 November 2010 - New Cooking 20101104</a></strong></li>
    1.16 -	<li><strong>8 May 2010 - Summer of Documentation</strong></li>
    1.17 -	<li><strong>28 March 2010 - SliTaz GNU/Linux 3.0 released</strong></li>
    1.18 -	<li><strong>14 March 2010 - RC series and Solutionslinux 2010 (Paris)</strong></li>
    1.19 +	<li><strong><a href="en/#news">New Cooking 20110329</a></strong>
    1.20 +		<span>- 29 March 2011</span></li>
    1.21 +	<li><strong><a href="en/#20101104">New Cooking 20101104</a></strong>
    1.22 +		<span>- 4 November 2010</span></li>
    1.23 +	<li><strong>Summer of Documentation</strong>
    1.24 +		<span>- 8 May 2010</span></li>
    1.25 +	<li><strong>SliTaz GNU/Linux 3.0 released</strong>
    1.26 +		<span>- 28 March 2010 </span></li>
    1.27 +	<li><strong>RC series and Solutionslinux 2010 (Paris)</strong>
    1.28 +		<span>- 14 March 2010</span></li>
    1.29  </ul>
    1.30  
    1.31  <!-- End of news -->
    1.32 @@ -131,6 +136,12 @@
    1.33  	</p>
    1.34  </div>
    1.35  
    1.36 +<h2>Blog Posts</h2>
    1.37 +
    1.38 +<div class="news">
    1.39 +	<?php get_feed_blog("blog.xml"); ?>
    1.40 +</div>
    1.41 +
    1.42  <h2>Latest Tweet</h2>
    1.43  <div id="twitter">
    1.44  	<script src="http://widgets.twimg.com/j/2/widget.js"></script>