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.
11 lines
396 B
HTML
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>
|