From 4abc52a274e8b3565f5536c3471388a3c759ff63 Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 11 Mar 2023 15:04:07 +0100 Subject: [PATCH] Add copyright notice to images --- assets/style.scss | 1 + content/_index.md | 1 + content/pages/datenschutz/index.md | 5 ++++- layouts/_default/single.html | 5 ++++- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/assets/style.scss b/assets/style.scss index 2dc75ae..f92fe3f 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -167,6 +167,7 @@ article { & > .image { display: none; + text-align: right; @media screen and (min-width: $small) { display: block; diff --git a/content/_index.md b/content/_index.md index 74f2c24..24b4994 100644 --- a/content/_index.md +++ b/content/_index.md @@ -6,3 +6,4 @@ menu: --- ![kontakt – Das Kulturfestival (Symbolbild)](/symbolbild.jpg) +by [ChrisU](https://instagram.com/chrisu_photography) diff --git a/content/pages/datenschutz/index.md b/content/pages/datenschutz/index.md index 88c086b..300680d 100644 --- a/content/pages/datenschutz/index.md +++ b/content/pages/datenschutz/index.md @@ -5,7 +5,10 @@ menu: footer: weight: 20 resources: - - src: image.jpg + - params: + copyright: ChrisU + copyright_url: https://instagram.com/chrisu_photography + src: image.jpg title: Foto eines "grandMA"-Lichtpults mit blauem Licht im Hintergrund --- diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b6d2c0f..3764a49 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,7 +4,10 @@ {{ with .Resources.GetMatch "image.jpg" }}
{{ $textContent }}
-
{{ .Title }}
+
+ {{ .Title }} + by {{ .Params.copyright }} +
{{ else }} {{ .Content }}