about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/.dir-locals.el4
-rw-r--r--src/_head.htm2
-rw-r--r--src/_index.htm3
-rw-r--r--src/paper-airplane-day-and-two-fire-alarms.ht49
-rw-r--r--src/static/casa.css32
-rw-r--r--src/static/rss.xml27
-rw-r--r--src/twtxt.ht22
7 files changed, 78 insertions, 61 deletions
diff --git a/src/.dir-locals.el b/src/.dir-locals.el new file mode 100644 index 0000000..8e332c0 --- /dev/null +++ b/src/.dir-locals.el
@@ -0,0 +1,4 @@
1;;; Directory Local Variables
2;;; For more information see (info "(emacs) Directory Variables")
3
4((fundamental-mode . ((compile-command . "make build"))))
diff --git a/src/_head.htm b/src/_head.htm index e8ec1cc..0eef7ac 100644 --- a/src/_head.htm +++ b/src/_head.htm
@@ -8,7 +8,7 @@
8 <title>$(title)</title> 8 <title>$(title)</title>
9 <link rel="shortcut icon" 9 <link rel="shortcut icon"
10 href="data:image/gif;base64,R0lGODdhEAAQAIAAAAByL8zAGiwAAAAAEAAQAAACK4wNqQsX+1hD6kiaXKxQb+ZZYChmpGNinfpxV/q02dzUrx1L+Lzlp60LFgAAOw==" /> 10 href="data:image/gif;base64,R0lGODdhEAAQAIAAAAByL8zAGiwAAAAAEAAQAAACK4wNqQsX+1hD6kiaXKxQb+ZZYChmpGNinfpxV/q02dzUrx1L+Lzlp60LFgAAOw==" />
11 <link rel="stylesheet" type="text/css" href="static/casa.css"> 11 <link rel="stylesheet" type="text/css" href="casa.css">
12 <link rel="alternate" type="application/atom+xml" href="feed.xml"> 12 <link rel="alternate" type="application/atom+xml" href="feed.xml">
13 </head> 13 </head>
14 <body> 14 <body>
diff --git a/src/_index.htm b/src/_index.htm index 6b7b809..918edf5 100644 --- a/src/_index.htm +++ b/src/_index.htm
@@ -1,7 +1,8 @@
1<p>Ahoy! This here is my little home-away-from-home on the interwebs. 1<p>Ahoy! This here is my little home-away-from-home on the interwebs.
2 I'm currently experimenting with a custom little <abbr title="static site generator">SSG</abbr> 2 I'm currently experimenting with a custom little <abbr title="static site generator">SSG</abbr>
3 I'm calling <strong>HAT TRICK</strong>. 3 I'm calling <strong>HAT TRICK</strong>.
4 I should probably throw the source up somewhere, but I haven't yet. 4 <del>I should probably throw the source up somewhere, but I haven't yet.</del>
5 <a href="https://git.acdw.net/hat-trick/">Download the source here!</a>
5</p> 6</p>
6 7
7 8
diff --git a/src/paper-airplane-day-and-two-fire-alarms.ht b/src/paper-airplane-day-and-two-fire-alarms.ht new file mode 100644 index 0000000..58720ed --- /dev/null +++ b/src/paper-airplane-day-and-two-fire-alarms.ht
@@ -0,0 +1,49 @@
1;@@title: Paper airplane day and two fire alarms@@
2;@@date: 2022-05-26@@
3
4Apparently, today is National Paper Airplane Day, so we had a little paper
5airplane contest at work. It was quite fun, though my go-to airplane style
6didn't win over the YouTube-d and other "professionally"-done airplanes.
7
8We also had a potluck with my department and another, and in preparation the
9ovens set off two fire alarms. The first was totally charred french bread and
10the second was some drippings that were left on foil in the oven for who knows
11how long. Quite annoying, but the potluck turned out quite well!
12
13I've also sold my desk as we prepare for our move, and I'm looking at others.
14Thinking an Ikea number, maybe.
15
16I'm back on <code>nyan-mode</code> in my mode-line. Oh, I need to remember the
17<code>actually-selected-window</code> package, which I wrote I belive
18<em>for</em> <code>nyan-mode</code>! I'll do that when I'm done here.
19
20I also wrote a little function to make it easier to post on this blog. Here it
21is:
22
23```
24(defun blog-post (title &optional date)
25 "Make a new blog post, with TITLE on DATE."
26 (interactive (list (read-string "Title: ")
27 (format-time-string "%F")))
28 (let ((blog-directory (expand-file-name "~/src/hat-trick/src/"))
29 (metadata-format ";@@%s: %s@@\n")
30 (slug (string-trim (downcase (replace-regexp-in-string "[^[:alnum:]]"
31 "-" title))
32 "-" "-")))
33 (find-file (expand-file-name (concat slug ".ht") blog-directory))
34 (insert (format metadata-format "title" title))
35 (when date
36 (insert (format metadata-format "date" date)))
37 (insert "\n")))
38```
39
40I think the next thing I should do is make a major-mode ... or maybe I should
41just use <code>web-mode</code>....
42
43And of course, I need to update the syntax of these .ht files. They're
44<em>okay</em>, but I think I could improve them in a few ways. Not that I've
45figured out what those ways are, lol.
46
47<hr>
48
49Wow, this was a long one! That's good, I spose :)
diff --git a/src/static/casa.css b/src/static/casa.css deleted file mode 100644 index 36bdda0..0000000 --- a/src/static/casa.css +++ /dev/null
@@ -1,32 +0,0 @@
1html {
2 min-height: 100vh;
3 margin:0; padding: 0;
4}
5
6html {
7 font: 18px serif;
8}
9
10body {
11 max-width: 79ch;
12 margin: 0 auto;
13 padding: 0 2ch;
14 background: #385180;
15 color: white;
16}
17
18main {
19 max-width: 79ch;
20 padding: 2ch;
21 margin: auto;
22 background: #405990;
23}
24
25a {
26 color: yellow;
27}
28
29footer {
30 text-align: right;
31 padding: 1ch 0;
32}
diff --git a/src/static/rss.xml b/src/static/rss.xml deleted file mode 100644 index 44617d8..0000000 --- a/src/static/rss.xml +++ /dev/null
@@ -1,27 +0,0 @@
1<?xml version="1.0" encoding="UTF-8" ?>
2<rss version="2.0">
3<channel>
4 <title>Acdw's Casa</title>
5 <description>My casa, in the middle of the web</description>
6 <link>https://acdw.casa</link>
7 <copyright>2022 Case Duckworth</copyright>
8 <lastBuildDate>2022-03-03</lastBuildDate>
9 <pubDate>2022-03-03</pubDate>
10 <ttl>1800</ttl>
11
12 <item>
13 <title>And we're live</title>
14 <description>Hi basement</description>
15 <link>https://acdw.casa/</link>
16 <pubDate>2022-03-03</pubDate>
17 </item>
18
19 <item>
20 <title>Good Choices License</title>
21 <description>A license for people</description>
22 <link>https://acdw.casa/gcl/</link>
23 <pubDate>2022-05-13</pubDate>
24 </item>
25
26</channel>
27</rss>
diff --git a/src/twtxt.ht b/src/twtxt.ht new file mode 100644 index 0000000..7ae86c9 --- /dev/null +++ b/src/twtxt.ht
@@ -0,0 +1,22 @@
1;@@title: TwTxt ? What's next!?@@
2;@@date: 2022-05-25@@
3
4Whoa, two posts in one day. Better be careful, lol.
5
6Anyway, this is to say I've also got a
7=> tw.txt twtxt
8set up as well, and even forked
9=> https://github.com/duckwork/twtxt-el twtxt.el
10to work for my needs!
11
12Luckily, rsync's <code>--delete</code> flag
13doesn't do anything with excluded files by default, so I can
14just throw it in the site root and have a grand ol' time.
15
16Still to do:
17
18- Finalize hat-trick markup
19- Figure out a way to cross-post to gemini and gopher too, why not
20- Write more content? I suppose?
21- ...
22- Profit!!!