Update the permalink for new daily emails

Follow-up to commits 41f29c and 38279.
This commit is contained in:
Oliver Davies 2024-05-21 22:40:37 +01:00
parent 41f29ca581
commit 1e9b7ba0c6

View file

@ -38,7 +38,7 @@ function create-daily {
# Replace the placeholders.
sed -i "s/{{ date }}/${date}/" "${filepath}"
sed -i "s/{{ title }}/${title}/" "${filepath}"
sed -i "s#{{ permalink }}#archive/${year}/${month}/${day}/${slug}#" "${filepath}"
sed -i "s#{{ permalink }}#daily/${year}/${month}/${day}/${slug}#" "${filepath}"
# Create a commit with the appropriate date in the message
git add "${filepath}"