Update the permalink for new daily emails
Follow-up to commits 41f29c and 38279.
This commit is contained in:
parent
41f29ca581
commit
1e9b7ba0c6
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue