post template for specific tags is a copy of index.hbs, but does not masonry #1879
-
For my site I built a post template based on index.hbs to show specific posts, filtered by a tag. Everything works as expected except the fact, that the sub-post which shows the posts with the specific tag does not order the featured images as masonry as the homepage does :-( The only difference to the index.hbs of the homepage to the sub-post.hbs is the code suggested on https://getpublii.com/dev/how-to-display-posts-connected-with-a-specific-tag-name/ One can see the difference on these screenshots down below. An example is |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Check the head.hbs and footer.hbs files to find the masonry script. There must be a condition that limits the script's functionality to the index only. You need to extend this also to include it on the page and post or to a post-template. |
Beta Was this translation helpful? Give feedback.
-
Just in case anyone else has the same problem, I tried to extend my 'documentation': https://fluegge.net/ohnein/how-to-create-a-post-template-which-fetches-posts-by-tag/ |
Beta Was this translation helpful? Give feedback.
Check the head.hbs and footer.hbs files to find the masonry script. There must be a condition that limits the script's functionality to the index only. You need to extend this also to include it on the page and post or to a post-template.