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
appId: eVzpK7EyT6OafJvXWIRminWT-gzGzoHsz
appKey: 2qjuEBgVE0BscTQnTmoS9roU
background: https://cdn.jsdelivr.net/gh/drew233/cdn/20200409110727.webp
background: https://cdn.yimian.xyz/img/blog/comments_bg.webp
masterEmailMd5: 9b616ff4cd6c305e5970bee7b1bd9b1f
friendsEmailMd5: '"b6ddef7c7e1c647e7767afeacdfb7b64","46dd4e6fef4f9591736c4723a965ca2e","6132d77f9f0ae060bc733090991acecb","3e00e104b79d7c6e866c6b23c6ba6dfc"'
statistic: true

@ -15,7 +15,7 @@
{%- endif -%}
<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 class="division">|</span>
<span class="theme-info">
@ -35,6 +35,6 @@
<span class="heart shaky">
<i class="iconfont icon-heart"></i>
</span>
<span class="author">{{ config.author }}</span>
<span class="author"><a href="https://iotcat.me/">{{ config.author }}</a></span>
</span>
</div>

@ -25,10 +25,10 @@
{%- endif -%}
{#- 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 -#}
<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 -#}
{%- if theme.aplayer.enable -%}
@ -39,7 +39,7 @@
{%- endif -%}
{%- 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 -%}
{#- Canonical, good for google search engine -#}
@ -47,7 +47,7 @@
{#- Fancybox styling -#}
{%- 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 -%}
{#- MathJax (LaTeX) support -#}
@ -55,7 +55,7 @@
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
</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 -%}
{#- Theme styling -#}

@ -7,6 +7,14 @@
});
{%- 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 = () => {
@ -25,6 +33,11 @@
{%- if theme.mermaid -%}
mermaid.init(undefined, $(".mermaid"));
{%-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