1 files changed, 4 insertions(+), 0 deletions(-)
M bin/pushact
M bin/pushact => bin/pushact +4 -0
@@ 259,6 259,10 @@ do
(cat "$ARTICLE_LINK/index.html" | sed "s/<title><\/title>/<title>$ARTICLE_TITLE - $BLOG_TITLE<\/title>/g") > tmp_index
mv -v tmp_index $ARTICLE_LINK/index.html
+ # Setting the date
+ (cat "$ARTICLE_LINK/index.html" | sed "s/<h2>$ARTICLE_TITLE<\/h2>/<h2>$ARTICLE_TITLE<\/h2><p>$ARCHIVE_DATE<\/p>/g") > tmp_index
+ mv -v tmp_index $ARTICLE_LINK/index.html
+
# Setting RSS
ITEMS="$ITEMS\t\t<item>\n\t\t\t<title>$ARTICLE_TITLE</title>\n\t\t\t<description>$RSS_ARTICLE_ESCAPED_HTML</description>\n\t\t\t<pubDate>$RSS_PUB_DATE</pubDate>\n\t\t\t<link>$BLOG_WEBSITE/$ARTICLE_LINK</link>\n\t\t</item>\n"