diff --git a/assets/sass/list.scss b/assets/sass/list.scss
index 556222e..7fa16c3 100644
--- a/assets/sass/list.scss
+++ b/assets/sass/list.scss
@@ -2,11 +2,11 @@
.post {
display: block;
- >a {
+ > a {
color: inherit;
}
- >a:hover {
+ > a:hover {
color: var(--text-800);
}
diff --git a/assets/sass/photoswipe.scss b/assets/sass/photoswipe.scss
index 1fab5e5..442b894 100644
--- a/assets/sass/photoswipe.scss
+++ b/assets/sass/photoswipe.scss
@@ -18,13 +18,13 @@
position: fixed;
bottom: 0;
width: 100%;
- height: 5rem;
+ height: auto;
padding: 1rem 2rem;
text-align: center;
line-height: 1.5rem;
.meta {
- font-size: 0.7rem;
+ margin: 0;
}
a {
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index ab9646a..9aecd77 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -1,7 +1,3 @@
-{{ partial "components/image/index.html" (dict "page" .Page "image" (dict
- "src" .Destination
- "caption" .Text
- "alt" .Title
- ))
-}}
+{{ $data := partial "components/image/process.html" (dict "page" .Page "src" .Destination) }}
+{{ partial "components/image/index.html" (merge $data (dict "caption" .Text "alt" .Title)) }}
{{- /* chomp trailing newline */ -}}
diff --git a/layouts/partials/components/hero/index.html b/layouts/partials/components/hero/index.html
index 8d642cd..28f47f8 100644
--- a/layouts/partials/components/hero/index.html
+++ b/layouts/partials/components/hero/index.html
@@ -1,5 +1,8 @@
{{ .Title }}
{{ partial "components/meta/index.html" . }}
- {{ partial "components/image/index.html" (dict "page" .Page "image" .Params.hero) }}
+
+ {{ $hero := partial "components/hero/process.html" .Params.hero }}
+ {{ $data := partial "components/image/process.html" (dict "page" .Page "src" $hero.src) }}
+ {{ partial "components/image/index.html" (merge $data $hero) }}
-
- {{ with $caption }}
-
+
+ {{ with $caption }}
+