add event in index
diff --git a/_jade/en/index.jade b/_jade/en/index.jade
index 5dface1..a4e332d 100644
--- a/_jade/en/index.jade
+++ b/_jade/en/index.jade
@@ -31,6 +31,15 @@
+svgGithub('#081642')
.home-chart
img(src="images/index-home-pie.png")
+
+ section#events-section
+ .container
+ a.event(href='./events/2021-05-13-iscas.html')
+ picture
+ source.lazy(data-srcset="#{cdnPayRoot}/#{ecWWWLang}/images/event/20210513-iscas-en.webp?_v_=#{cdnPayVersion}", type="image/webp")
+ source.lazy(data-srcset="#{cdnPayRoot}/#{ecWWWLang}/images/event/20210513-iscas-en.jpeg?_v_=#{cdnPayVersion}", type="image/jpeg")
+ img.lazy(data-src="#{cdnPayRoot}/#{ecWWWLang}/images/event/20210513-iscas-en.jpeg?_v_=#{cdnPayVersion}", alt="Summer 2021 of Open Source Promotion Plan")
+
section#feature-section
.container
.index-features
@@ -140,6 +149,10 @@
include ./footer
block extra_js
+ script(type='text/javascript').
+ window.lazyLoadOptions = {
+ elements_selector: ".lazy"
+ };
script(src='https://cdn.jsdelivr.net/npm/vanilla-lazyload@12.0.0/dist/lazyload.min.js')
script(src='#{cdnPayRoot}/#{ecWWWLang}/js/index.js?_v_=#{homeVersion}')
//- <script async defer src="https://buttons.github.io/buttons.js"></script>
diff --git a/_jade/zh/index.jade b/_jade/zh/index.jade
index b8e5efd..720b03f 100644
--- a/_jade/zh/index.jade
+++ b/_jade/zh/index.jade
@@ -32,6 +32,14 @@
img(src="#{cdnPayRoot}/#{ecWWWLang}/images/index-home-pie.png?_v_=#{cdnPayVersion}")
+ section#events-section
+ .container
+ a.event(href='./events/2021-05-13-iscas.html')
+ picture
+ source.lazy(data-srcset="#{cdnPayRoot}/#{ecWWWLang}/images/event/20210513-iscas.webp?_v_=#{cdnPayVersion}", type="image/webp")
+ source.lazy(data-srcset="#{cdnPayRoot}/#{ecWWWLang}/images/event/20210513-iscas.jpeg?_v_=#{cdnPayVersion}", type="image/jpeg")
+ img.lazy(data-src="#{cdnPayRoot}/#{ecWWWLang}/images/event/20210513-iscas.jpeg?_v_=#{cdnPayVersion}", alt="开源软件供应链点亮计划 - 暑期 2021")
+
section#feature-section
.container
.index-features
diff --git a/_scss/_pages.index.scss b/_scss/_pages.index.scss
index d22aee1..70c6c79 100644
--- a/_scss/_pages.index.scss
+++ b/_scss/_pages.index.scss
@@ -127,6 +127,10 @@
}
}
+ #events-section {
+ margin: 20px 0 60px 0;
+ }
+
.banner-section {
position: relative;
margin-top: -5px;