How to show articles in card view as shown in Samples and Docs #1086
-
Sorry for the very basic question, but I am unable to have card view all over the sites like https://blowfish.page/samples/ and https://blowfish.page/docs/ But I am not sure what to change. I have tried to enable cardView on the params. Then on _index.md. But still the articles are listed as line with a cropped image. Can anyone please help? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I figured it out. I used the below code in the _index.md and it solved the issue.
|
Beta Was this translation helpful? Give feedback.
-
Hello @sardarms this will work but there is a more streamlined way if you want to enable it for everything. Check this page - https://blowfish.page/docs/configuration/#theme-parameters This allows users to chose how to render content in different ways across the site. |
Beta Was this translation helpful? Give feedback.
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.