To set up a reasonable content structure for my blog.
In my old Octopress blog, images and posts were placed
source/_posts folders respectively.
They were so far apart that I needed to use copy and paste the URL’s
so as to get them right. As the size of the blog grew, I could hardly
retrieve an image without first listing the files in the post image
folder. This significantly reduced the efficiency of blog writing.
In my hometown, people take efficiency seriously.
At first, I followed Jura’s advice and put all post images as the site’s static contents.
![Example image alt text](/static/path-to-image.png)
However, that didn’t address the above problem.
Thanks to Regis Philibert’s article on Hugo page resources, I’ve now adopted Hugo’s leaf bundle structure for holding the illustrations with each post. An image can be added by its relative path. This greatly simplifies the editing process.
convert image.jpg -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace RGB image_converted.jpg
-quality 60 for largest photos in
my post about fan cleaning. Despite the reduced quality, the
display is still great.