1
0
mirror of https://github.com/danbee/danbarber.me.hugo.git synced 2025-03-04 08:59:18 +00:00

Fix some layout issues

This commit is contained in:
Daniel Barber 2023-07-09 14:04:12 -05:00
parent 5f54c853a3
commit f350e9169d
4 changed files with 11 additions and 5 deletions

View File

@ -21,7 +21,7 @@
}
.logo__wrapper {
width: 10rem;
width: 7rem;
line-height: 0;
padding-bottom: 0.5em;
}

View File

@ -6,6 +6,7 @@ h3 {
}
h3 {
margin-top: 2rem;
font-size: 1.35rem;
}

View File

@ -45,4 +45,5 @@
{{ else }}
src="{{ $src.RelPermalink }}"
{{ end }}
{{ with .Get "alt" }}alt='{{.}}'{{ end }}>
{{ with .Get "alt" }}alt='{{.}}'{{ end }}
>

View File

@ -7,17 +7,21 @@
<source
media="(min-width: 535px)"
data-original-set="{{ .Get "src" }}.{{ .Get "type" }} 1x,
{{ .Get "src" }}@2x.{{ .Get "type" }} 2x">
{{ .Get "src" }}@2x.{{ .Get "type" }} 2x"
>
<!-- Small screens -->
<source
media="(max-width: 534px)"
data-original-set="{{ .Get "src" }}-sm.{{ .Get "type" }} 1x,
{{ .Get "src" }}-sm@2x.{{ .Get "type" }} 2x">
{{ .Get "src" }}-sm@2x.{{ .Get "type" }} 2x"
>
<!-- Fallback -->
<img
data-original="{{ .Get "src" }}.{{ .Get "type" }}"
data-original-set="{{ .Get "src" }}@2x.{{ .Get "type" }} 2x"
alt="{{ .Get "alt" }}"{{ if .Get "caption"}} class="img-fluid figure-img"{{ end }}>
alt="{{ .Get "alt" }}"
{{ if .Get "caption"}} class="img-fluid figure-img"{{ end }}
>
</picture>
{{ if .Get "caption"}}
<figcaption>{{ .Get "caption" }}</figcaption>