Fixed dates but this time for all time

This commit is contained in:
davidovski 2023-07-25 20:21:09 +02:00
parent 110f01efaf
commit f152803c2c
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ for file in $(ls -t entries/*.html); do
<span>%s</span>
</a>
</li>
" "${file%.*}.html" "$(git log --pretty=format:'%cd' "$file" | tail -n 1)" "$title"
" "${file%.*}.html" "$(git log --pretty=format:'%cd' --follow -- "$file" | tail -n 1)" "$title"
done
cat << EOF

View File

@ -17,7 +17,7 @@ for entry in entries/*.html; do
printf "<item>\n"
printf "<title>%s</title>\n" "${title}"
printf "<link>%s</link>\n" "http://davidovski.xyz/$entry"
printf "<pubDate>%s</pubDate>\n" "$(git log --pretty=format:'%cd' "$entry" | tail -n 1 )"
printf "<pubDate>%s</pubDate>\n" "$(git log --pretty=format:'%cd' --follow -- "$entry" | tail -n 1)"
printf "<description><![CDATA["