diff --git a/content/intern/thanks.md b/content/intern/thanks.md new file mode 100644 index 0000000..7bfbab0 --- /dev/null +++ b/content/intern/thanks.md @@ -0,0 +1,20 @@ +--- +title: Danke! +slug: thanks +description: Vielen Dank! +draft: false +showmetadates: false +showmetalinks: false +aliases: +- /danke +image: + alt: Thank you! + choices: + - /intern/thanks/awesome-dog.jpg + - /intern/thanks/could-you-get-any-cooler.jpg + - /intern/thanks/t_hanks.jpg +--- + +{{< random_image >}} + +Super gut! diff --git a/layouts/shortcodes/random_image.html b/layouts/shortcodes/random_image.html new file mode 100644 index 0000000..01c8281 --- /dev/null +++ b/layouts/shortcodes/random_image.html @@ -0,0 +1,21 @@ +{{- $choices := $.Page.Param "image.choices" }} +{{- if not $choices }} +{{- errorf "missing value for 'image.choices': %s" .Position }} +{{- end }} +{{- $alt := default "random image" ($.Page.Param "image.alt") }} +{{- $id := sha256 now.UnixNano }} +

+ +

+ diff --git a/static/intern/thanks/awesome-dog.jpg b/static/intern/thanks/awesome-dog.jpg new file mode 100644 index 0000000..5e12f48 Binary files /dev/null and b/static/intern/thanks/awesome-dog.jpg differ diff --git a/static/intern/thanks/could-you-get-any-cooler.jpg b/static/intern/thanks/could-you-get-any-cooler.jpg new file mode 100644 index 0000000..239bb05 Binary files /dev/null and b/static/intern/thanks/could-you-get-any-cooler.jpg differ diff --git a/static/intern/thanks/t_hanks.jpg b/static/intern/thanks/t_hanks.jpg new file mode 100644 index 0000000..913aa85 Binary files /dev/null and b/static/intern/thanks/t_hanks.jpg differ