Stan's blog Thanks for stopping by.
Posts with the tag Blogging:

Adding syntax highlighting to Ghost with highlight.js

After my recent relooking, I finally took the time to add syntax highlighting for code snippets.

While Ghost doesn’t support code syntax highlighting out the box, it lays down the groundwork for it.

How to migrate Ghost (and Isso) to dated permalinks

I’ve never used date in my blog posts URLs because I thought it looked nicer and was better for SEO.

Recently, I changed my mind and I find it better to have the date in the permalink. Not necessarily as precise as to put the day, but as least the year and month.

What I want to achieve is this:

https://angristan.xyz/understand-k8s/

->

https://angristan.xyz/2020/01/understand-k8s/

Ghost once had a toggle in the settings to enable dated permalinks, but it’s gone now and it’s off by default. However, it still does support it thanks to dynamic routing, which allows creating routes however you like through a YAML file.

Migrating comments from Isso to Disqus

I’ve been using Isso since I launched this blog and it’s been working very well but I still much prefer the Disqus experience.

I didn’t find anything on the web about migrating from Isso to Disqus, which is to be expected. So I made my own tool, and I’m happy to report it works!

Isso stores comments in an SQLite database. To import our comments on Disqus, we will have to somehow generate a XML file that matches their custom XML format, which is based on the WXR (WordPress eXtended RSS) schema.

2 years of blogging in English

Just a quick note to mark the 2 years of this blog.

Well, it was four days ago, but I missed it. But who cares, right?

I’ve written much less than I expected this past year, partly because I’ve been very busy with school (and didn’t get a summer break), but also because for the second part of the year I went abroad.

Living and studying in South Korea was a life-changing experience. I am now back in France but the memories of that exchange semester are still so fresh and yet so distant.

The first year of this blog

I’m 3 weeks late but I wanted to make this post to mark the 1st anniversary of this blog.

Many of my readers speak french and probably know me from my french blog, which I opened four and a half years ago. As I grew up, my digital environment became more and more english-speaking. I have gotten better at english although I’m still lacking a lot in my writing.

On the internet, I mostly read, listen and watch english content, and interact with people in english most of the time. It did not really make sense to keep a blog in french while I was using english the rest of the time on social networks. That’s why this blog was born one year ago and so far I’m satisfied with how it turned out. I wrote 44 posts, I wish I wrote more but it’s actually not that bad, it’s nearly one post per week! Let’s say that for its second year, I’ll try to give this blog 52 posts, including this one!

Migrating Ghost to Docker

In my first post I said I installed Ghost with ghost-cli, the classic way. I did also say that I wanted to run it in Docker but that I didn’t know Docker enough to do it. In fact, I tried to set up Ghost in Docker a few times while being bored at school, but I didn’t succeed, so it ended up like it is now.

For the past week though, I’ve been learning and using Docker a lot, and finally moved a dozen services into containers.

Migrating Ghost from MySQL to SQLite

In my first post, I said that I set up my Ghost blog with a MySQL database.

Why is that? Because ghost-cli wants you to use a MySQL database and I happened to have a MariaDB server on my VM and so I just added another database to it

SQLite is a better choice

However, Ghost supports SQlite as a storage backend. In fact, SQLite can handle more load than this blog could ever have, considering I use Nginx cache on my reverse proxy. In the end, the database is only used when I do stuff in the back-office, which is very light on the database.

My custom Ghost theme

Note

A new blog

Here we go!

Who am I?

I’m Stanislas, a French 18 years old tech enthusiast.

My areas of interest are:

  • Linux and sysadmin stuff
  • Free and Open Source software
  • Security and Privacy
  • Anime and other weeb stuff

I currently studying at ESGI, a French IT school, and I work at a French web hosting company.

More on the about page

Why this blog?

I run a French blog, angristan.fr, since 2014, and over the years I began to read and listen to more and more English resources, and by now I think it’s my main language, except that I still speak French IRL, and I’m not really fluent in terms of writing and speaking. As such, I’ll ask you to bear with me as I’ll probably do some (many?) mistakes.