Excerpts in jekyll 

I’m probably putting way to much time into trying to make this blog look exactly like I want it to, but one issue I’ve had was to create the front page of the blog. I do want some of each blog post to be visible to anyone visiting the front page, so that it’s easy to get and idea on what that post is about. At the same time, having each whole post on the front page would be too much, and you’d have to scroll a lot if you’re just trying to get an overview the blog or trying to find something you’re interested in. The answer to this problem is excerpts, and this blog post is going to be about these (and also utilizes them).

What i initially tried to do was use the truncatewords filter in liquid, like so:

{{ post.content | truncatewords: 60 }}
Read more 

I made a blog! 

I have long been thinking about starting a technical blog. I often tinker with projects of different kinds, and it’d be nice to share some of those things with the rest of the world. And if noone reads it, it’s still good for me to document for myself what I’m doing. :) Can’t say it’s only going to be technical things though; I’ll cover any subject that intrests me enough to make a blog post about it.

It wasn’t obvious to me what sort of platform that I would choose, but I ended up hosting it on github pages, generating it with the help of Jekyll. I really do enjoy the very simple framework, since everything is basically text files that I keep track of in a git repository. This means all I really need is emacs, and this works very well for me with my newfound emacs love spacemacs. To publish, all I really need to do is just SPC g P u!

Read more