projects
/
website.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d774a22
)
updated post_title script so that only leading spaces are removed
author
MatthewOwens
<matthew@owens.tech>
Sun, 19 Jul 2020 10:33:04 +0000
(11:33 +0100)
committer
MatthewOwens
<matthew@owens.tech>
Sun, 19 Jul 2020 10:33:04 +0000
(11:33 +0100)
scripts/post_title.sh
patch
|
blob
|
history
diff --git
a/scripts/post_title.sh
b/scripts/post_title.sh
index
19ca5d5
..
cd5d352
100755
(executable)
--- a/
scripts/post_title.sh
+++ b/
scripts/post_title.sh
@@
-4,7
+4,7
@@
if [ $# -ne 1 ]; then
t="fallback title"
else
t=$(sed -rn 's/^#([^#])/\1/p' $1)
- t=$(echo $t | sed 's/ //g')
+ t=$(echo $t | sed 's/
^
//g')
fi
echo "<title>$t</title>"