@pratik Here is the code for setting up the Pinboard, Letterboxd, and Books sections on my home page. Let me know if you have any questions; I don't mind helping.
@pratik Here is the code for setting up the Pinboard, Letterboxd, and Books sections on my home page. Let me know if you have any questions; I don't mind helping.
@Mtt Awesome! Busy with meetings today but will dabble with it after work. I plan to set it up for the Now page as you’ve done for the home page.
@Mtt Looking into this now. Considering I'm going to add this to my /now page, how do I go about adding these files to my existing theme? Based on some research and Qs I have been asking, I've to create a subfolder call 'Now' within /contents, right? Hugo's directory structure still confuses me.
@pratik Yes. And you’ll need something in the layouts folder as well I believe. Can still use the partials though.
@Mtt Got it. I'm thinking adding the bookshelf, movies, pinboard to the partials
folder but not the head, header
, and footer
coz I'll use my theme's. Then add the code in your index.html
to a now.html
instead. Modified to my feeds, of course.
@Mtt Tearing my hair out but somehow can't replicate your code for showing only posts from the "Now" category with my theme's CSS. Here's my current Now page code that's working.
Where do I insert the first two lines from the code that you shared in my code?
@pratik I’m looking at it from my phone, so I may be overlooking something. But from what I can tell, you need to remove everything below and replace it with the now
code. This does assume your category name is in fact “now”.
@Mtt Tomorrow is fine. No rush.
And yup, my category is "Now". I started with that and tried replacing your CSS classes with my own (post-title, post-date
, etc.) but I guess I'm not closing something. Also, I removed the condition for the summary
condition coz I want to displaying the full post even if it has a title.
@manuel I'm ok with that, just be aware that it breaks from a few micro.blog conventions. It's kind of a playground for me. But feel free to ask questions.
@manuel Alright, I did do some major tweaking today, but now is a good point (won't be doing anymore today). If you like it as it currently is, it's solid. But a few points.
includes
and js
files. They aren't in use, but I may use them again in the future. Deleting them won't break anything.CSS class
to that element in the main feed. This allows you to style posts within the post list differently depending on the category. You'll obviously have different categories than me, so if you choose to use that feature, you'll need to update your CSS
to reflect that. This part is optional, but I use M.b's category filters to auto apply all categories.partials/head.html
to apply to you.If you decide to go for it, I don't mind helping. I'm forever tweaking things, but now is a good point to start your own version and go your route.