You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by bd...@apache.org on 2023/10/24 09:17:37 UTC

[comdev-site] branch preview/rssfeeds created (now 528645a)

This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a change to branch preview/rssfeeds
in repository https://gitbox.apache.org/repos/asf/comdev-site.git


      at 528645a  Activate RSS feeds

This branch includes the following new commits:

     new 528645a  Activate RSS feeds

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[comdev-site] 01/01: Activate RSS feeds

Posted by bd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch preview/rssfeeds
in repository https://gitbox.apache.org/repos/asf/comdev-site.git

commit 528645a1c5519b0061bb2f3c25d557b75ee83a3c
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Tue Oct 24 11:17:23 2023 +0200

    Activate RSS feeds
---
 hugo.toml                     | 7 ++++++-
 layouts/_default/baseof.html  | 1 +
 layouts/partials/rssfeed.html | 3 +++
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/hugo.toml b/hugo.toml
index cdfa76f..4383c90 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -1,5 +1,5 @@
 baseURL = "https://community.apache.org"
-title = "Apache Comdev"
+title = "ASF Community Development"
 languageCode = "en"
 
 contentDir = "source"
@@ -48,3 +48,8 @@ tags = ["OpenSource", "Community", "Apache Software Foundation"]
 
 [social]
 twitter = "ApacheCommunity"
+
+[outputs]
+home = ["html","rss"]
+term = ["html"]
+section = ["html","rss"]
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 57dd373..d7f6441 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -43,6 +43,7 @@
   </style>
 
   {{ partial "matomo.html" . }}
+  {{ partial "rssfeed.html" . }}
 </head>
 
 <body>
diff --git a/layouts/partials/rssfeed.html b/layouts/partials/rssfeed.html
new file mode 100644
index 0000000..948f7c8
--- /dev/null
+++ b/layouts/partials/rssfeed.html
@@ -0,0 +1,3 @@
+{{ with .OutputFormats.Get "rss" -}}
+  {{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
+{{ end }}