summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-04-20 19:36:02 +0300
committereug-vs <eugene@eug-vs.xyz>2022-04-20 19:40:55 +0300
commitaa01f0afe1b6218eddc956b1f9ec901f6256c3c4 (patch)
tree7c60c76f7a2faf72833dba7f2e59be6895143812
parent753288796f1c092fb39bb3f80690671124ebbe24 (diff)
downloadeug-vs-xyz-aa01f0afe1b6218eddc956b1f9ec901f6256c3c4.tar.gz
feat: use corrrect date formats in RSS
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 77b1fc5..6ed0e45 100644
--- a/Makefile
+++ b/Makefile
@@ -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>' >> $@