Compare commits

...

3 Commits

Author SHA1 Message Date
iotcat ba6651f131 cool 4 years ago
iotcat bb7af07797 opt 4 years ago
iotcat 59929912d7 cdn 4 years ago
  1. 2
      _config.yml
  2. 4
      layout/_partial/footer.swig
  3. 10
      layout/_partial/head.swig
  4. 13
      layout/_script/pjax.swig

@ -146,7 +146,7 @@ valine:
enable: true enable: true
appId: eVzpK7EyT6OafJvXWIRminWT-gzGzoHsz appId: eVzpK7EyT6OafJvXWIRminWT-gzGzoHsz
appKey: 2qjuEBgVE0BscTQnTmoS9roU appKey: 2qjuEBgVE0BscTQnTmoS9roU
background: https://cdn.jsdelivr.net/gh/drew233/cdn/20200409110727.webp background: https://cdn.yimian.xyz/img/blog/comments_bg.webp
masterEmailMd5: 9b616ff4cd6c305e5970bee7b1bd9b1f masterEmailMd5: 9b616ff4cd6c305e5970bee7b1bd9b1f
friendsEmailMd5: '"b6ddef7c7e1c647e7767afeacdfb7b64","46dd4e6fef4f9591736c4723a965ca2e","6132d77f9f0ae060bc733090991acecb","3e00e104b79d7c6e866c6b23c6ba6dfc"' friendsEmailMd5: '"b6ddef7c7e1c647e7767afeacdfb7b64","46dd4e6fef4f9591736c4723a965ca2e","6132d77f9f0ae060bc733090991acecb","3e00e104b79d7c6e866c6b23c6ba6dfc"'
statistic: true statistic: true

@ -15,7 +15,7 @@
{%- endif -%} {%- endif -%}
<span class="power-by"> <span class="power-by">
{{ __('footer.powered', '<a class="hexo-link" href="" onClick="page.showUshio();">Ushio</a>') }} {{ __('footer.powered', '<a class="hexo-link" href="https://ushio.cool/">Ushio</a>') }}
</span> </span>
<span class="division">|</span> <span class="division">|</span>
<span class="theme-info"> <span class="theme-info">
@ -35,6 +35,6 @@
<span class="heart shaky"> <span class="heart shaky">
<i class="iconfont icon-heart"></i> <i class="iconfont icon-heart"></i>
</span> </span>
<span class="author">{{ config.author }}</span> <span class="author"><a href="https://iotcat.me/">{{ config.author }}</a></span>
</span> </span>
</div> </div>

@ -25,10 +25,10 @@
{%- endif -%} {%- endif -%}
{#- iziModal -#} {#- iziModal -#}
<link rel="stylesheet" type="text/css" href="{{ theme.cdnurl }}/lib/iziModal/iziModal.min.css" /> <!--<link rel="stylesheet" type="text/css" href="{{ theme.cdnurl }}/lib/iziModal/iziModal.min.css" />-->
{#- iziToast -#} {#- iziToast -#}
<link rel="stylesheet" type="text/css" href="{{ theme.cdnurl }}/lib/iziToast/iziToast.min.css" /> <!--<link rel="stylesheet" type="text/css" href="{{ theme.cdnurl }}/lib/iziToast/iziToast.min.css" />-->
{#- aplayer -#} {#- aplayer -#}
{%- if theme.aplayer.enable -%} {%- if theme.aplayer.enable -%}
@ -39,7 +39,7 @@
{%- endif -%} {%- endif -%}
{%- if theme.shaky -%} {%- if theme.shaky -%}
<link rel="stylesheet" type="text/css" href="https://cdn.yimian.xyz/shaky/shaky.css"> <link rel="stylesheet" media="none" onload="this.media='all'" type="text/css" href="https://cdn.yimian.xyz/shaky/shaky.css">
{%- endif -%} {%- endif -%}
{#- Canonical, good for google search engine -#} {#- Canonical, good for google search engine -#}
@ -47,7 +47,7 @@
{#- Fancybox styling -#} {#- Fancybox styling -#}
{%- if theme.fancybox -%} {%- if theme.fancybox -%}
<link rel="stylesheet" type="text/css" href="{{ theme.cdnurl }}/lib/fancybox/jquery.fancybox.css" /> <link rel="stylesheet" media="none" onload="this.media='all'" type="text/css" href="{{ theme.cdnurl }}/lib/fancybox/jquery.fancybox.css" />
{%- endif -%} {%- endif -%}
{#- MathJax (LaTeX) support -#} {#- MathJax (LaTeX) support -#}
@ -55,7 +55,7 @@
<script type="text/x-mathjax-config"> <script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } }); MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
</script> </script>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"></script> <script type="text/javascript" async src="https://cdn.yimian.xyz/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"></script>
{%- endif -%} {%- endif -%}
{#- Theme styling -#} {#- Theme styling -#}

@ -7,6 +7,14 @@
}); });
{%- endif -%} {%- endif -%}
/* lazyload */
window.imageLazyLoadSetting = {
isSPA: false,
processImages: null,
};
window.addEventListener("load",function(){var t=/\.(gif|jpg|jpeg|tiff|png)$/i,r=/^data:image\/[a-z]+;base64,/;Array.prototype.slice.call(document.querySelectorAll("img[data-original]")).forEach(function(a){var e=a.parentNode;"A"===e.tagName&&(e.href.match(t)||e.href.match(r))&&(e.href=a.dataset.original)})});
/* 第一次载入页面加载的函数 */ /* 第一次载入页面加载的函数 */
pjax_ini = () => { pjax_ini = () => {
@ -25,6 +33,11 @@
{%- if theme.mermaid -%} {%- if theme.mermaid -%}
mermaid.init(undefined, $(".mermaid")); mermaid.init(undefined, $(".mermaid"));
{%-endif-%} {%-endif-%}
/* lazy load */
!function(n){n.imageLazyLoadSetting.processImages=o;var i=n.imageLazyLoadSetting.isSPA,r=Array.prototype.slice.call(document.querySelectorAll("img[data-original]"));function o(){i&&(r=Array.prototype.slice.call(document.querySelectorAll("img[data-original]")));for(var t,e,a=0;a<r.length;a++)t=r[a],e=void 0,0<=(e=t.getBoundingClientRect()).bottom&&0<=e.left&&e.top<=(n.innerHeight||document.documentElement.clientHeight)&&function(){var t,e,n,i,o=r[a];t=o,e=function(){r=r.filter(function(t){return o!==t})},n=new Image,i=t.getAttribute("data-original"),n.onload=function(){t.src=i,e&&e()},n.src=i}()}o(),n.addEventListener("scroll",function(){var t,e;t=o,e=n,clearTimeout(t.tId),t.tId=setTimeout(function(){t.call(e)},500)})}(this);
!function(){var t=/\.(gif|jpg|jpeg|tiff|png)$/i,r=/^data:image\/[a-z]+;base64,/;Array.prototype.slice.call(document.querySelectorAll("img[data-original]")).forEach(function(a){var e=a.parentNode;"A"===e.tagName&&(e.href.match(t)||e.href.match(r))&&(e.href=a.dataset.original)})}();
}; };
/* 第一次 执行 */ /* 第一次 执行 */

Loading…
Cancel
Save