fr.ench.info

Articles on “nanoc”

Image Gallery in Nanoc

Posted on ,

My image gallery for screenies is a custom data source for Nanoc which generates items for each JSON file located in the gallery directory. This makes it easy for me to grab the images rather than creating an item for each image by hand. I created a ruby script that grabs all images from my Dropbox account since it is where all my desktop screenshots are stored. The script then generates a JSON file with each image in an entry { 'image': '...', 'thumbnail': '...' }. This is my first time messing around with the Dropbox API too. The API is well documented so I just had to follow the tutoria...

Migrating to Nanoc

Posted on ,

Recently, I've migrated my blog to Nanoc. I think there's too much hacking involved if you want to extend Jekyll. Or perhaps I didn't just read enough documentation about Jekyll. But anyway, I've already made the switch. What's done is done. The first thing I did was to convert my markdown files. This wasn't really a problem since both Jekyll and Nanoc almost have the same format for the markdown files. Only difference I think would be the kind and created_at attributes so to be able to use the Blogging helper for Nanoc. Since I am trying to learn Ruby, I decided to create a script to mak...