From 0e5eccfb37fb8ce26c50064c2ddf04f893694207 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 11 Nov 2022 14:31:12 -0800 Subject: added rss feed to main page --- build/website/index.html | 13 +++++++++++++ scripts/addback.sh | 17 +++++++++++++++++ website/index.html | 13 +++++++++++++ 3 files changed, 43 insertions(+) create mode 100755 scripts/addback.sh diff --git a/build/website/index.html b/build/website/index.html index 07008aa..c730c95 100644 --- a/build/website/index.html +++ b/build/website/index.html @@ -56,6 +56,7 @@ Preston Pan fact that I have a limited amount of time and have just changed the backend for this website.

+

Topics

Here, you will find topics related to:

@@ -72,6 +73,18 @@ Preston Pan

Many articles will be written in groff and compiled to pdf.

+

RSS/Atom Feed

+ +

+ This website is hosted on my git server. By extension, git frontend provides + a rss/atom feed for my website so you can be notified about each update to the website (with details on what is updated + via commit messages). +

+ +

+ view the rss feed here. +

+

Services

Here are the services that I run on my server/socially:

diff --git a/scripts/addback.sh b/scripts/addback.sh new file mode 100755 index 0000000..481733f --- /dev/null +++ b/scripts/addback.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# A simple extension to add a back button to every page that needs one. + +PROJECT_ROOT="./build/website" +if [ "$(realpath "$1")" = "$(realpath "$PROJECT_ROOT/index.html")" ]; then + printf ' ' + exit 0 +fi + +# +if [ "$(basename "$1")" = 'index.html' ]; +then + printf 'Back' +else + printf 'Back' +fi diff --git a/website/index.html b/website/index.html index 8ba118c..1b165b0 100644 --- a/website/index.html +++ b/website/index.html @@ -36,6 +36,7 @@ $$START CONTENT fact that I have a limited amount of time and have just changed the backend for this website.

+

Topics

Here, you will find topics related to:

@@ -52,6 +53,18 @@ $$START CONTENT

Many articles will be written in groff and compiled to pdf.

+

RSS/Atom Feed

+ +

+ This website is hosted on my git server. By extension, git frontend provides + a rss/atom feed for my website so you can be notified about each update to the website (with details on what is updated + via commit messages). +

+ +

+ view the rss feed here. +

+

Services

Here are the services that I run on my server/socially:

-- cgit