diff --git a/_config.yml b/_config.yml index dd9d3d6..248d882 100755 --- a/_config.yml +++ b/_config.yml @@ -11,6 +11,7 @@ stellar: preconnect: # - https://gcore.jsdelivr.net # - https://unpkg.com + # - https://cdn.bootcdn.net open_graph: enable: true @@ -369,9 +370,9 @@ plugins: # https://scrollrevealjs.org/api/reveal.html scrollreveal: enable: #true - js: https://gcore.jsdelivr.net/npm/scrollreveal@4.0.9/dist/scrollreveal.min.js - distance: 8px - duration: 500 # ms + js: https://cdn.bootcdn.net/ajax/libs/scrollReveal.js/4.0.9/scrollreveal.min.js + distance: 16px + duration: 800 # ms interval: 100 # ms scale: 1 # 0.1~1 diff --git a/layout/_partial/cover/index.ejs b/layout/_partial/cover/index.ejs index b63c82b..cfaf68d 100644 --- a/layout/_partial/cover/index.ejs +++ b/layout/_partial/cover/index.ejs @@ -1,12 +1,12 @@ <% function layoutCover() { - if (page.layout == 'wiki') { - return partial('wiki_cover'); + if (page.wiki) { + return partial('wiki_cover') } - if (page.layout == 'post') { - return partial('post_cover'); + if (page.layout === 'post') { + return partial('post_cover') } - return ''; + return '' } %> <%- layoutCover() %> diff --git a/layout/_partial/cover/post_cover.ejs b/layout/_partial/cover/post_cover.ejs index 4036643..d1ea71c 100644 --- a/layout/_partial/cover/post_cover.ejs +++ b/layout/_partial/cover/post_cover.ejs @@ -26,7 +26,7 @@ function div() { url = 'https://source.unsplash.com/random/2000x400'; } } - el += '