You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gergelypolonkai-web-jekyll/content/blog/2019-11-05-moving-to-pelica...

2.9 KiB

Moving to Pelican

date

2019-11-05T07:05Z

status

published

I spent the last few days with moving this site from Jekyll to Pelican.

Story time!

It wasnt just a plain conversion, though. I also added a lot of my old stories, previously published on Medium (i will delete that account within a few days, so it doesnt worth linking.) These stories are published with their original date (i wrote most of theme long before Medium existed).

Why?

I left GitHub Pages for about a year or so now to host my site for myself. (Remember when i said goodbye to DigitalOcean? Well, it seems this goodbye was not forever…) My reasons were mainly about privacy, and the urge to do it myself; i probably wont overcome this latter one, like, ever. I want to make my hands dirty with stuff like this. I also believe in the web as the web, not as a centralised… thing.

Another reason was that i want to host this site not only on HTTP, but also on DAT (theres also a hash link) and IPFS. Its not impossible with Jekyll, its just easier for me because of Python.

And thus, we arrive to my final reason. Pelican may not have as many users as Jekyll does, but its written in Python. Its a big plus for me as i work with Python every day. Its easy for me to hack on the engine itself if i have to (and i had to several times during the migration).

Where did the comments go?

My site is a static site. It means theres no dynamic web engine behind it (it wouldnn actually work on DAT/IPFS, would it?) It is so for a long while now. As such, i used Disqus for comments but, again for privacy reasons, i have removed it completely. Also, i didnt have comments anyway.

What happened with the looks?

I didnt convert my previous theme to Pelican format. I might, in the future, as im not completely happy with the new layout. I like the new fonts, though, so maybe it will be a healthy merger of the two. The reason for not doing it instantly is because the old site relied heavily on external JavaScript and CSS files (like Bootstrap) which doesnt work well with Dat and IPFS (yes, most Dat browsers are capable of opening them from HTTP, but then whats the point of the whole conversion?) Now anyone can browse my site without an internet connection, and enjoy it in its full glory.

What is left?

I still want to do a lot of CSS tweaks, maybe converting the whole CSS part to SCSS/SASS (i suspect the built-in theme of Pelican was written in SASS, i just need to find the source). Nothing big, just to clean up the code.

I also want to make sure my site renders well with screen readers. I dont have much content, but i want it to make accessible for everyone. So keep an eye on the site, it might change soon!