Site Design 2018-04-25
In this post:
- I talk myself most of the way through getting the new theme into a usable state.
I'm not working with the best of buffers here, so this might be a little rushed. Right now I'm trying to focus on adding navigation links to the header. The basic idea is, given the list of articles by category, filter to the current category, then find the adjacent articles.
So, first, filter the "categories" variable to things where the first element matches the current category. It looks like this might need custom settings code. ... I feel like Pelican has some kind of horrible impedance mismatch that I'm failing to hit only because I'm too stubborn to give up my NIH feelings.
Well, I gave them up enough to copy a solution off GitHub, but not enough that I didn't rewrite it several times. I've got a proof of concept for the navigation links now. I think really what I need to do now is to survey all of the pages and see what needs touching up.
Let's just put the entire set of templates in here...
- archives.html: single page, all articles in a definition list
- article.html: footer is above the post? Need some kind of indicator for indicating lack of nav links, and category. Like "next in [blah]"
- author.html: list of blog posts. I don't really care about it right now
- authors.html: list of authors (me) along with post counts
- base.html: doesn't do some of the links
- categories.html: list of categories
- index.html: blog posts in summary form only
- page.html: it's fine
- pagination.html
- period_archives.html: this is a definition list of articles, and I don't seem to be using it? I'll think about messing with this later, but I don't see anything urgent.
- tag.html: this looks... broken? I'll look into it later.
- tags.html: list of tags, along with post counts
- translations.html
To my mind, solving niggles with the article template is the highest priority. Changes to the article template require the most reuploads.
"But Max, the website fits on a floppy disk right now!"
Ssssh.
Okay, here are the priorities:
- Stop generating author pages, so I don't feel like thinking about them.
- That has a setting twiddle. Make the theme respect it.
- Clean up the nav link display.
- Put things in the right order.
- Get social links and blogroll into the footer area, above the Neocities badge/banner/whatever
- The Neocities badge/banner/whatever should go on the right.
Once I've done everything through the second-last item on that list, I'll be ready to roll out the new theme.
... Turns out the last one was pretty easy to get sort of working, so now it's the rest of it.
Okay, I've got most of the stuff I wanted done. Maybe there are a few tweaks left, but I'm going to focus on styles now. And maybe host local copies of the fonts while I'm in this area.
I think there are some lingering style issues, but the code is very close. I still didn't fix the tags page, but I'm not even sure how to access that. I'm going to sleep on this, and see what other changes I want to make.
Next week, in addition to necessary changes, I should probably toss in some chunky horizontal lines for the AESTHETIC.