Add copyright notice to images
This commit is contained in:
parent
9fd12d1069
commit
4abc52a274
|
@ -167,6 +167,7 @@ article {
|
||||||
|
|
||||||
& > .image {
|
& > .image {
|
||||||
display: none;
|
display: none;
|
||||||
|
text-align: right;
|
||||||
|
|
||||||
@media screen and (min-width: $small) {
|
@media screen and (min-width: $small) {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -6,3 +6,4 @@ menu:
|
||||||
---
|
---
|
||||||
|
|
||||||
![kontakt – Das Kulturfestival (Symbolbild)](/symbolbild.jpg)
|
![kontakt – Das Kulturfestival (Symbolbild)](/symbolbild.jpg)
|
||||||
|
by [ChrisU](https://instagram.com/chrisu_photography)
|
||||||
|
|
|
@ -5,7 +5,10 @@ menu:
|
||||||
footer:
|
footer:
|
||||||
weight: 20
|
weight: 20
|
||||||
resources:
|
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
|
title: Foto eines "grandMA"-Lichtpults mit blauem Licht im Hintergrund
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,10 @@
|
||||||
{{ with .Resources.GetMatch "image.jpg" }}
|
{{ with .Resources.GetMatch "image.jpg" }}
|
||||||
<article>
|
<article>
|
||||||
<section class="text">{{ $textContent }}</section>
|
<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>
|
</article>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
Loading…
Reference in New Issue