Mtt
Mtt

@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.

|
Embed
pratik
pratik

@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.

|
Embed
pratik
pratik

@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.

|
Embed
Mtt
Mtt

@pratik Yes. And you’ll need something in the layouts folder as well I believe. Can still use the partials though.

|
Embed
pratik
pratik

@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.

|
Embed
Mtt
Mtt

@pratik Yeah, I would do the same. I should’ve clarified that from the beginning.

|
Embed
JohnPhilpin
JohnPhilpin

@Mtt @pratik saving this thread for later - Thankyou

|
Embed
pratik
pratik

@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?

|
Embed
Mtt
Mtt

@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”.

|
Embed
Mtt
Mtt

@pratik If that doesn’t work, I can take a closer look tomorrow.

|
Embed
pratik
pratik

@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.

|
Embed
pratik
pratik

@Mtt Got it to work. It was an errant {{ end }} in the template.

|
Embed
Mtt
Mtt

@pratik Nice job!

|
Embed
pratik
pratik

@Mtt It's live now but also in progress.

|
Embed
Mtt
Mtt

@pratik Perfect!

|
Embed
Mtt
Mtt

@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.

|
Embed
Mtt
Mtt

@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.

  1. There are some legacy includes and js files. They aren't in use, but I may use them again in the future. Deleting them won't break anything.
  2. I set it up so when you put a post in a category, it adds a 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.
  3. The global Header, global Footer, and Archive page are hard coded. So my navigation menu does NOT automatically pull from the Micro.blog Pages settings.
  4. You'll need to modify parts of 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.

|
Embed
Mtt
Mtt

@manuel How's it going for you? I see you've started. Looks like you're sorting through a lot of the hard coded areas. Let me know if any issues.

|
Embed