1bl4z3r / hermit-V2

Continuing Hermit's legacy to be minimal and fast theme
https://1bl4z3r.github.io/hermit-V2/
MIT License
101 stars 45 forks source link

[Question] [How-To] Apply layout to the pages which are not in `/content/posts` #80

Closed arampatzis closed 2 months ago

arampatzis commented 2 months ago

Hi @1bl4z3r. Thank you for maintaining an beautiful theme.

As the title says, the description does not appear in pages that are located in a folder with a name different than posts.

Is this the intended behaviour? Is there a workaround?

Thank you for your time.

1bl4z3r commented 2 months ago

Hi @arampatzis,

It looks like that is the intended behavior, as it was untouched from original project. Also, I didn't account for utilizing separate directory for pages.

There is always a workaround, that requires you to get your hands dirty with layout templates.

Or,

Gimme this weekend, I will add support for customized folder structure for pages.

1bl4z3r commented 2 months ago

Hi @arampatzis,

It's me again.

I have checked thoroughly, and just wanted to let you know you can absolutely do as you have asked.

Some Mandatory General Knowledge:

So, how to apply same layout to different pages that doesn't satisfy the lookup order?

You can do that in one of two ways (after adding your pages to /content/<YOUR_FOLDER_NAME>):

type: posts

OR

type = 'posts'

If you are getting some weird issues, let me know in this issue thread. I will look into this. I'm keeping this Issue as open

arampatzis commented 2 months ago

Thank you @1bl4z3r for the fast reply. I tried the second solution you provided and it works perfectly! Thanks!