add CUSTOM_URL parameter

This commit is contained in:
Gonçalo Valério 2021-05-16 20:00:47 +01:00
parent c1a3a0d92f
commit 6c3f850cf0
Signed by: dethos
GPG Key ID: DF557F2BDCC2445E
4 changed files with 21 additions and 21 deletions

View File

@ -130,8 +130,8 @@ function createFeed(items) {
const feed = new Feed({ const feed = new Feed({
title: TITLE, title: TITLE,
description: DESCRIPTION, description: DESCRIPTION,
id: 'http://example.com/', // TODO id: CUSTOM_URL,
link: 'http://example.com/', // TODO link: CUSTOM_URL,
}) })
for (let item of items) { for (let item of items) {

View File

@ -9,8 +9,7 @@
<meta property="og:title" content="{{page_title}}" /> <meta property="og:title" content="{{page_title}}" />
<meta property="og:description" content="{{page_description}}" /> <meta property="og:description" content="{{page_description}}" />
<link rel="alternate" type="application/rss+xml" title="Planet RSS feed" href="/rss" /> <link rel="alternate" type="application/rss+xml" title="Planet RSS feed" href="/rss" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-wEmeIV1mKuiNpC+IOBjI7aAzPcEZeedi5yW5f2yOq55WWLwNGmvvx4Um1vskeMj0" crossorigin="anonymous">
integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
</head> </head>
<body> <body>

View File

@ -33,8 +33,8 @@ templates['list_posts'] = template({
hash: {}, hash: {},
data: data, data: data,
loc: { loc: {
start: { line: 35, column: 44 }, start: { line: 34, column: 44 },
end: { line: 35, column: 52 }, end: { line: 34, column: 52 },
}, },
}) })
: helper), : helper),
@ -53,8 +53,8 @@ templates['list_posts'] = template({
hash: {}, hash: {},
data: data, data: data,
loc: { loc: {
start: { line: 35, column: 54 }, start: { line: 34, column: 54 },
end: { line: 35, column: 63 }, end: { line: 34, column: 63 },
}, },
}) })
: helper), : helper),
@ -74,8 +74,8 @@ templates['list_posts'] = template({
hash: {}, hash: {},
data: data, data: data,
loc: { loc: {
start: { line: 37, column: 27 }, start: { line: 36, column: 27 },
end: { line: 37, column: 38 }, end: { line: 36, column: 38 },
}, },
}) })
: helper), : helper),
@ -96,8 +96,8 @@ templates['list_posts'] = template({
hash: {}, hash: {},
data: data, data: data,
loc: { loc: {
start: { line: 38, column: 38 }, start: { line: 37, column: 38 },
end: { line: 38, column: 53 }, end: { line: 37, column: 53 },
}, },
}) })
: helper), : helper),
@ -118,8 +118,8 @@ templates['list_posts'] = template({
hash: {}, hash: {},
data: data, data: data,
loc: { loc: {
start: { line: 38, column: 55 }, start: { line: 37, column: 55 },
end: { line: 38, column: 71 }, end: { line: 37, column: 71 },
}, },
}) })
: helper), : helper),
@ -139,8 +139,8 @@ templates['list_posts'] = template({
hash: {}, hash: {},
data: data, data: data,
loc: { loc: {
start: { line: 41, column: 12 }, start: { line: 40, column: 12 },
end: { line: 41, column: 25 }, end: { line: 40, column: 25 },
}, },
}) })
: helper)) != null : helper)) != null
@ -231,7 +231,7 @@ templates['list_posts'] = template({
}) })
: helper), : helper),
) + ) +
'" />\n <link rel="alternate" type="application/rss+xml" title="Planet RSS feed" href="/rss" />\n <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet"\n integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">\n</head>\n\n<body>\n <nav class="navbar navbar-expand-lg navbar-light bg-light">\n <div class="container-fluid">\n <a class="navbar-brand" href="#">' + '" />\n <link rel="alternate" type="application/rss+xml" title="Planet RSS feed" href="/rss" />\n <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-wEmeIV1mKuiNpC+IOBjI7aAzPcEZeedi5yW5f2yOq55WWLwNGmvvx4Um1vskeMj0" crossorigin="anonymous">\n</head>\n\n<body>\n <nav class="navbar navbar-expand-lg navbar-light bg-light">\n <div class="container-fluid">\n <a class="navbar-brand" href="#">' +
alias4( alias4(
((helper = ((helper =
(helper = (helper =
@ -246,8 +246,8 @@ templates['list_posts'] = template({
hash: {}, hash: {},
data: data, data: data,
loc: { loc: {
start: { line: 19, column: 39 }, start: { line: 18, column: 39 },
end: { line: 19, column: 53 }, end: { line: 18, column: 53 },
}, },
}) })
: helper), : helper),
@ -263,8 +263,8 @@ templates['list_posts'] = template({
inverse: container.noop, inverse: container.noop,
data: data, data: data,
loc: { loc: {
start: { line: 30, column: 4 }, start: { line: 29, column: 4 },
end: { line: 46, column: 13 }, end: { line: 45, column: 13 },
}, },
}, },
)) != null )) != null

View File

@ -14,6 +14,7 @@ FEEDS = ""
MAX_SIZE = 50 MAX_SIZE = 50
TITLE = "ADD_YOUR_TITLE_HERE" TITLE = "ADD_YOUR_TITLE_HERE"
DESCRIPTION = "ADD_YOUR_DESCRIPTION_HERE" DESCRIPTION = "ADD_YOUR_DESCRIPTION_HERE"
CUSTOM_URL = "URL_TO_BE_DISPLAYED_ON_RSS_FEED"
CACHE_MAX_AGE = "NUMBER_OF_SECONDS" CACHE_MAX_AGE = "NUMBER_OF_SECONDS"
[triggers] [triggers]