blog

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

commit
77df8c83f01a1f5532d89168c9fd1cfcb1d5e58a
parent
af4e913d6f1f4b59f9d62925a96782785a010860
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-12-22 10:00
feed: fix link relation

Diffstat

M feed.sh 4 +++-

1 files changed, 3 insertions, 1 deletions


diff --git a/feed.sh b/feed.sh

@@ -11,11 +11,13 @@ echo '<feed xmlns="http://www.w3.org/2005/Atom">'
   11    11 echo '	<author><name>Tobias Bengfort</name></author>'
   12    12 echo '	<title>Ξ</title>'
   13    13 echo "	<id>$base_url</id>"
   14    -1 echo "	<link href=\"$base_url\" rel=\"self\" />"
   -1    14 echo "	<link href=\"$base_url\" rel=\"alternate\" />"
   15    15 if [ "$1" = '-a' ]; then
   16    16 	echo "	<link href=\"${base_url}feed.xml\" rel=\"current\" />"
   -1    17 	echo "	<link href=\"${base_url}feed-archive.xml\" rel=\"self\" />"
   17    18 	select='tail -n +11'
   18    19 else
   -1    20 	echo "	<link href=\"${base_url}feed.xml\" rel=\"self\" />"
   19    21 	echo "	<link href=\"${base_url}feed-archive.xml\" rel=\"prev-archive\" />"
   20    22 	select='head -n 10'
   21    23 fi