Replies: 3 comments 3 replies
-
So first of all, I don't understand what you're trying to achieve. Can't you use the builtin method of displaying a collection on the homepage? https://tomfran.github.io/typo-wiki/setup/#site-config
If you want to add two collections, I would suggest you to simply duplicate this code inside home.html, hardcoding your collections: https://github.com/tomfran/typo/blob/main/layouts/_default/home.html#L37-L59 If you need to modify what you want to show, for example the tags, and stuff like that, simply modify the existing code that renders the list. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I can't try right now, but it should work with no problems. I suggest to take a clean version of Typo and retry what you're doing, perhaps you introduced some changes that modify the normal behavior. Let me know if this still doesn't work, as there might be a problem then. |
Beta Was this translation helpful? Give feedback.
-
I wanted to add a project section on the homepage similar to posts and for that i added two files:
following the structure included for posts (for sample).
I also included other parameters for metadata like techStack, githubURL, liveDemo.
The projects are getting rendered correctly on the
/projects
page but on the home page it is rendering the content of the/posts
folder like its title, subtitle and tags.I don't know what am i missing here. Can you guys help me?
The content directory →
I have also updated the home.html to include projects
Beta Was this translation helpful? Give feedback.
All reactions