Ognjen Regoje bio photo

MY NAME IS
Ognjen Regoje
BUT YOU CAN CALL ME OGGY


I make things that run on the web (mostly).
More /ABOUT me.

me@ognjen.io Twitter LinkedIn Instagram Github

#jekyll

May 11, 2021

Simple related posts for Jekyll

When looking up Jekyll related posts patterns I found a few automated approaches: Use the related_posts that’s built in The docs for related_posts indicate that it shoul... (697)

May 11, 2021

Generate JSON files in Jekyll

I must admin I got nerd sniped by this question on Reddit asking how to generate JSON in Jekyll but I’m happy to say that it’s actually relatively simple.Here’re the steps with ... (416)

May 11, 2021

Excluding content from a Jekyll post

There's a more complete version of this post. Since I’ve restructured my blog to effectively publish the files that are my notes at the same time I’ve realized that somet... (220)

March 16, 2021

How to run your own link shortener on Jekyll

I wanted to have the ability to use short links to external resources. I also wanted to be able to change the targets of the links.I suppose that it would have been possible wit... (440)

March 15, 2021

Jekyll Combining an External Folder into Posts

There's a more complete version of this post. I use markdown to take notes. Previously, I wanted make a link to that folder and publish only some of those notes using Jek... (1179)

March 14, 2021

Publishing a linked folder in Jekyll

There's a more complete version of this post. I use markdown to take notes. I wanted to publish a part of those notes using Jekyll.The obvious way to do this is to just c... (879)

March 12, 2021

Generate PDF of Jekyll Page

I wanted to generate a PDF of a page rendered in Jekyll.I found a gem called jekyll-pdf but it seems to have been abandoned.The alternative I came up with was to add a hook that... (241)

March 12, 2021

Flatten Plugin for Jekyll

I wanted to be able to get a list of categories from a group of posts. That’s easy enough to do using the map liquid filter:{{posts | map: 'categories'}}The result is an array o... (214)

March 12, 2021

Compact Plugin for Jekyll (where not nil)

I wanted to generate an index of metadata from posts in Jekyll. The field that I wanted to index wasn’t compulsory, it was an additional one that I sometimes set, and sometimes ... (249)

March 01, 2021

Schedule Jekyll posts using cron and rsync

This is a static site generated using Jekyll. It’s also hosted on one of my servers rather then on Git(Lab/Hub).I deploy it using a rsync to copy the _site directory to the serv... (566)

March 31, 2017

One line deployment for Jekyll sites

A great way to deploy a Jekyll site using just rsync. First, build (jekyll b) the site locally and then rsync the _site folder:rsync -av -e 'ssh -i ~/.ssh/id_passwordless_rsa' -... (171)