Micro.blog

Moondeer
Moondeer

@manton So I decided to go through the web client's Pages interface to instead of my custom them to add a bookshelf page. It works flawlessly (I managed to hide the generated h1 via CSS). So I now have 12 custom theme pages and the single bookshelf page. I want them all in the menu. They are all in the menu. The one knit I would pick would be to allow for weight to be entered alongside the toggle for menu inclusion within the web client (or official … or however you wanna identifying what I'm talking about). In my custom theme I added menu entries in the head of my custom pages. I assigned weights so I could control the menu order. Where I able to assign a weight for this new bookshelf page, I could mix it into the navigation list wherever I liked.

Moondeer
Moondeer

@Moondeer the typos up there are borderline epic

manton
manton

@Moondeer Good feedback, thanks! Glad to see bookshelves being used. I'd love to do more with these.

Moondeer
Moondeer

@manton Is there an API for accessing the bookshelves from a theme? I would have liked to have had a single page for showing the three defaults have-read, currently-reading, and want-to-read.

manton
manton

@Moondeer There's a way to access the bookshelf data via a Hugo theme... There's an example in the help here. Does that do what you want?

Moondeer
Moondeer

@manton thanks, I'll have a look when I feel like playing around

Moondeer
Moondeer

@Manton That was totally what I was looking for, the result: moondeer.blog/bookshelf...

manton
manton

@Moondeer Very cool! That looks great.