Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/radity/raditian-free-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrián Moreno Peña <zetxek@gmail.com>2020-05-05 20:58:55 +0300
committerAdrián Moreno Peña <zetxek@gmail.com>2020-05-05 20:58:55 +0300
commit90048580ed961a08187cef22d86d9546c7291f7e (patch)
treee7b1a3ffeffd87bed6dcde754640bb85e0230a1c
parent240e2ab17dc9477c0387518fa35e71091c9cc385 (diff)
Added alt image text option
-rwxr-xr-xexampleSite/data/homepage.yml2
-rw-r--r--layouts/partials/showcase.html4
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 <a target='_blank' href='https://radity.com/'>Radity</a>, 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 <a target='_blank' href='https://github.com/radity/raditian-free-hugo-theme'>github</a>."
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 }}"
/>
</div>
<div class="container">
@@ -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 }}"
/>
</div>
</section>