hugo-internet-weblog/layouts/partials/custom_image_handler.html
Ghyslain Leclerc 8262ab6f2d Made the theme compatible with Hugo 0.18.
At least in Hugo 0.18 (I don't know for prior versions), the variables in the
templates are all set to lowercase even if they are not lowercase in the
config file.

For instance, for a configuration as follows:
[Author]
   Handle = "bla"
the variable must be used as .Site.Author.handle and not .Site.Author.Handle.
2016-12-28 21:17:35 -05:00

11 lines
396 B
HTML

<script type="text/javascript">
// @summary: jquery implementation
$(function() {
// @summary: Use the author's flickr ID to load images from the public flickr feed
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id={{ .Site.Author.flickrid }}&format=json&jsoncallback=?", function(data) {
iweblog.application.displayImages(data, 8);
});
});
</script>