Add copyright notice to images

This commit is contained in:
Luca 2023-03-11 15:04:07 +01:00
parent 9fd12d1069
commit 4abc52a274
4 changed files with 10 additions and 2 deletions

View File

@ -167,6 +167,7 @@ article {
& > .image {
display: none;
text-align: right;
@media screen and (min-width: $small) {
display: block;

View File

@ -6,3 +6,4 @@ menu:
---
![kontakt Das Kulturfestival (Symbolbild)](/symbolbild.jpg)
by [ChrisU](https://instagram.com/chrisu_photography)

View File

@ -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
---

View File

@ -4,7 +4,10 @@
{{ with .Resources.GetMatch "image.jpg" }}
<article>
<section class="text">{{ $textContent }}</section>
<section class="image"><img alt="{{ .Title }}" src="{{ .RelPermalink }}"></section>
<section class="image">
<img alt="{{ .Title }}" src="{{ .RelPermalink }}">
by <a href="{{ .Params.copyright_url }}"{{ if hasPrefix .Params.copyright_url "https://" }} target="_blank"{{ end }}>{{ .Params.copyright }}</a>
</section>
</article>
{{ else }}
{{ .Content }}