Skip to content

How to show articles in card view as shown in Samples and Docs #1086

Answered by nunocoracao
sardarms asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @sardarms this will work but there is a more streamlined way if you want to enable it for everything.
In your params.toml file there are separate sections for different areas of the site. All of them have their own cardView value.

Check this page - https://blowfish.page/docs/configuration/#theme-parameters
Specifically:
Lists - https://blowfish.page/docs/configuration/#list
Taxonomy - https://blowfish.page/docs/configuration/#taxonomy
Term - https://blowfish.page/docs/configuration/#term
Homepage - https://blowfish.page/docs/configuration/#homepage

This allows users to chose how to render content in different ways across the site.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nunocoracao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants