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..8676f8e 100644
--- a/assets/sass/photoswipe.scss
+++ b/assets/sass/photoswipe.scss
@@ -18,20 +18,12 @@
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;
- }
-
- a {
- color: inherit;
- }
-
- a:hover {
- color: var(--text-800);
+ margin: 0;
}
}
diff --git a/layouts/partials/components/image/index.html b/layouts/partials/components/image/index.html
index 12c0050..6b3d2c6 100644
--- a/layouts/partials/components/image/index.html
+++ b/layouts/partials/components/image/index.html
@@ -1,58 +1,27 @@
{{- $page := .page -}}
{{- $image := .image -}}
-{{- $src := $image -}}
-{{- $caption := "" -}}
-{{- $title := "" -}}
-{{- $alt := "" -}}
-
-{{- if reflect.IsMap $image -}}
- {{- $src = $image.src | default "" -}}
- {{- $caption = $image.caption | default "" -}}
- {{- $title = $image.title | default $caption | default "" | plainify -}}
- {{- $alt = $image.alt | default $title | default "" | plainify -}}
-{{- end -}}
-
-{{- if $src -}}
- {{- $isRemote := strings.HasPrefix $src "http" -}}
-
- {{- if $isRemote -}}
- {{- $remote := resources.GetRemote $src -}}
- {{- $image = resources.Copy (printf "static/3rd-party/%s" $remote.Name) $remote -}}
- {{- else -}}
- {{- $image = ($page.Resources.Get $src) | default (resources.Get $src) -}}
- {{- end -}}
-{{- end -}}
-
-{{- with $image -}}
- {{ $full := . | images.Filter (images.Process "webp q90") }}
-
- {{ $thumb := . }}
- {{- if gt .Width 2000 -}}
- {{- $thumb = . | images.Filter (images.Process "resize 2000x webp q75") -}}
- {{- else -}}
- {{- $thumb = . | images.Filter (images.Process "webp q75") -}}
- {{- end -}}
-
+{{- $data := partial "components/image/process.html" (dict "image" .image "page" .page) -}}
+{{- with $data -}}
- {{ with $caption }}
+ {{ with $data.caption }}