The final thing I'd like to sort before going online with my blog is the following.
I've written a filter for including images with a lightbox plugin. If I write in my markdown something like:
%%[t2, title of pic]
the filter understands it needs to wrap t2.jpg in a lightbox div, use 'title of pic' as the title and that it needs to link to p2.jpg as its popup image.
However, the thing I struggle with is to include the directory where the pictures are stored. I store them in a folder based on the date: YYYYMMDD.
I've accomplished this by editing post.py and adding in the __parse function:
# Add date as html comment so that it can be used for image directories
image_dir = '\n<!--' + self.date.strftime("%Y%m%d") + '-->\n'
post_src = content_parts + image_dir
This way I can use the filter to get the directory name for the correct date.
Since I didn't want to change the blogofile source, I've copied the _controllers/blog directory to my blog _controller directory and made the modification there.
I don't find this a very elegant solution and was wondering if there is a cleaner way of doing this.