The same library got me again😑
Quick take:
I added a project page where I can showcase all projects. I also added a blog page where I can show the development process of my projects and also write about whatever interests me. Finally I added a very simple gallery page that hosts some pictures.
The projects and blogs both have buttons to ‘read more’. And thats exactly where it became dificult…
For the most part, making these pages was fairly easy, I made it so I can just add entries to a json file and there appears a new card with all of the article/project info.
The difficult part began when I wanted to link a markdown file to these json files so that I can easily write in Google docs and just export as a markdown.
The big problem was that because of the libary I am using (Swup) the text inside the markdown files wasn’t being rendered.
I tried a bunch of solutions but the one that worked was to tell Swup not to care about the link to an article/project (eg. dont perform a transition). This way the browser performes a hard reset of the page.
The only problem that was left is that then the header and footer dont display…
Yeah, I just hardcoded them in everywhere😅. It’s not beautifull and I’m not proud of it, but it is a fix.
And that’s the most important!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.