diff options
-rw-r--r-- | build/website/index.html | 13 | ||||
-rwxr-xr-x | scripts/addback.sh | 17 | ||||
-rw-r--r-- | website/index.html | 13 |
3 files changed, 43 insertions, 0 deletions
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. </p> + <h2>Topics</h2> <p>Here, you will find topics related to: </p> @@ -72,6 +73,18 @@ Preston Pan <p>Many articles will be written in groff and compiled to pdf.</p> +<h2>RSS/Atom Feed</h2> + +<p> + This website is hosted on my git server. By extension, <a href="https://git.prestonpan.tech">git frontend</a> 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). +</p> + +<p> + <a href="https://git.prestonpan.tech/prestonpan.git/atom">view the rss feed here.</a> +</p> + <h2>Services</h2> <p>Here are the services that I run on my server/socially:</p> 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 '<a href="\.\./index\.html">Back</a>' +else + printf '<a href="\./index\.html">Back</a>' +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. </p> + <h2>Topics</h2> <p>Here, you will find topics related to: </p> @@ -52,6 +53,18 @@ $$START CONTENT <p>Many articles will be written in groff and compiled to pdf.</p> +<h2>RSS/Atom Feed</h2> + +<p> + This website is hosted on my git server. By extension, <a href="https://git.prestonpan.tech">git frontend</a> 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). +</p> + +<p> + <a href="https://git.prestonpan.tech/prestonpan.git/atom">view the rss feed here.</a> +</p> + <h2>Services</h2> <p>Here are the services that I run on my server/socially:</p> |