plutopluto

git clone https://git.ce9e.org/plutopluto.git

commit
01d366c2e72bcc565941284e432a041e8eff65c3
parent
0c8f3152f11da3d8dad8f2e3377c8a6049b08c32
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-12-21 12:15
link to internal feed view

Diffstat

M plutopluto/index.html 2 +-
M plutopluto/static/plutopluto.js 6 +++++-

2 files changed, 6 insertions, 2 deletions


diff --git a/plutopluto/index.html b/plutopluto/index.html

@@ -13,7 +13,7 @@
   13    13 	<template>
   14    14 		<article>
   15    15 			<header>
   16    -1 				<a class="source u-bold" href="{{source_link}}">{{source}}</a>
   -1    16 				<a class="source u-bold" href="{{feed_link}}">{{source}}</a>
   17    17 				<span class="meta">
   18    18 					&middot; Posted on <a href="{{link}}" tabindex="-1">{{dt}}</a>
   19    19 				</span>

diff --git a/plutopluto/static/plutopluto.js b/plutopluto/static/plutopluto.js

@@ -48,6 +48,7 @@ var appendEntries = function(entries) {
   48    48 		li.innerHTML = template.innerHTML
   49    49 			.replaceAll('{{source}}', escapeHTML(entry.source))
   50    50 			.replaceAll('{{source_link}}', escapeHTML(entry.source_link))
   -1    51 			.replaceAll('{{feed_link}}', escapeHTML(entry.feed_link))
   51    52 			.replaceAll('{{link}}', escapeHTML(entry.link))
   52    53 			.replaceAll('{{title}}', escapeHTML(entry.title))
   53    54 			.replaceAll('{{dt}}', escapeHTML(formatDate(entry.dt)))
@@ -101,7 +102,10 @@ getConfig().then(config => {
  101   102 				} else if (raw.includes('{page}')) {
  102   103 					next.push(raw);
  103   104 				}
  104    -1 				entries = entries.concat(data.entries);
   -1   105 				data.entries.forEach(entry => {
   -1   106 					entry.feed_link = '?' + new URLSearchParams({url: raw});
   -1   107 					entries.push(entry);
   -1   108 				});
  105   109 			});
  106   110 		});
  107   111