publish member feeds

This commit is contained in:
Max Böck 2019-04-13 20:05:21 +02:00
parent 55b59480a4
commit 0e497e14ba
4 changed files with 24 additions and 1 deletions

View file

@ -5,6 +5,8 @@ module.exports = function(config) {
config.addPlugin(syntaxHighlight)
config.addLayoutAlias('base', 'base.njk')
config.addLayoutAlias('home', 'home.njk')
config.addLayoutAlias('page', 'page.njk')
config.addPassthroughCopy('src/assets/images')

View file

@ -1,7 +1,7 @@
---
layout: page
title: 'Code of Conduct'
permalink: '/coc/index.html'
permalink: coc/index.html
---
Lorem Ipsum dolor

View file

@ -2,21 +2,25 @@
{
"title": "Max Böck",
"url": "https://mxb.dev/",
"feed": "https://mxb.dev/feed.xml",
"active": true
},
{
"title": "Test Site",
"url": "https://github.com/maxboeck/",
"feed": null,
"active": true
},
{
"title": "Manuel Matuzovic",
"url": "https://www.matuzo.at/",
"feed": "https://www.matuzo.at/feed.xml",
"active": true
},
{
"title": "Charlie Owen",
"url": "https://www.sonniesedge.net/",
"feed": null,
"active": true
}
]

17
src/feeds.njk Normal file
View file

@ -0,0 +1,17 @@
---
permalink: feeds.xml
---
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>{{ meta.title }} Member Feeds</title>
</head>
<body>
{% for member in members %}
{% if member.feed %}
<outline type="rss" text="{{ member.title }}" title="{{ member.title }}" xmlUrl="{{ member.feed }}" htmlUrl="{{ member.url }}" />
{% endif %}
{% endfor %}
</body>
</opml>