html.awk now adds contact information at the end of generated pages. feed.awk now uses the date of the first entry as the feed's last updated date

This commit is contained in:
Abdullah Islam 2023-05-25 19:41:31 +06:00
parent d937026b6a
commit d9b830acfb
4 changed files with 10 additions and 3 deletions

View File

@ -29,12 +29,12 @@ BEGIN {
<summary>%s</summary>\n\
</entry>\n", title " (" $0 ")", $0, uuid, date, title)
if (lastUpdated == "") lastUpdated = date
if (getline != 1) break
}
}
END {
sprintf("date -u \"+%%Y-%%m-%%dT%%TZ\"") | getline feedLastUpdated
sprintf("uuidgen -s -n @x500 -N \"techn0path\"") | getline documentUuid
printf "<?xml version='1.0' encoding='UTF-8' ?>\n\
@ -47,5 +47,8 @@ END {
<updated>%s</updated>\n\
<id>urn:uuid:%s</id>\n\
%s\n\
</feed>\n", feedLastUpdated, documentUuid, body
</feed>\n", \
lastUpdated, \
documentUuid, \
body
}

View File

@ -153,6 +153,8 @@ body { margin: 20px; }\n\
%s\n\
%s\n\
</article>\n\
<hr>\n\
<p>If you have any suggestions, let me know at <a href='mailto:logicartist123@gmail.com'>logicartist123@gmail.com</a>. Sorry, I still use GMail. :/</p>\n\
</body>\n\
</html>", \
title, \

View File

@ -5,7 +5,7 @@
<author>
<name>techn0path</name>
</author>
<updated>2023-05-25T10:31:32Z</updated>
<updated>2023-05-20T21:12:38+06:00</updated>
<id>urn:uuid:dad753cc-9f1a-55c9-afa5-0f6e50594ed5</id>
<entry>
<title>"renamed feed.txt to feed.tsv. added hooks. made all of the scripts in scripts/ executable" (hooks/post-commit)</title>

View File

@ -72,5 +72,7 @@ hehehe &apos;```&apos;
<p>nope lol</p>
</article>
<hr>
<p>If you have any suggestions, let me know at <a href='mailto:logicartist123@gmail.com'>logicartist123@gmail.com</a>. Sorry, I still use GMail. :/</p>
</body>
</html>