Content from 2021-03

Hacking Coleslaw to show my custom front page

Published on:

Recently I’ve been introduced to the idea of seeing my blog as a garden instead of a personal news site. My blog is a digital garden, not a blog and How the Blog Broke the Web have inspired me to look at my website as a garden, with a blog as just a part of it. I really don’t like the idea of presenting my thoughts like a personal news site. I don’t think you’re that interested in me or my daily comings and goings.

What I do think you might be interested in is documents about how to do stuff that you might not know. What I’m interested in on this site is writing about things that I didn’t know before.

One thing I wanted to do for this was to move away from having my latest posts as the landing page of my website. I want something hand-crafted now. It’s going to be terrible, but I’m hoping it’ll be fun to mess around with it, make small incremental changes over time.

c0λ∈slaw doesn’t seem naturally set up for this at the moment. So after I’d set up my blog builds I wanted to extend them to include a custom front page. I looked for a way to have c0λ∈slaw do it, but it doesn’t seem possible built-in, or through a plug-in. So I hackily added a step to my build step in my .gitlab-ci which just moves a named generated page into index.html.

# ...

build:
  # ...
  script:
    - cd html && coleslaw
    - cd ..
    - cp img/* public/img/
    # A temporary measure to let me define my own front page.
    - mv public/front-page.html public/index.html
  # ...

This works because in c0λ∈slaw, luckily, the usual index.html is just a symlink to the first page of recent posts.

Maybe in the not-too-distant future I’ll remember to try and find the time to see if I can make a plugin for this.

This article is tagged as: meta

This blog covers archlinux, avandu, avandu-lua, c0λ∈slaw, cask, ci, clark, common-lisp, config, conkeror, diff, dispass, dispass.el, docker, docker-compose, editors, elisp, emacs, eshell, evil, exherbo, experiments, file-synchronization, games, git, github, gitlab, gnus, hla, html, javascript, lisp, lua, markam, meta, mpd, notion, org-mode, ox-coleslaw, projects, rc, sbcl, small-recent-posts, software, stumpwm, systemd, tasks, tekuti, testing, tips, todo, ttrss, utility, vagrant, vc, vim, visual, wdocker, wm, wordpress, yoshi-theme

View content from 2021-03, 2021-02, 2016-02, 2015-09, 2015-08, 2014-12, 2014-10, 2014-08, 2014-07, 2014-06, 2014-04, 2014-01, 2013-11, 2013-10, 2013-08, 2013-05, 2013-04, 2013-02, 2013-01