gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[www] branch master updated: fix RSS links


From: gnunet
Subject: [www] branch master updated: fix RSS links
Date: Mon, 21 Jun 2021 21:11:36 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository www.

The following commit(s) were added to refs/heads/master by this push:
     new 1a22383  fix RSS links
1a22383 is described below

commit 1a22383c86f5226185b4aef9049c948e7edb70f7
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Jun 21 21:08:44 2021 +0200

    fix RSS links
---
 common/old-news.j2.inc      |  4 +--
 template/index.html.j2      |  2 +-
 template/news/index.html.j2 |  4 +--
 template/rss.xml.j2         |  2 +-
 www.yml                     | 74 ++++++++++++++++++++++-----------------------
 5 files changed, 43 insertions(+), 43 deletions(-)

diff --git a/common/old-news.j2.inc b/common/old-news.j2.inc
index d4d45ef..c14b444 100644
--- a/common/old-news.j2.inc
+++ b/common/old-news.j2.inc
@@ -30,8 +30,8 @@
                   </p>
                 </header>
                 <p class="item-abstract">
-                  {{ get_abstract(item['page'], 1000) }} <br/>
-                  [<a href="{{ url_localized(item['page']) }}" title="{{ 
item['date']}}">{{ _("read more") }}</a>]
+                  {{ get_abstract('news/' + item['page'], 1000) }} <br/>
+                  [<a href="{{ url_localized('news/' + item['page']) }}" 
title="{{ item['date']}}">{{ _("read more") }}</a>]
                 </p>
               </section>
             </li>
diff --git a/template/index.html.j2 b/template/index.html.j2
index 4114785..f1b832e 100644
--- a/template/index.html.j2
+++ b/template/index.html.j2
@@ -26,7 +26,7 @@
         <h2>{{ _("Latest news") }}</h2>
         <p>
         {% for item in newsdata[:3] %}
-        <a class="link" href="{{ url_localized(item['page']) }}" title="{{ 
item['date']}}">{{ item['date'] }}: {{ item['title'] }}</a><br/>
+        <a class="link" href="{{ url_localized('news/' + item['page']) }}" 
title="{{ item['date']}}">{{ item['date'] }}: {{ item['title'] }}</a><br/>
         {% endfor %}
         <br/>
         <a class="link" href="{{ url_localized('news/index.html')}}">{{ 
_("Older news entries") }}</a>
diff --git a/template/news/index.html.j2 b/template/news/index.html.j2
index abd2009..004d46e 100644
--- a/template/news/index.html.j2
+++ b/template/news/index.html.j2
@@ -32,8 +32,8 @@
                   </p>
                 </header>
                 <p class="item-abstract">
-                  {{ get_abstract(item['page'], 500) }} <br/>
-                  [<a href="{{ url_localized(item['page']) }}" title="{{ 
item['date']}}">{{ _("read more") }}</a>]
+                  {{ get_abstract('news/' + item['page'], 500) }} <br/>
+                  [<a href="{{ url_localized('news/' + item['page']) }}" 
title="{{ item['date']}}">{{ _("read more") }}</a>]
                 </p>
               </section>
             </li>
diff --git a/template/rss.xml.j2 b/template/rss.xml.j2
index d0197c0..6ee0a27 100644
--- a/template/rss.xml.j2
+++ b/template/rss.xml.j2
@@ -36,7 +36,7 @@
         <description>
           <![CDATA[
              {% filter extract_body %}
-             {% include (newspostitem['page'] + ".j2") %}
+             {% include ('news/' + newspostitem['page'] + ".j2") %}
              {% endfilter %}
            ]]>
         </description>
diff --git a/www.yml b/www.yml
index 72bdb74..1275699 100644
--- a/www.yml
+++ b/www.yml
@@ -29,159 +29,159 @@ meetingnotes:
   2019: 2019-12-27
   2020: 2020-12-30
 newsposts:
-  - page: news/2021-05-DISSENS.html
+  - page: 2021-05-DISSENS.html
     date: 2021-05-10
     title: "DISSENS: Decentralized Identities for Self-sovereign End-users"
-  - page: news/2021-03-0.14.1.html
+  - page: 2021-03-0.14.1.html
     date: 2021-04-04
     title: GNUnet 0.14.1
-  - page: news/2021-03-gsoc-update.html
+  - page: 2021-03-gsoc-update.html
     date: 2021-03-09
     title: No GSoC projects in 2021
-  - page: news/2020-11-0.14.0.html
+  - page: 2020-11-0.14.0.html
     date: 2020-11-14
     title: GNUnet 0.14.0
-  - page: news/2020-11-GNSSpec4.html
+  - page: 2020-11-GNSSpec4.html
     date: 2020-11-11
     title: GNS Specification Milestone 4/4 and Packaging 1+2
     abstract:
     content:
-  - page: news/2020-09-0.13.3.html
+  - page: 2020-09-0.13.3.html
     date: 2020-09-06
     title: GNUnet 0.13.3
-  - page: news/2020-08-0.13.2.html
+  - page: 2020-08-0.13.2.html
     date: 2020-08-14
     title: GNUnet 0.13.2
-  - page: news/2020-07-0.13.1.html
+  - page: 2020-07-0.13.1.html
     date: 2020-07-12
     title: GNUnet 0.13.1
-  - page: news/2020-07-0.13.0.html
+  - page: 2020-07-0.13.0.html
     date: 2020-07-07
     title: GNUnet 0.13.0
