1 files changed, 47 insertions, 0 deletions
diff --git a/news b/news
new file mode 100755
index 0000000..af6ff21
--- /dev/null
+++ b/news
@@ -0,0 +1,47 @@
+#!/usr/bin/env sh
+
+cat <<EOF
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8" />
+<meta name="viewport" content="width=device-width, initial-scale=1" />
+<meta name="color-scheme" content="light dark">
+<title>News</title>
+<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='0.9em' font-size='90'>📰</text></svg>" />
+<style>
+main {
+max-width: 80ch;
+padding:1em;
+margin:auto;
+font-family:serif;
+border: 3px solid;
+box-shadow: 6px 6px;}
+ul {list-style-type: none;padding:0;}
+h1 {font-family: "Impact", sans-serif; text-align: center; font-size: 3em;
+border-top: 6px double; border-bottom: 6px double;
+text-transform: uppercase;}
+a {
+color: inherit;
+text-decoration: none;
+}
+li {
+text-align: center;
+padding: 0.5em 0;
+}
+</style>
+</head>
+<body>
+<main>
+<h1>The News</h1>
+<ul>
+EOF
+
+cat ~/.config/sfeed/feeds/* | sort -r | awk -F'\t' '$2 && $3 { print "<li><a href='\''" $3 "'\''>" $2 "</a></li>" }'
+
+cat <<EOF
+</ul>
+</main>
+</body>
+</html>
+EOF
|