You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for a great theme!
It made deciding to migrate away from the Hashnode platform that much easier.
In the process of migration I stumbled on some issues and features that I wanted, which I fixed/implemented in a private fork.
If there's interest in some of them, I'd be happy to contribute any of them back to this repo.
All the features described below are implemented in my blog, which can be found here.
Issues
The RSS feed calls getCollection directly instead of getSortedPosts, which means that posts might get displayed out of order, and that drafts will be published is RSS.
The description in the RSS is not consistent with the preview: it doesn't use remarkPluginFrontmatter.description as a fallback.
The RSS feed doesn't limit the number of posts that get published, which might be a problem as the blog grows.
The prev/next variables for the "More Posts" section are logically reversed (doesn't really matter as is, but I stumbled on it when adding visual indication for it as per feature: add next and previous html buttons #21).
The scrolling logic for the TOC overtakes all internal links, including footnotes. The scrolling code doesn't preserve jump history, which I find a bit less ergonomic when jumping to footnotes (I often hit the "back" button to get back to the main text). In my fork I enabled smooth scrolling globally for the site, and removed the TOC logic. This works the same, but preserves history.
Features
Adding the post cover image (if available) to the post preview.
Embedding the post cover image into the social-cards (getting the image reference turned out surprisingly hacky, maybe I'm missing something)
Adjusting the frame and text size in social-cards to make them look more consistent with longer titles (see here for example).
Normalizing the images before embedding them in the card (e.g., convert to png, with a fixed size and compression).
A "blog series" feature (inspired by Hashnode), where if a blog is part of a series we show a preview of the whole series of posts instead of "More Posts" (see the bottom of the post here).
Adding a custom.css file imported from global.css as a placeholder for users to customize the theme.
Subtle prev/next indicators in "More Posts" (here, though I can imagine a nicer design for that).
Added an RSS button among the social buttons at the bottom.
Made the TOC optional (disabled by default in my case)
Interactive Features
The following interactive features were implemented with the help of alpine.js:
A "share" button (inspired by Hashnode), which pops up a menu with buttons to copy the post URL, or open a sharing link in other platforms.
Highlighting the current heading in the TOC while scrolling the page.
Hi,
Thanks for a great theme!
It made deciding to migrate away from the Hashnode platform that much easier.
In the process of migration I stumbled on some issues and features that I wanted, which I fixed/implemented in a private fork.
If there's interest in some of them, I'd be happy to contribute any of them back to this repo.
All the features described below are implemented in my blog, which can be found here.
Issues
getCollectiondirectly instead ofgetSortedPosts, which means that posts might get displayed out of order, and that drafts will be published is RSS.remarkPluginFrontmatter.descriptionas a fallback.Features
custom.cssfile imported fromglobal.cssas a placeholder for users to customize the theme.Interactive Features
The following interactive features were implemented with the help of alpine.js:
Thanks again!