From e9933233ba5f07c5cb8b00623616339652dc3570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cabe=CC=81?= <benjamin@eclipse.org> Date: Sat, 7 Mar 2015 00:49:23 +0100 Subject: [PATCH] sort events by date --- content/event/eclipse-day-dresden.md | 1 - layouts/index.html | 2 +- public/event/index.xml | 3 +-- public/index.html | 20 ++++++++++---------- public/index.xml | 23 +++++++++++------------ public/sitemap.xml | 8 ++++---- 6 files changed, 27 insertions(+), 30 deletions(-) diff --git a/content/event/eclipse-day-dresden.md b/content/event/eclipse-day-dresden.md index dce83ce6..ecbf58f0 100644 --- a/content/event/eclipse-day-dresden.md +++ b/content/event/eclipse-day-dresden.md @@ -8,4 +8,3 @@ title = "Eclipse Day Dresden" +++ -xx \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 59d8edde..e9f3e3df 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -255,7 +255,7 @@ <div class="row"> - {{ range first 4 .Data.Pages }} {{ if eq .Type "event"}} + {{ range first 4 .Data.Pages.ByDate }} {{ if eq .Type "event"}} <div class="col-sm-6"> <a href="{{ .Params.link }}" target="_blank"> diff --git a/public/event/index.xml b/public/event/index.xml index 0fc380f0..71620d61 100644 --- a/public/event/index.xml +++ b/public/event/index.xml @@ -15,8 +15,7 @@ <pubDate>Wed, 18 Mar 2015 00:00:00 UTC</pubDate> <guid>/event/eclipse-day-dresden/</guid> - <description><p>xx</p> -</description> + <description></description> </item> <item> diff --git a/public/index.html b/public/index.html index ff56cf06..11f348c4 100644 --- a/public/index.html +++ b/public/index.html @@ -244,16 +244,16 @@ <div class="row"> - + <div class="col-sm-6"> - <a href="http://iotday.dd-eclipse.de/" target="_blank"> + <a href="http://www.eclipsecon.org/na2015" target="_blank"> <div class="upcoming-events-item"> <h3> - Eclipse Day Dresden<br> - <span class="date">Mar 18, 2015</span> + EclipseCon NA 2015<br> + <span class="date">Mar 9-12, 2015</span> </h3> - <p>Dresden, Germany</p> + <p>Burlingame, CA</p> </div> </a> </div> @@ -262,19 +262,19 @@ <div class="col-sm-6"> - <a href="http://www.eclipsecon.org/na2015" target="_blank"> + <a href="http://iotday.dd-eclipse.de/" target="_blank"> <div class="upcoming-events-item"> <h3> - EclipseCon NA 2015<br> - <span class="date">Mar 9-12, 2015</span> + Eclipse Day Dresden<br> + <span class="date">Mar 18, 2015</span> </h3> - <p>Burlingame, CA</p> + <p>Dresden, Germany</p> </div> </a> </div> - + </div> diff --git a/public/index.xml b/public/index.xml index 1ad0b170..ca2650de 100644 --- a/public/index.xml +++ b/public/index.xml @@ -7,15 +7,15 @@ - <updated>Wed, 18 Mar 2015 00:00:00 UTC</updated> + <updated>Thu, 05 Mar 2015 12:16:25 CET</updated> <item> - <title>Eclipse Day Dresden</title> - <link>/event/eclipse-day-dresden/</link> - <pubDate>Wed, 18 Mar 2015 00:00:00 UTC</pubDate> + <title>first</title> + <link>/post/first/</link> + <pubDate>Thu, 05 Mar 2015 12:16:25 CET</pubDate> - <guid>/event/eclipse-day-dresden/</guid> - <description><p>xx</p> + <guid>/post/first/</guid> + <description><p>When faced with the same need, I past the lwm2m_context_t pointer in the object lwm2m_object_t::userData (directly on inside a struct). See code snippets below.</p> </description> </item> @@ -29,13 +29,12 @@ </item> <item> - <title>first</title> - <link>/post/first/</link> - <pubDate>Thu, 05 Mar 2015 12:16:25 CET</pubDate> + <title>Eclipse Day Dresden</title> + <link>/event/eclipse-day-dresden/</link> + <pubDate>Wed, 18 Mar 2015 00:00:00 UTC</pubDate> - <guid>/post/first/</guid> - <description><p>When faced with the same need, I past the lwm2m_context_t pointer in the object lwm2m_object_t::userData (directly on inside a struct). See code snippets below.</p> -</description> + <guid>/event/eclipse-day-dresden/</guid> + <description></description> </item> </channel> diff --git a/public/sitemap.xml b/public/sitemap.xml index 46a75953..b89f82af 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -8,8 +8,8 @@ </url> <url> - <loc>/event/eclipse-day-dresden/</loc> - <lastmod>2015-03-18T00:00:00+00:00</lastmod> + <loc>/post/first/</loc> + <lastmod>2015-03-05T12:16:25+01:00</lastmod> </url> <url> @@ -18,8 +18,8 @@ </url> <url> - <loc>/post/first/</loc> - <lastmod>2015-03-05T12:16:25+01:00</lastmod> + <loc>/event/eclipse-day-dresden/</loc> + <lastmod>2015-03-18T00:00:00+00:00</lastmod> </url> </urlset> \ No newline at end of file -- GitLab