feat(exampleSite): use image from hugo-mods/examples

This commit is contained in:
kdevo
2021-09-18 12:19:41 +02:00
parent 3cfc4e6945
commit 2eba2d1d3b
5 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -41,10 +41,10 @@
<body>
<!-- Most basic usage with single parameter that can either be a filename or resource: -->
{{ partial "lazyimg" "alps.jpg" }}
{{ partial "lazyimg" "images/alps.jpg" }}
<!-- Here we call the partial by passing a param dict that overrides the site's params: -->
{{ partial "lazyimg" (dict "img" "alps.jpg" "class" "my-fancy-class" "alt" "This image shows the alps" "resizer" "simple") }}
{{ partial "lazyimg" (dict "img" "images/alps.jpg" "class" "my-fancy-class" "alt" "This image shows the alps" "resizer" "simple") }}
{{ $images := (partial "images" .) }}
{{ range $images -}}