Fix single page layout

This commit is contained in:
Luca 2023-03-11 16:12:55 +01:00
parent fb14b39f4a
commit 5b778111cf
2 changed files with 11 additions and 2 deletions

View File

@ -177,8 +177,9 @@ article {
align-items: center; align-items: center;
height: 200px; height: 200px;
justify-content: center; justify-content: center;
min-width: 200px;
overflow: hidden; overflow: hidden;
padding-right: 1.5rem; margin-right: 1.5rem;
width: 200px; width: 200px;
@media screen and (min-width: $small) { @media screen and (min-width: $small) {

View File

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