Fix single page layout
This commit is contained in:
parent
fb14b39f4a
commit
5b778111cf
|
@ -177,8 +177,9 @@ article {
|
|||
align-items: center;
|
||||
height: 200px;
|
||||
justify-content: center;
|
||||
min-width: 200px;
|
||||
overflow: hidden;
|
||||
padding-right: 1.5rem;
|
||||
margin-right: 1.5rem;
|
||||
width: 200px;
|
||||
|
||||
@media screen and (min-width: $small) {
|
||||
|
|
|
@ -6,7 +6,15 @@
|
|||
<section class="text">{{ $textContent }}</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>
|
||||
{{ $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>
|
||||
</article>
|
||||
{{ else }}
|
||||
|
|
Loading…
Reference in New Issue