diff options
author | Case Duckworth | 2022-05-27 13:27:21 -0500 |
---|---|---|
committer | Case Duckworth | 2022-05-27 13:27:21 -0500 |
commit | e7254223846dbec352628aa9d156e0fe323a4e93 (patch) | |
tree | 8c02009b7981a1182b952ccf307b52f1700bb5b3 /src/paper-airplane-day-and-two-fire-alarms.ht | |
parent | Update footer -- and properly integrate it into Make (diff) | |
download | hat-trick-e7254223846dbec352628aa9d156e0fe323a4e93.tar.gz hat-trick-e7254223846dbec352628aa9d156e0fe323a4e93.zip |
New post, asset moving, dir-locals, etc.
Diffstat (limited to 'src/paper-airplane-day-and-two-fire-alarms.ht')
-rw-r--r-- | src/paper-airplane-day-and-two-fire-alarms.ht | 49 |
1 files changed, 49 insertions, 0 deletions
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 | |||
4 | Apparently, today is National Paper Airplane Day, so we had a little paper | ||
5 | airplane contest at work. It was quite fun, though my go-to airplane style | ||
6 | didn't win over the YouTube-d and other "professionally"-done airplanes. | ||
7 | |||
8 | We also had a potluck with my department and another, and in preparation the | ||
9 | ovens set off two fire alarms. The first was totally charred french bread and | ||
10 | the second was some drippings that were left on foil in the oven for who knows | ||
11 | how long. Quite annoying, but the potluck turned out quite well! | ||
12 | |||
13 | I've also sold my desk as we prepare for our move, and I'm looking at others. | ||
14 | Thinking an Ikea number, maybe. | ||
15 | |||
16 | I'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 | |||
20 | I also wrote a little function to make it easier to post on this blog. Here it | ||
21 | is: | ||
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 | |||
40 | I think the next thing I should do is make a major-mode ... or maybe I should | ||
41 | just use <code>web-mode</code>.... | ||
42 | |||
43 | And 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 | ||
45 | figured out what those ways are, lol. | ||
46 | |||
47 | <hr> | ||
48 | |||
49 | Wow, this was a long one! That's good, I spose :) | ||