Compare commits

...

4 Commits

8 changed files with 17 additions and 9 deletions

View File

@ -17,7 +17,6 @@ all: subdirs \
upload:
scp -r gmi/* techn0path@vern.cc:public_gemini
scp -r html/* techn0path@vern.cc:public_html
git push -u origin master
test: testing/input.gmi testing/input_feed.txt
mawk -f scripts/navbar.awk -f ~/projects/awk_functions/lib.awk -f scripts/html.awk -- testing/input.gmi > testing/output.html

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

@ -37,7 +37,7 @@ function genNavbarGMI(filename, sourcePath, outputPath) {
=> %s useful \n\
=> %s sitemap\n\
=> %s feed\n\
=> https://git.vern.cc/techn0path/ git", \
=> https://git.vern.cc/techn0path/ git\n", \
relpath(dirname, outputPath "/index.gmi"), \
relpath(dirname, outputPath "/notes/index.gmi"), \
relpath(dirname, outputPath "/useful/index.gmi"), \

View File

@ -8,4 +8,4 @@ Software that can be practically and legally used for whatever end goal, distrib
Having worth. The opposite of worthless.
## Weird
Something that falls outside social norms. A meaningless term, as it can literally refer to anything.
Something that falls outside social norms. Not everything that is "weird" is bad.

View File

@ -5,7 +5,7 @@
<author>
<name>techn0path</name>
</author>
<updated>2023-05-24T11:41:22Z</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

@ -1,9 +1,10 @@
Navigation:
=> ../gmi/index.gmi home
=> ../gmi/notes/index.gmi notes
=> ../gmi/useful/index.gmi useful
=> ../gmi/notes/index.gmi notes
=> ../gmi/useful/index.gmi useful
=> ../gmi/sitemap.gmi sitemap
=> ../gmi/feed.atom feed
=> http://git.vern.cc/techn0path/ git
# Whatssup gamers
Today we are gonna play a game called Test your applikayshens!

View File

@ -20,7 +20,8 @@ body { margin: 20px; }
<a href='../html/notes/index.html'>notes</a> |
<a href='../html/useful/index.html'>useful</a> |
<a href='../html/sitemap.html'>sitemap</a> |
<a href='../html/feed.atom'>feed</a>
<a href='../html/feed.atom'>feed</a> |
<a href='http://git.vern.cc/techn0path/'>git</a>
</nav>
</header><hr>
@ -71,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>