diff options
author | davidovski <david@davidovski.xyz> | 2023-07-25 20:21:09 +0200 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-07-25 20:21:09 +0200 |
commit | f152803c2cee1ba0a1619ac3af0b8749bb6a701a (patch) | |
tree | aa0c21f46db2770a3397dd62eb0104be0ee04b0a | |
parent | 110f01efafe760317970498ac9a64829bf69fb92 (diff) |
Fixed dates but this time for all time
-rwxr-xr-x | site/index.html | 2 | ||||
-rwxr-xr-x | site/rss.xml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/site/index.html b/site/index.html index cf0fafa..fbabe9e 100755 --- a/site/index.html +++ b/site/index.html @@ -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 diff --git a/site/rss.xml b/site/rss.xml index c8d4d11..f7bf597 100755 --- a/site/rss.xml +++ b/site/rss.xml @@ -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[" |