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:
parent
5f54c853a3
commit
f350e9169d
@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logo__wrapper {
|
.logo__wrapper {
|
||||||
width: 10rem;
|
width: 7rem;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
padding-bottom: 0.5em;
|
padding-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,6 +6,7 @@ h3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
|
margin-top: 2rem;
|
||||||
font-size: 1.35rem;
|
font-size: 1.35rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -45,4 +45,5 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
src="{{ $src.RelPermalink }}"
|
src="{{ $src.RelPermalink }}"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Get "alt" }}alt='{{.}}'{{ end }}>
|
{{ with .Get "alt" }}alt='{{.}}'{{ end }}
|
||||||
|
>
|
||||||
|
|||||||
@ -7,17 +7,21 @@
|
|||||||
<source
|
<source
|
||||||
media="(min-width: 535px)"
|
media="(min-width: 535px)"
|
||||||
data-original-set="{{ .Get "src" }}.{{ .Get "type" }} 1x,
|
data-original-set="{{ .Get "src" }}.{{ .Get "type" }} 1x,
|
||||||
{{ .Get "src" }}@2x.{{ .Get "type" }} 2x">
|
{{ .Get "src" }}@2x.{{ .Get "type" }} 2x"
|
||||||
|
>
|
||||||
<!-- Small screens -->
|
<!-- Small screens -->
|
||||||
<source
|
<source
|
||||||
media="(max-width: 534px)"
|
media="(max-width: 534px)"
|
||||||
data-original-set="{{ .Get "src" }}-sm.{{ .Get "type" }} 1x,
|
data-original-set="{{ .Get "src" }}-sm.{{ .Get "type" }} 1x,
|
||||||
{{ .Get "src" }}-sm@2x.{{ .Get "type" }} 2x">
|
{{ .Get "src" }}-sm@2x.{{ .Get "type" }} 2x"
|
||||||
|
>
|
||||||
<!-- Fallback -->
|
<!-- Fallback -->
|
||||||
<img
|
<img
|
||||||
data-original="{{ .Get "src" }}.{{ .Get "type" }}"
|
data-original="{{ .Get "src" }}.{{ .Get "type" }}"
|
||||||
data-original-set="{{ .Get "src" }}@2x.{{ .Get "type" }} 2x"
|
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>
|
</picture>
|
||||||
{{ if .Get "caption"}}
|
{{ if .Get "caption"}}
|
||||||
<figcaption>{{ .Get "caption" }}</figcaption>
|
<figcaption>{{ .Get "caption" }}</figcaption>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user