Commit graph

54 commits

Author SHA1 Message Date
ea29ca22c7
Add README and clarify licence
Having the code and text both under both GPLv3+ and CC-BY-NC 4.0
was a bit confusing, and might not have been compatible with
the upstream code I'm copying.

Instead, I clarified that the site genration code is under the
GPLv3+ while the contents of the articles themselves are under
CC-BY-NC 4.0.
2024-10-30 18:15:01 +05:30
f19c9291cd
Add Steven Sprang's commonmark+scm reader
Thanks, Steven, for actually writing this utility!
2024-10-30 17:57:55 +05:30
e4ce35c804
Organise custom builders into subfolder
Mainly so that, if I start doing further customisation, it'll
all be organised neatly instead of lying around at the root.
2024-10-30 15:46:10 +05:30
e85374629c
Fit images onto screen even in mobile view
The images in mobile view were spilling out a bit; this commit
adjusts the margins to make it more mobile-friendly. In fact,
that part of the CSS is now "mobile first" with an exception
for devices thar are *larger* than a certain size 😉
2024-10-22 22:58:53 +05:30
93d41d23ab
Make the website mobile-responsive
Basically, add the mobile meta tag so the browser knows what to
do.
2024-10-22 22:58:17 +05:30
6a61e34ebd
Fix another broken link to the same post
Looks like I linked to it twice in quick succession, and only
changed the second one last time 😅
2024-10-22 22:39:38 +05:30
3b717079cb
Add a clarifying note about Poco audio/call problems
Basically, they're not to do with Mobian but just this family
of devices.
2024-10-22 19:47:44 +05:30
a966c4456f
Fix broken link to "Unlocking the Poco F1" blog post 2024-10-22 18:33:53 +05:30
2b6b9e71a5
Publish post: 72 hours with Phosh and Mobian
Also updated the "Unlocking the Poco F1" post to link to this
new post.
2024-10-22 15:28:54 +05:30
3f48f8df99
Customise feed generator to omit ".html" extension
The feed was still assuming the posts are stored as `title.html`,
whereas they are now stored as `title/index.html` or merely
`title/` for short.

Unfortunately, it looks like this part was a bit difficult to
customise so I ended up copying the entire module instead and
editing it in place :/
2024-10-22 14:10:52 +05:30
6c9228d5fe
Allow storing images along with post content
Traditionally, Haunt expects posts to be stored together in one
place, and other assets such as images to be stored separately.
However, I thought it'd be nice to store related images in the
same folder as the posts themselves, for easy access. A neat way
to do this is to have one folder per post, containing a file
index.md for the post content along with any related images.

Unfortunately, the Haunt reader complains when it finds files
with an unknown extension. To work around this, I've split the
default file filter into three variants:

- The default one, that only excludes things like hidden files
  and is used for processing the actual static file directory
- A version that ignores images as well, to keep Haunt readers
  happy
- A version that keeps images but ignores post files like `.md`
  and `.sxml`, which is used for a new special inline-images
  reader. This static file processor basically finds the static
  files (i.e. images) that are embedded alongside the posts, and
  copies those over to the rendered site.
2024-10-22 13:59:38 +05:30
76a0aaf4e8
Customise blog builder to omit ".html" extension from pages
We instead render each post in its own folder containing an
`index.html` file, so that loading the bare path automatically
renders the post.
2024-10-22 13:50:00 +05:30
b32512778d
Add post: Unlocking the Poco F1 2024-10-22 09:42:27 +05:30
581ac7e0c0
Tweak styles for neater code blocks and lists 2024-10-22 09:42:27 +05:30
d87f7371df
Link to Ian Bogost's article and fix his name spelling 2024-09-26 12:47:27 +05:30
e5f0551096
Close a dangling parenthesis
I don't know how I missed that 😬
2024-09-26 12:46:49 +05:30
b391b9d8ab
Credit Savs on "Devices for Children" post 2024-09-25 17:34:15 +05:30
cd4095c6ab
Add article: Refilling the UPS 2024-09-25 17:33:52 +05:30
0c4fe744b8
Add article: Devices for Children 2024-07-28 08:48:44 +05:30
3399140ba3
Fix wordo: description -> summary
Also did I just coin a new word? ;)
2024-07-21 16:54:34 +05:30
1bae3c3227
Add article: Eliminating the Battery 2024-07-21 16:52:12 +05:30
cbe457bdc1
Add article: American Democracy 2024-07-09 13:31:23 +05:30
0e2c5eda58
Fixed some typos pointed out by Appa and S'na 2024-07-09 12:57:56 +05:30
df81b845d8
Convert <hr>s into asterisms! 2024-04-14 17:19:09 +05:30
7d633d5fa7
Add summary for Retiring Rooms 2024-04-14 17:07:29 +05:30
d1ca908fb6
Correct story title in Retiring Rooms
It's just "Diaboliad", not "The Diaboliad".
2024-04-14 17:06:56 +05:30
4bf036a6fd
Link to Ravi's website in Retiring Rooms 2024-04-14 17:06:40 +05:30
326b5ab6dd
Add post: Retiring Rooms 2024-04-14 17:01:18 +05:30
5f85e1b29c
Change license to CC-BY-NC 2024-04-14 17:00:20 +05:30
306a01bc3f
Add post: Kobo Art
I had written this a while ago, but only got around to publishing
it now. Incidentally, there's a bit of time-travel because I've
set the date to when I originally wrote it but the screenshots,
if you look at the date, are from images drawn quite a bit later.
Anyway, I'll leave it out there and see if anyone notices ;)
2024-04-14 16:16:13 +05:30
24b276ad5a
Add styling for post images
We don't want them to fall back to default behaviour, because that
involves being too large and spilling out of the screen!
2024-04-14 16:15:14 +05:30
af3287438c
Set up the publisher
Wow, this is so convenient! :D

