1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
| <script> var CONFIG = window.CONFIG || {}; var ZHAOO = window.ZHAOO || {}; CONFIG = { isHome: <%= is_home() %>, fancybox: <%= theme.fancybox %>, pjax: <%= theme.pjax || false %>, loading: { gif: '<%= theme.loading.gif %>', lottie: '<%= theme.loading.lottie %>' }, lazyload: { enable: <%= theme.lazyload.enable %>, only_post: '<%= theme.lazyload.only_post %>', loading: { gif: '<%= theme.lazyload.loading.gif %>', lottie: '<%= theme.lazyload.loading.lottie %>' } }, donate: { enable: <%= theme.donate.enable %>, alipay: '<%= theme.donate.alipay %>', wechat: '<%= theme.donate.wechat %>' }, galleries: { enable: <%= theme.galleries.enable %> }, fab: { enable: <%= theme.fab.enable %>, always_show: <%= theme.fab.always_show %> }, carrier: { enable: <%= theme.carrier.enable %> }, daovoice: { enable: <%= theme.daovoice.enable %> }, preview: { background: { default: '<%= theme.preview.background.default %>', api: '<%= theme.preview.background.api %>' }, motto: { default: '<%= theme.preview.motto.default %>', typing: <%= theme.preview.motto.typing %>, api: '<%- theme.preview.motto.api %>', data_contents: '<%- theme.preview.motto.data_contents && JSON.stringify(theme.preview.motto.data_contents) %>' }, }, qrcode: { enable: <%= theme.qrcode.enable %>, type: '<%= theme.qrcode.type %>', image: '<%= theme.qrcode.image %>', }, toc: { enable: <%= theme.toc.enable %> }, scrollbar: { type: '<%= theme.scrollbar.type %>' }, notification: { enable: <%= theme.notification.enable %>, delay: <%= theme.notification.delay || 4500 %>, list: '<%- site.data.notification && JSON.stringify(site.data.notification) %>', page_white_list: '<%- theme.notification.page_white_list && JSON.stringify(theme.notification.page_white_list) %>', page_black_list: '<%- theme.notification.page_black_list && JSON.stringify(theme.notification.page_black_list) %>' }, search: { enable: <%= theme.search.enable %>, path: <%- config.search && config.search.path ? `'${config.search.path}'` : `''` %> } } </script>
|