aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustineSmithies <justine@smithies.me.uk>2023-05-14 08:48:35 +0100
committerJustineSmithies <justine@smithies.me.uk>2023-05-14 08:48:35 +0100
commit8fac6b9b99955832cb8912365ccced6b1c0f4c6a (patch)
tree22fadaa65ac3e4f33ddd6c005ce27883182676fe
parentd41c1c791be9faad344227fb6762781842202770 (diff)
Fixed atom.xml main title to show blogs title from header.html file
-rwxr-xr-xblarg2
1 files changed, 1 insertions, 1 deletions
diff --git a/blarg b/blarg
index 0ff018c..09d5b55 100755
--- a/blarg
+++ b/blarg
@@ -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>