Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GDGToulouse/devfest-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/picture.html')
-rw-r--r--layouts/shortcodes/picture.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/shortcodes/picture.html b/layouts/shortcodes/picture.html
new file mode 100644
index 0000000..fca9ba1
--- /dev/null
+++ b/layouts/shortcodes/picture.html
@@ -0,0 +1,6 @@
+{{ $_hugo_config := `{ "version": 1 }` }}
+{{ $img := .Get "img" }}
+{{ $class := .Get "class" }}
+{{ $widths := .Get "widths" }}
+
+{{ partial "picture" (dict "img" $img "class" $class "widths" $widths) }} \ No newline at end of file