And hooray for SSH config that I don't have to reveal my full
hostname and login details and everything ;)
2024-03-31 18:02:23 +05:30
58d3c942a5
Add blog and code-blog to header 2024-03-31 17:26:28 +05:30
dc45aa3f45
Merge "main" and "home-page" divs into one
There's no need for them to be separate, and this makes the
max-width override cleaner. (We're setting a larger max-width in
the home page so that my entire name fits without wrapping, etc.,
whereas in posts it should wrap fast enough that we don't end up
with too-long lines.)
2024-03-31 17:12:57 +05:30
b1decd55de
Adjust max-width to actually span ~70 characters
The 70em measure doesn't work because our 'M' is a bit wide, so
40em is a good amount that gets us closer to what we want. Hmm,
maybe the font size can also be increased a bit in this case?
2024-03-31 17:12:47 +05:30
69ea5ac4ce
Separate code blog from ordinary blog
This can now be done by putting code-only posts in a "clog" folder
instead of the customary "blog". To implement this, the code
checks the path of every file and matches the beginning with the
string "posts/clog/".

Other posts can be moved to a "blog" folder or kept outside as-is;
it doesn't make a difference because everything that is not in
"posts/clog/" is filed into the ordinary blog as a default.
2024-03-31 17:12:31 +05:30
4483822ef6
Preload homepage images for snappier on-hover display
First impressions are important!
2024-02-23 23:36:48 +05:30
a49bb8678d
Separate out homepage-specific <head> content
It's now wrapped in its won function so that we don't have to load
it on every page. Also, we now have a way for any page to specify
what header content they need ;)
2024-02-23 23:35:12 +05:30
6c0a9a1337
Use classes instead of ids for dynamic links
This makes them more reusable: for example, if we need two links
to be displaying the same image, we can just give them the
appropriate class instead of making a whole new style for each of
them.
2024-02-23 23:09:34 +05:30
55ecaa8626
Remove unnecessary comment 2024-02-23 22:32:50 +05:30
1f48057ccd
Add pictures for Thekambattu and blog
Also changed the "writing" to my Snipette profile so that I don't
have multiple links going to the same page. In future, maybe I'll
change that to my non-code blog or something (if I start one).
2024-02-23 22:31:34 +05:30
48fdcc56ee
Change build directory from "site" to "www"
That's so that it can easily be deployed to places like YunoHost
2024-02-20 18:26:36 +05:30
bac208e5eb
Add posts from my earlier blog and remove the dummy one
The posts had to be mildly modified to work here:

- Field names were changed to lowercase in the metadata
- Times were set to 00:00, because Haunt's parser required times
  and I had no clue what the actual times were supposed to be
- The Markdown poem had to be changed from using <del/> tags to
  ~strikethrough with a tilde~, because raw HTML blocks aren't
  supported by the default guile-commonmark parser. Strikethrough
  with tilde's isn't either, but I ended up creating my own fork
  which [does have the option](https://git.disroot.org/badrihippo/guile-strickenmark).
- The "Category" field had to be remove because the parsen was
  complaining about it :(

You can see the source for the original posts, if GitHub is
still around by the time you read this (or you have access to
their Arctic Vault or evil LLM memory or whatever) at the repo:

https://github.com/badrihippo/badrihippo.github.io
2024-02-20 18:01:19 +05:30
f2f5960dc9
Add dynamic cartoon on home page
Well, not exactly "dynamic", but it does change depending on which
link you hover on. I was hoping to do it with pure CSS, but
unfortunately :has() support is still lacking so I had to add a
JavaScript version for backward compatibility (making the CSS
redundant in the process, but I've added it anyway)
2024-02-19 17:45:55 +05:30
babe390adb
Implement layouts for collection and single post 2024-02-15 23:24:09 +05:30
4a3602b3e6
Make header item into link home
Clicking on it should take you somewhere%
2024-02-15 23:05:22 +05:30
d61e7157fa
Use em-dash in title instead of two ugly minuses
Typography FTW!
2024-02-15 23:04:26 +05:30
54ae7988dd
Centre-align footer content 2024-02-15 18:00:39 +05:30
b9efbd7e4d
Adjust homepage font and max width for content
Just wrappin' it a bit early to make it look better
2024-02-15 17:59:33 +05:30
374c3e7e5c
Add link to Prav in home/intro/bio page
That's just one page; I just wasn't sure what to call it! :P
2024-02-15 17:56:30 +05:30