summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2021-06-17 20:44:37 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2021-06-17 20:45:01 +0800
commit6b5857a2157595b5e33d7d25714c9528718e8fde (patch)
tree3e1f5ac0100c1d3af32795e7acd01124ec42a17a
parentcae6e2e54973d9ccbc9de6954d2dbf0888c1842f (diff)
feat: add img tag of banner for SEO
-rw-r--r--_includes/views/banner.html1
-rw-r--r--_sass/yat/_layout.scss4
2 files changed, 5 insertions, 0 deletions
diff --git a/_includes/views/banner.html b/_includes/views/banner.html
index d77e42c..eb622d7 100644
--- a/_includes/views/banner.html
+++ b/_includes/views/banner.html
@@ -32,6 +32,7 @@
<section class="page-banner">
<div class="page-banner-img">
<div style="background-image: url({{ banner_image }})"></div>
+ <img class="img-placeholder" src="{{ banner_image }}"></div>
</div>
<div class="wrapper">
<div class="page-banner-inner">
diff --git a/_sass/yat/_layout.scss b/_sass/yat/_layout.scss
index 04a31b4..020be5e 100644
--- a/_sass/yat/_layout.scss
+++ b/_sass/yat/_layout.scss
@@ -570,6 +570,10 @@ html {
@include center-image;
transition: 0.1s all ease-in-out;
}
+
+ & > img.img-placeholder {
+ display: none;
+ }
}
.wrapper {