Blog
The blog
template shows a blog collection page, listing all blog posts in the specified blog collection.
Location
The blog
template is in the theme's templates
directory:
└── theme
├── templates
| ...
| ├── blog.json
| ...
...
Content
You should include the blog object in the blog
template or within a section of it.
Blog Object
You can access the blog object to show the blog collection list.
Usage
When using the blog
template, remember to filter articles by tag.
When using JSON templates, ensure that all HTML or Handlebars code is included within the sections referenced by the template.
Filter Articles by Tag
To create a smaller subset of blog posts by filtering them by tag, add /tagged/[tag-handle]
to the blog URL. Replace [tag-handle]
with the specific tag assigned to the articles you want to display.
For instance, to show only articles tagged as fashion
in the styles
blog, you can use this URL structure:
https://my-store.myshopline.com/blogs/styles/tagged/fashion
Error loading component.