Fix single page layout
This commit is contained in:
parent
fb14b39f4a
commit
5b778111cf
|
@ -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) {
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue