From 90048580ed961a08187cef22d86d9546c7291f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adria=CC=81n=20Moreno=20Pen=CC=83a?= Date: Tue, 5 May 2020 19:58:55 +0200 Subject: Added alt image text option --- exampleSite/data/homepage.yml | 2 ++ layouts/partials/showcase.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/exampleSite/data/homepage.yml b/exampleSite/data/homepage.yml index 3467556..bb6668f 100755 --- a/exampleSite/data/homepage.yml +++ b/exampleSite/data/homepage.yml @@ -5,9 +5,11 @@ showcase: subtitle: "Front-End Developer" description: "I work at Radity, a software development company in Switzerland. And I am a Raditian. You get the idea where theme name comes from. Keep cool, stay in touch. You can download this theme from github." image: + alt: "Showcase keyboard and mouse image" x: "img/showcase/showcase.png" _2x: "img/showcase/showcase@2x.png" imageMobile: + alt: "Showcase keyboard and mouse image" x: "img/showcase/showcase-mobile.jpg" button: diff --git a/layouts/partials/showcase.html b/layouts/partials/showcase.html index 9a18338..a8ea984 100644 --- a/layouts/partials/showcase.html +++ b/layouts/partials/showcase.html @@ -6,7 +6,7 @@ src="data:image/gif;base64,R0lGODlhBwACAIAAAP///wAAACH5BAEAAAEALAAAAAAHAAIAAAIDjI9YADs=" data-src="{{ .Site.Data.homepage.showcase.image.x | absURL }}" data-srcset="{{ .Site.Data.homepage.showcase.image.x | absURL }} 1x, {{ .Site.Data.homepage.showcase.image._2x | absURL }} 2x" - alt="Showcase keyboard and mouse image" + alt="{{ .Site.Data.homepage.showcase.image.alt }}" />
@@ -46,7 +46,7 @@ class="lozad img-responsive" src="data:image/gif;base64,R0lGODlhBwACAIAAAP///wAAACH5BAEAAAEALAAAAAAHAAIAAAIDjI9YADs=" data-src="{{ .Site.Data.homepage.showcase.imageMobile.x | absURL }}" - alt="Showcase keyboard and mouse image" + alt="{{ .Site.Data.homepage.showcase.imageMobile.alt }}" />
-- cgit v1.2.3