From 19c89c67b09139a3df8e89002956ed61d48b931d Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Fri, 15 Jan 2021 09:03:50 +0100 Subject: [PATCH] Improve Web Vitals: SEO and Accessibility --- layouts/shortcodes/attachedFigure.html | 2 +- layouts/shortcodes/figure.html | 4 ++-- themes/itix | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/shortcodes/attachedFigure.html b/layouts/shortcodes/attachedFigure.html index 8cc3f04..03190cf 100644 --- a/layouts/shortcodes/attachedFigure.html +++ b/layouts/shortcodes/attachedFigure.html @@ -2,7 +2,7 @@ {{- $filename := .Get "src" -}} {{- $image := .Page.Resources.GetMatch (printf "%s" $filename) -}}
- + {{- .Get {{- with .Get "title" }}
{{- . -}} diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 8c2ea6d..89cf1f5 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -1,10 +1,10 @@ {{ $url := .Get "src" }}
- + {{- .Get {{ with .Get "title" }}
- {{ . }} + {{- . -}}
{{ end }}
\ No newline at end of file diff --git a/themes/itix b/themes/itix index b44dbf8..1fefdd0 160000 --- a/themes/itix +++ b/themes/itix @@ -1 +1 @@ -Subproject commit b44dbf83c122f737f2a21359c469af6e792388ee +Subproject commit 1fefdd07f96b3ab6580fbbb9eb7cea73352d2470