Skip to content
Permalink
Browse files
fix feature page loading. use hd image. fix example cdn
  • Loading branch information
pissang committed Jan 22, 2021
1 parent 4c62e34 commit a8a81c1dd3893eeb4b03eeda5861dc53d5247654
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
@@ -93,5 +93,10 @@ block content


block extra_js
script.
window.lazyLoadOptions = {
elements_selector: 'iframe'
};
script(src='https://cdn.jsdelivr.net/npm/vanilla-lazyload@12.0.0/dist/lazyload.min.js')
script(type='text/javascript').
document.getElementById('nav-doc').className = 'active';
@@ -90,5 +90,10 @@ block content


block extra_js
script.
window.lazyLoadOptions = {
elements_selector: 'iframe'
};
script(src='https://cdn.jsdelivr.net/npm/vanilla-lazyload@12.0.0/dist/lazyload.min.js')
script(type='text/javascript').
document.getElementById('nav-doc').className = 'active';
@@ -190,7 +190,9 @@ async function buildJade(config) {

for (let srcPath of srcPaths) {
let filePath = path.resolve(basePath, srcPath);
const lang = srcPath.indexOf('zh/') === 0 ? 'zh' : 'en';

const lang = (srcPath.indexOf('zh/') === 0
|| srcPath.indexOf('examples/zh/') === 0) ? 'zh' : 'en';

assert(hashes[lang]);

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

0 comments on commit a8a81c1

Please sign in to comment.