# Simple tool to embed Flickr images by album

**URL:** <https://discourse.gohugo.io/t/simple-tool-to-embed-flickr-images-by-album/1757>\
**Category:** tips & tricks\
**Created:** [September 22, 2015, 5:49am UTC](https://discourse.gohugo.io/t/simple-tool-to-embed-flickr-images-by-album/1757 "2015-09-22T05:49:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhilm](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nikhilm/32/700_2.png) [@nikhilm](https://discourse.gohugo.io/u/nikhilm)\
**Post date:** [September 22, 2015, 5:49am UTC](https://discourse.gohugo.io/t/simple-tool-to-embed-flickr-images-by-album/1757/1 "2015-09-22T05:49:05Z")

</div>

Hi everyone,

I’ve been tinkering with Hugo for a travel/adventure blog.  
I wanted an easy way to embed images from Flickr. The workflow I envisioned was

1. Use some photo app to upload images to flickr. One album per post.
2. Use the figure shortcode from the twentyfourteen theme to embed images.
3. Use the flickr api to generate the shortcode for every image in the album
4. Put the shortcodes wherever I want to in the post.

I wrote a quick and dirty tool + shortcode to retrieve all the images in an album and print out the shortcode with the title and caption filled in.

> **[nikhilm/flickr-hugo-embed](https://github.com/nikhilm/flickr-hugo-embed)**
>
> flickr-hugo-embed - Print shortcodes to embed a set of images from an album on Flickr into Hugo

I figured it might be useful to others.
