AutoPhugo [ˌɔtoʊˈfjuːgəʊ] is a gallery/photoblog theme for Hugo that’s a little more automatic than Phugo. It is a port of HTML5 UP Multiverse template. Phugo was originally created by Aerohub, Pavel Kanyshev.
Change the title of your album if you wish, and set the filename of album’s cover thumbnail. The filename is relative to the album folder in assets, so if one of your images there is named dog_01.jpg you can just put dog_01.jpg in albumthumb to select it.
In addition to those frontmatter options, you can also specify metadata for some or all of your images. Do that by creating a resources array, with map elements. The maps specify the image they apply to with the src key, as src: album/image.jpg. You can then specify some or all of the following items: alt, phototitle, and description. Demonstration of this is in the exampleSite directory albums.
Building the Site
Run hugo to build your site. Output will be placed in the public directory. The original images will not be included - only the resized versions.
When building your site, hugo must build thumbnails and distribution-sized images. This process can take some time, especially if you have many pictures… It stores versions of the images in the resources directory, so it doesn’t have to redo the process every build.
Therefore - after adding an album your next build may take minutes. Future ones will be quicker.
If you try multiple sizes or quality settings for your images, you’ll start to amass large numbers of images in your resources directory. Once you settle on a quality and size you like you should consider deleting the resources and rebuilding to eliminate the unused images.
Regardless of the number of resources you have, Hugo will only deploy the ones actually used in a build. Unused image resources will not be deployed.
Comparison to Phugo
Unfortunately the original Phugo hasn’t been updated in a while, and was dropped from common theme lists. AutoPhugo implements the pull requests over on Phugo, causing it to work error-free on modern Hugo. Further, it sets standardized column layout (currently set at two, only), automatically builds albums based on files alone (Phugo required entering each filename as a shortcode), and automatically resizes photos for display and thumbnail.
The original template is released under the Creative Commons Attribution 3.0 License. Please keep the original attribution link when using for your own project.