-  - page: news/2020-06-GNSSpec3.html
+  - page: 2020-06-GNSSpec3.html
     date: 2020-06-30
     title: GNS Specification Milestone 3/4
     abstract:
     content:
-  - page: news/2020-05-GHM_Jun_2020.html
+  - page: 2020-05-GHM_Jun_2020.html
     date: 2020-05-28
     title: GNUnet Hacker Meeting 2020
-  - page: news/2020-01-0.12.2.html
+  - page: 2020-01-0.12.2.html
     date: 2020-01-13
     title: GNUnet 0.12.2
-  - page: news/2020-01-GNSSpec2.html
+  - page: 2020-01-GNSSpec2.html
     date: 2020-01-12
     title: GNS Specification Milestone 2/4
     abstract:
     content:
-  - page: news/2019-12-UpcomingTalks.html
+  - page: 2019-12-UpcomingTalks.html
     date: 2019-12-26
     title: Upcoming GNUnet Talks
-  - page: news/2019-0.12.1.html
+  - page: 2019-0.12.1.html
     date: 2019-12-25
     title: GNUnet 0.12.1
-  - page: news/2019-0.12.0.html
+  - page: 2019-0.12.0.html
     date: 2019-12-20
     title: GNUnet 0.12.0
     abstract:
     content:
-  - page: news/2019-11-ICANNUpdate.html
+  - page: 2019-11-ICANNUpdate.html
     date: 2019-11-10
     title: GNS@ICANN66
     abstract:
     content:
-  - page: news/2019-0.11.8.html
+  - page: 2019-0.11.8.html
     date: 2019-10-30
     title: GNUnet 0.11.8
     abstract:
     content:
-  - page: news/2019-0.11.7.html
+  - page: 2019-0.11.7.html
     date: 2019-10-27
     title: GNUnet 0.11.7
     abstract:
     content:
-  - page: news/2019-10-ICANNPanel.html
+  - page: 2019-10-ICANNPanel.html
     date: 2019-10-20
     title: GNUnet invited to ICANN Panel
     abstract:
     content:
-  - page: news/2019-10-GNSSpec1.html
+  - page: 2019-10-GNSSpec1.html
     date: 2019-10-04
     title: GNS Specification Milestone 1/4
     abstract:
     content:
-  - page: news/2019-0.11.6.html
+  - page: 2019-0.11.6.html
     date: 2019-07-24
     title: GNUnet 0.11.6
     abstract:
     content:
-  - page: news/2019-07-GHM_Aug_2019.html
+  - page: 2019-07-GHM_Aug_2019.html
     date: 2019-07-17
     title: GNUnet Hacker Meeting 2019
     abstract:
     content:
-  - page: news/2019-06-DSTJ.html
+  - page: 2019-06-DSTJ.html
     date: 2019-06-28
     title: "Peer DSTJ is dead, long live peer Y924"
     abstract:
     content:
-  - page: news/2019-0.11.5.html
+  - page: 2019-0.11.5.html
     date: 2019-06-05
     title: GNUnet 0.11.5
     abstract:
     content:
-  - page: news/2019-06.html
+  - page: 2019-06.html
     date: 2019-06-01
     title: 2019-06
     abstract:
     content:
-  - page: news/2019-0.11.4.html
+  - page: 2019-0.11.4.html
     date: 2019-05-12
     title: GNUnet 0.11.4
     abstract:
     content:
-  - page: news/2019-0.11.3.html
+  - page: 2019-0.11.3.html
     date: 2019-04-07
     title: GNUnet 0.11.3
     abstract:
     content:
-  - page: news/2019-0.11.2.html
+  - page: 2019-0.11.2.html
     date: 2019-04-04
     title: GNUnet 0.11.2
     abstract:
     content:
-  - page: news/2019-0.11.1.html
+  - page: 2019-0.11.1.html
     date: 2019-04-03
     title: GNUnet 0.11.1
     abstract:
     content:
-  - page: news/2019-0.11.0.html
+  - page: 2019-0.11.0.html
     date: 2019-02-28
     title: GNUnet 0.11.0
     abstract:
     content:
-  - page: news/2019-02.html
+  - page: 2019-02.html
     date: 2019-02-01
     title: Google Summer of Code 2019
     abstract:
     content:
-  - page: news/2018-07.html
+  - page: 2018-07.html
     date: 2018-07-01
     title: Second GNUnet Hacker Meeting 2018
     abstract:
     content:
-  - page: news/2018-06.html
+  - page: 2018-06.html
     date: 2018-06-06
     title: GNUnet 0.11.0pre66
     abstract:
     content:
-  - page: news/2013-12-28-archived-typos-pkeys.html
+  - page: 2013-12-28-archived-typos-pkeys.html
     date: 2013-12-28
     title: Typo-Protected Public Keys
-  - page: news/2013-11-15-special-use-gns.html
+  - page: 2013-11-15-special-use-gns.html
     date: 2013-11-15
     title: Special-Use Domain Names of Peer-to-Peer Name Systems
-  - page: news/2011-11-24-archived-vfork.html
+  - page: 2011-11-24-archived-vfork.html
     date: 2011-11-24
     title: vfork and the signal race
 # <!-- FIXME 2015: source only available on yt. <li>Ludovic Courtès, <a 
href="">Reproducible Software Deployment with GNU Guix</a>, Inria</li> -->

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]