diff options
author | JustineSmithies <justine@smithies.me.uk> | 2023-05-14 08:48:35 +0100 |
---|---|---|
committer | JustineSmithies <justine@smithies.me.uk> | 2023-05-14 08:48:35 +0100 |
commit | 8fac6b9b99955832cb8912365ccced6b1c0f4c6a (patch) | |
tree | 22fadaa65ac3e4f33ddd6c005ce27883182676fe | |
parent | d41c1c791be9faad344227fb6762781842202770 (diff) |
Fixed atom.xml main title to show blogs title from header.html file
-rwxr-xr-x | blarg | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -44,7 +44,7 @@ atom_xml() { cat <<EOF <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <title>$(sed -n '/^# /{s/# //p; q}' index.md)</title> + <title>$(grep -o '<title>.*</title>' header.html | sed 's/\(<title>\|<\/title>\)//g')</title> <link href="$uri" rel="self" /> <updated>$(date --iso=seconds)</updated> <author> |