CMS Development

benji_thecroc
Colaborador | Partner nivel Gold
Colaborador | Partner nivel Gold

Blog listing based on Tag

resolver

Hi,

 

I'm trying to setup five blog listing pages. Each page needs to pull blogs with a specific tag. In terms of structure we will have the most recent blog post seperate from the listing at the top of the page and then have the next six blogs underneath with pagination. This page has some indicators but it's not completely what I'm trying to implement - https://designers.hubspot.com/docs/hubl/blog-content-markup

 

Being new to HubL I'm not entirely sure how to execute this using the HubL language. If anyone can set me on the right direction. I guess I need a query to find most recent post and then a loop dictated by a specific tag and excluding the most recent post (worst comes to worst I can just 'display:none' the very first post in the loop via css)

 

Any help is greatly appreciated.

 

Thanks

0 Me gusta
2 Soluciones aceptadas
ndwilliams3
Solución
Asesor destacado

Blog listing based on Tag

resolver
0 Me gusta
ndwilliams3
Solución
Asesor destacado

Blog listing based on Tag

resolver

to exclude the first listing, just use an if statement with the loop.first or loop.index parameter.

https://designers.hubspot.com/docs/hubl/for-loops

 

Ver la solución en mensaje original publicado

0 Me gusta
3 Respuestas 3
roisinkirby
Equipo de producto de HubSpot
Equipo de producto de HubSpot

Blog listing based on Tag

resolver

Hey @benji_thecroc thanks for your question! @ndwilliams3 is this something you have any experience with?

0 Me gusta
ndwilliams3
Solución
Asesor destacado

Blog listing based on Tag

resolver
0 Me gusta
ndwilliams3
Solución
Asesor destacado

Blog listing based on Tag

resolver

to exclude the first listing, just use an if statement with the loop.first or loop.index parameter.

https://designers.hubspot.com/docs/hubl/for-loops

 

0 Me gusta