mirror of
https://github.com/maxboeck/webring
synced 2024-09-20 05:41:59 +00:00
publish member feeds
This commit is contained in:
parent
55b59480a4
commit
0e497e14ba
4 changed files with 24 additions and 1 deletions
|
@ -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')
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
layout: page
|
||||
title: 'Code of Conduct'
|
||||
permalink: '/coc/index.html'
|
||||
permalink: coc/index.html
|
||||
---
|
||||
|
||||
Lorem Ipsum dolor
|
|
@ -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
17
src/feeds.njk
Normal 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>
|
Loading…
Reference in a new issue