lpubsppop01's site
I worked on the blog feature of this site again today.
I implemented previous/next buttons by a naive method. At every load of one blog post data, it retrieve all Markdown file paths. It's not good, but it seems to be OK with SSG unless the build time increases significantly.
Hmm, to implement paging in SSG, the route would need to contain the page number?
Will the page URL be something like /blog/page-2, /blog/2023/page-3?
I set the timezone by adding an environmental variable TZ=Asia/Tokyo on the Gitpod settings page, and set 'YYYY-MM-DDTHH:mm:ssZ' to the momentFormat of vscode-auto-timestamp.
References:
I tried to move the light/dark mode button to the top bar component and use it in blog pages, but it didn't work as expected. It seems that sharing state requires a shared context.