diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-04-20 19:36:02 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-04-20 19:40:55 +0300 |
commit | aa01f0afe1b6218eddc956b1f9ec901f6256c3c4 (patch) | |
tree | 7c60c76f7a2faf72833dba7f2e59be6895143812 | |
parent | 753288796f1c092fb39bb3f80690671124ebbe24 (diff) | |
download | eug-vs-xyz-aa01f0afe1b6218eddc956b1f9ec901f6256c3c4.tar.gz |
feat: use corrrect date formats in RSS
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -36,7 +36,7 @@ all: $(HTML) $(RSS_FEED) @echo $@ @echo '<item>' > $@ @echo " <link>https://eug-vs.xyz/$*.html</link>" >> $@ - @echo " <pubDate>$*</pubDate>" >> $@ + @echo " <pubDate>$$(date --rfc-email -d $$(basename $*))</pubDate>" >> $@ @echo " <title>$$(sed '/^#/q' $< | sed 's/:[a-z]*://; s/#* //')</title>" >> $@ @echo " <description><![CDATA[" >> $@ @sed "$(LINK_SEDSTRING) $(EMOJI_SEDSTRING)" $< | pandoc $(PANDOC_ARGS) $< >> $@ @@ -47,6 +47,7 @@ $(RSS_FEED): $(XML) @echo $@ @echo '<rss version="2.0"><channel>' > $@ @echo "<title>Eugene's Space</title><link>https://eug-vs.xyz</link><description>Eugene's blog</description>" >> $@ + @echo "<lastBuildDate>$$(date --rfc-email)</lastBuildDate>" >> $@ @cat $$(echo $^ | tr " " "\n" | sort -r | tr "\n" " ") >> $@ @echo '</channel></rss>' >> $@ |