Hello, Ghost community!
I’m trying to make both blog and portfolio website combined.
What I want to do here is make portfolio dedicated page.
My question is if it is possible to give loops different HTML structures based on tags.
For example, posts with “portfolio” tag has loop A while other posts
loop B, general design.
Here’s my idea;
- make “custom-portfolio.hbs” to make a portfolio page which only displays the posts with “portfolio” tags.
- Edit loop.hbs and add condition by using {{#if tag=“portfolio”}}
- Edit default.hbs and add condition {{#if tag=“portfolio”}}
But if you know the smarter way to make it happen, I would love to hear some suggestions!
I know this can be more WordPress type of thing, but I’m a bit too fed up with fixing stuff on each update, turning the plugins on and off to troubleshoot. So it would be great if I can have potfolio+blog site on Ghost.