4 ms·
Create a Static Website Generator
I use Markdown (md) to document a lot of things in my daily life, and I want to create a blog. However, I prefer not to use platforms like Hugo, GitHub Pages, or WordPress. Instead, I plan to use Python to convert my Markdown files into HTML and deploy the generated site on Cloudflare Pages.
While this approach might be time-consuming, I enjoy the process of creating something on my own and improving it step by step.
Now that the blog is running smoothly, I just need to refine a few details. After that, I'll publish the code on GitHub.
- Tanishmittal 2y agoBut what about the UI?
- chrisding 2y agoI referred to this template (https://tailwindui.com/templates/spotlight https://tailwindui.com/templates/spotlight), which is built with React and Next.js. However, I didn't want to load too many third-party frameworks, so I recreated the template using just HTML and JavaScript. Here’s the current result: https://chrisding.xyz/ https://chrisding.xyz/.
- jjjbokma 2y agoI did the same :-) and also in Python (and there is a Perl version, too). The code is available at GitHub as [tumblelog](https://github.com/john-bokma/tumblelog https://github.com/john-bokma/tumblelog). The site is generate from a single Markdown file with extra directives is called [Plurrrr](https://plurrrr.com/ https://plurrrr.com/).
- chrisding 2y agoI’ve browsed Plurrrr and tumblelogs. You've been writing tumblelogs for many years, and while there are plenty of static site generators available in the market, creating one myself feels much more exciting. This is something I’ve created—it’s still far from perfect, but I’ll keep improving it step by step. https://github.com/chris1ding1/markdown-website-generator https://github.com/chris1ding1/markdown-website-generator
- chrisding 2y agoI published to [PyPI - md star](https://pypi.org/project/md-star/ https://pypi.org/project/md-star/). [GitHub - md star](https://github.com/chris1ding1/md-star https://github.com/chris1ding1/md-star)