Skip to content

Commit fdbf903

Browse files
author
aeoth
committed
rss fix and made 'older' posts appear as just the header for the main page. Starting to get too large a page
1 parent e9d9012 commit fdbf903

6 files changed

+23
-6
lines changed

atom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ layout: nil
1616
{% for post in site.posts %}
1717
{% if post.feed != "project" %}
1818
<entry>
19-
<id>http://www.Code52.org/{{ post.id }}</id>
19+
<id>http://www.Code52.org/{{ post.url }}</id>
2020
<link type="text/html" rel="alternate" href="http://www.Code52.org/{{ post.url }}"/>
2121
<title>{{ post.title | xml_escape }}</title>
2222
<updated>{{ post.date | date_to_xmlschema }}</updated>

css/style20120128.css

+8
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ img
8686
font-size: 0.8em;
8787
font-weight: bold;
8888
}
89+
90+
.olderpostdate
91+
{
92+
font-size: 0.8em;
93+
color : #aaaaaa;
94+
width: 150px;
95+
margin-right: 15px;
96+
}
8997
.idea h1, .entry h1
9098
{
9199
margin-bottom: 5px;

index.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title : code52
66
{% include latest_project.html %}
77

88
<ul class="ideas">
9-
{% for post in site.posts %}
9+
{% for post in site.posts limit:5 %}
1010
<li>
1111
<div class="idea">
1212
{% if forloop.first and post.layout == "post" %}
@@ -40,7 +40,16 @@ title : code52
4040
</li>
4141
{% endfor %}
4242
</ul>
43-
43+
44+
<h3>OLDER</h3>
45+
<ul class="postArchive">
46+
{% for post in site.posts offset:5 %}
47+
<li>
48+
<span class="olderpostdate"> {{ post.date | date: "%d %b" }} </span> <a class="postlink" href="{{ post.id }}">{{ post.title }}</a>
49+
</li>
50+
{% endfor %}
51+
</ul>
52+
4453
<script type="text/javascript">
4554
//<![CDATA[
4655
(function() {

projectsatom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ layout: nil
1616
{% for post in site.posts %}
1717
{% if post.feed == "project" %}
1818
<entry>
19-
<id>http://www.Code52.org/{{ post.id }}</id>
19+
<id>http://www.Code52.org/{{ post.url }}</id>
2020
<link type="text/html" rel="alternate" href="http://www.Code52.org/{{ post.url }}"/>
2121
<title>{{ post.title | xml_escape }}</title>
2222
<updated>{{ post.date | date_to_xmlschema }}</updated>

projectsrss.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ layout: nil
1919
<link>http://www.Code52.org{{ post.url }}</link>
2020
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
2121
<author>[email protected] (Code52 Team)</author>
22-
<guid>http://www.Code52.org{{ post.id }}</guid>
22+
<guid>http://www.Code52.org{{ post.url }}</guid>
2323
<description>{{ post.content | xml_escape }}</description>
2424
</item>
2525
{% endif%}

rss.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ layout: nil
1919
<link>http://www.Code52.org{{ post.url }}</link>
2020
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
2121
<author>[email protected] (Code52 Team)</author>
22-
<guid>http://www.Code52.org{{ post.id }}</guid>
22+
<guid>http://www.Code52.org{{ post.url }}</guid>
2323
<description>{{ post.content | xml_escape }}</description>
2424
</item>
2525
{% endif %}

0 commit comments

Comments
 (0)