]> jfr.im git - irc/freenode/web-7.0.git/commitdiff
Enable RSS and Atom news feeds
authorEd Kellett <redacted>
Sat, 4 Jun 2016 00:19:35 +0000 (01:19 +0100)
committerEd Kellett <redacted>
Sat, 4 Jun 2016 00:46:36 +0000 (01:46 +0100)
README.md
config.yml
requirements.txt
templates/base.html

index a2dadddbe74afa08d95b6d4db05c70541508fa9a..98d654a1da1b463786a9f4dc40e923628fd58203 100644 (file)
--- a/README.md
+++ b/README.md
@@ -83,6 +83,7 @@ Blog-specific:
 
 - `author`
 - `date`
+- `enclosure` sets the podcast URL of an article
 
 
 ### Internal linking
index 6ebd459b45112c733062ddba9574d4c0cd41a0e8..ff1f6e8449818619fecd16d47655975cf9201ab1 100644 (file)
@@ -1,4 +1,5 @@
 name: freenode
+absolute-url: 'https://freenode.net/'
 COPYRIGHT: "&copy; 2016, freenode"
 DESCRIPTION: "freenode IRC network"
 GITHUB_URL: "https://github.com/freenode/web-7.0"
@@ -28,6 +29,11 @@ modules:
     id: 'news'
     source: news
     root: news
+  - name: 'feed'
+    title: 'Freenode News'
+    description: ''
+    module: 'news'
+    output: 'news'
   - name: 'pages'
     source: pages
     root: ''
index f288d74d37579c809f5c89d912d0ba49f47d6f04..f18293f9e6b74eec12ac6f76aa4b6a27bdbaa1a3 100644 (file)
@@ -1 +1 @@
-cms7==0.1a11
+cms7==0.1a15
index e6bcfac264dca5c869e3b34aced0a67f6dabe379..d6b1420facd0325ba6c901cc2963288944529c4d 100644 (file)
@@ -8,6 +8,10 @@
     <meta name="theme-color" content="#292f2f">
     <meta name="description" content="{{ config.DESCRIPTION }}">
     <link rel="icon" href="{{ url_for("static/img/logos/coloured-alphabg-sq-120.png") }}">
+    {%- block links %}
+    <link rel="alternate" type="application/rss+xml" href="{{ url_for("news/rss") }}" title="news (rss)">
+    <link rel="alternate" type="application/atom+xml" href="{{ url_for("news/atom") }}" title="news (atom)">
+    {%- endblock %}
     <title>{% block title %}{{ title }} - {{ config.name }}{% endblock %}</title>
     {%- for stylesheet in ['open-sans.css', 'font-awesome.css', 'style.css'] %}
     <link href="{{ url_for("static/css/" + stylesheet) }}?{{ git_hash }}" rel="stylesheet">