Fix feed links
This commit is contained in:
parent
44b4319318
commit
c1522d3632
4
build.sh
4
build.sh
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue