Add copyright notice to images
This commit is contained in:
parent
9fd12d1069
commit
4abc52a274
|
@ -167,6 +167,7 @@ article {
|
|||
|
||||
& > .image {
|
||||
display: none;
|
||||
text-align: right;
|
||||
|
||||
@media screen and (min-width: $small) {
|
||||
display: block;
|
||||
|
|
|
@ -6,3 +6,4 @@ menu:
|
|||
---
|
||||
|
||||
![kontakt – Das Kulturfestival (Symbolbild)](/symbolbild.jpg)
|
||||
by [ChrisU](https://instagram.com/chrisu_photography)
|
||||
|
|
|
@ -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
|
||||
---
|
||||
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue