Skip to content

How to create a post template which fetches posts by tag #1465

Answered by candidexmedia
3muchfun asked this question in Help
Discussion options

You must be logged in to vote

This might be the line to modify:

{{#each @website.contentStructure.posts}}

I did some digging, and you might have to use a different helper since you're no longer on the home page index. Give this article a look: https://getpublii.com/dev/how-to-display-posts-connected-with-a-specific-tag-name/


Sidenote: to properly format codeblocks in GitHub, use ``` at the top and bottom of the code. You can even specify the code language for highlighting in the top ```

For example:

| ```html
| paste code here
| ```

Replies: 2 comments 14 replies

Comment options

You must be logged in to vote
13 replies
@3muchfun
Comment options

@3muchfun
Comment options

@3muchfun
Comment options

@candidexmedia
Comment options

Answer selected by 3muchfun
@3muchfun
Comment options

@candidexmedia
Comment options

@3muchfun
Comment options

@candidexmedia
Comment options

Comment options

You must be logged in to vote
1 reply
@3muchfun
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants