Fix feed links

This commit is contained in:
~lucidiot 2021-03-24 09:23:11 +01:00
parent 44b4319318
commit c1522d3632
1 changed files with 2 additions and 2 deletions

View File

@ -80,10 +80,10 @@ echo '<?xml version="1.0"?>
' > html/rss.xml
for file in content/**/*.md; do
link="${file/#content/html}"
link="${file##content/}"
link="https://envs.net/~lucidiot/${link/%.md/.html}"
echo '<item>
<title>'"$(sed -n 's|\s*title:\(.*\)$|\1|p' "$file")"'</title>
<title>'"$(sed -n 's|\s*title:\s*\(.*\)$|\1|p' "$file")"'</title>
<pubDate>'"$(date -Rd "@$(stat -c%Y "$file")")"'</pubDate>
<link>'"$link"'</link>
<guid>'"$link"'</guid>