jekyll-theme-mdui 0.5.2 → 0.5.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34b945e63d0ee5772a79b48138c3983cac5639d9
4
- data.tar.gz: e6688f4b9e3a22c3bdeab5c44e0367615ca81f27
3
+ metadata.gz: fcf5e5c01e96302a2123ec3c682d213403ac2607
4
+ data.tar.gz: 1c3a46f8628de41fae55808c5f6b2a8c87ee82b9
5
5
  SHA512:
6
- metadata.gz: cc5058d0fcfd7abd365b6a28ab0da5ec668b9e7e0859c882009280b9e89e96c9be126dabb9d3d1dbb03f907cbda5a6dd3a3188f7cf36f1f832bd5916fb8ed2d9
7
- data.tar.gz: e72dd0187b9672614b573e1626e6cde21ba134a0ee243edfcad93dc600a30c5e4545bec2a6557e67d0344132aaa87731d788ff752451e7b65b9a9ce421642560
6
+ metadata.gz: 44db0dc82ced41262b7a5263f812c1fa7db4736efdffa62ba8d60f894f2928859b33aab570466d794b20f239bb4750de4725297d2b9c44b9543918091b0414f9
7
+ data.tar.gz: 68cc2c8ea4706744acd3dd08efe14925d794ce553bfaa5a8199a588c08f84f823efc95615ebc8c44ebcd2da106d1c6a2e0cd0334245cc31f9c5848411ee159ab
@@ -5,6 +5,11 @@
5
5
  $('script[src="https://cdn-city.livere.com/js/embed.dist.js"]').remove();
6
6
  });
7
7
  </script>
8
+ <style>
9
+ iframe+iframe {
10
+ display: none;
11
+ }
12
+ </style>
8
13
  <div style="padding:0px 16px;" id="lv-container" data-id="{{site.data.site.comment.livere_type}}" data-uid="{{site.data.site.comment.livere_data_uid}}">
9
14
  <script type="text/javascript">
10
15
  $(function () {
@@ -3,15 +3,15 @@
3
3
  {% else %}
4
4
  {% assign lang = site.data.lang.en-US %}
5
5
  {% endif %}
6
- <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
7
- <script>
8
- !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("Valine",[],n):"object"==typeof exports?exports.Valine=n():e.Valine=n()}(this,function(){return function(e){function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var t={};return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=2)}([function(e,n,t){"use strict";function i(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function r(e){return(e+"").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function a(e){function n(e){var n=o[e.replace(/\*/g,"_")[1]||""],t=v[v.length-1]==e;return n?n[1]?(v[t?"pop":"push"](e),n[0|t]):n[0]:e}function t(){for(var e="";v.length;)e+=n(v[v.length-1]);return e}var l,s,c,d,u,p=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^```(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:\!\[([^\]]*?)\]\(([^\)]+?)\))|(\[)|(\](?:\(([^\)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(\-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,3})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*])/gm,v=[],f="",h=0,g={};for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,function(e,n,t){return g[n.toLowerCase()]=t,""}).replace(/^\n+|\n+$/g,"");c=p.exec(e);)s=e.substring(h,c.index),h=p.lastIndex,l=c[0],s.match(/[^\\](\\\\)*\\$/)||(c[3]||c[4]?l='<pre class="code '+(c[4]?"poetry":c[2].toLowerCase())+'">'+i(r(c[3]||c[4]).replace(/^\n+|\n+$/g,""))+"</pre>":c[6]?(u=c[6],u.match(/\./)&&(c[5]=c[5].replace(/^\d+/gm,"")),d=a(i(c[5].replace(/^\s*[>*+.-]/gm,""))),">"===u?u="blockquote":(u=u.match(/\./)?"ol":"ul",d=d.replace(/^(.*)(\n|$)/gm,"<li>$1</li>")),l="<"+u+">"+d+"</"+u+">"):c[8]?l='<img src="'+r(c[8])+'" alt="'+r(c[7])+'">':c[10]?(f=f.replace("<a>",'<a href="'+r(c[11]||g[s.toLowerCase()])+'">'),l=t()+"</a>"):c[9]?l="<a>":c[12]||c[14]?(u="h"+(c[14]?c[14].length:"="===c[13][0]?1:2),l="<"+u+">"+a(c[12]||c[15])+"</"+u+">"):c[16]?l="<code>"+r(c[16])+"</code>":(c[17]||c[1])&&(l=n(c[17]||"--"))),f+=s,f+=l;return(f+e.substring(h)+t()).trim()}Object.defineProperty(n,"__esModule",{value:!0});var o={"":["<em>","</em>"],_:["<strong>","</strong>"],"\n":["<br />"]," ":["<br />"],"-":["<hr />"]};n.default=a},function(e,n,t){var i=t(3);"string"==typeof i&&(i=[[e.i,i,""]]);var r={};r.transform=void 0;t(5)(i,r);i.locals&&(e.exports=i.locals)},function(e,n,t){"use strict";function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(n,t,i){return t&&e(n.prototype,t),i&&e(n,i),n}}(),a=t(0),o=function(e){return e&&e.__esModule?e:{default:e}}(a);t(1);var l={comment:"",rid:"",nick:"unknow",link:"",ua:navigator.userAgent,url:location.pathname,pin:0,like:0},s=console.log,c={}.toString,d=function(){function e(n){i(this,e);var t=this;window.onload=function(){t.init(n),t.bind()}}return r(e,[{key:"init",value:function(e){var n=this,t=e.av||n.v;t&&t.version&&(t.init({appId:e.app_id||e.appId,appKey:e.app_key||e.appKey}),n.v=t);try{n.element="[object HTMLDivElement]"===c.call(e.el)?e.el:document.querySelectorAll(e.el)[0]}catch(e){return void s("The target element does not exist")}n.element.classList.add("valine");var i=e.placeholder||"ヾノ≧∀≦)o来啊,快活啊!",r='<div class="vwrap"><div class="vedit"><textarea class="veditor vinput" placeholder="'+i+'"></textarea></div><div class="vcontrol"><div class=\'vident\'><input placeholder="称呼" class="vnick vinput" type="text"><input placeholder="网址" class="vlink vinput" type="text"></div><div class="vright"><button type="button" class="vsubmit vbtn">回复</button></div></div></div><div class="pd5 txt-right power">Powered By <a href="https://github.com/xCss/Valine" target="_blank">Valine</a></div><ul class="vlist"><li class="vloading"></li><li class="vempty"></li></ul>';n.element.innerHTML=r;var a=n.element.querySelector(".vloading");a.innerHTML='<div class="spinner"><div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div><div class="rect5"></div></div>',n.loading={show:function(){a.setAttribute("style","display:block;")},hide:function(){a.setAttribute("style","display:none;")}};var o=n.element.querySelector(".vempty");o.innerText="还没有评论哦,快来抢沙发吧!",n.nodata={show:function(){o.setAttribute("style","display:block;")},hide:function(){o.setAttribute("style","display:none;")}},n.loading.show(),n.nodata.hide();var l=new n.v.Query("Comment");l.equalTo("url",location.pathname),l.ascending("createdAt"),l.find().then(function(e){n.loading.hide();e.length?(n.nodata.hide(),e.forEach(function(e){var t=document.createElement("li");t.setAttribute("class","vcard"),t.setAttribute("data-id",e.id),t.innerHTML='<div class="vhead"><a href="'+(e.get("link")||"javascript:void(0);")+'" target="_blank" data-id="'+e.id+'">'+e.get("nick")+'</a><span class="vtime">'+p(e.get("createdAt"))+"</span><span rid='"+e.id+"' at='"+e.get("nick")+'\' class="vat">回复</span></div><div class="vcomment">'+e.get("comment")+"</div>";var i=n.element.querySelector(".vlist"),r=i.querySelectorAll("li"),a=t.querySelector(".vat");n.bindAt(a),i.insertBefore(t,r[1])})):n.nodata.show()}).catch(function(e){n.loading.hide(),n.nodata.show()})}},{key:"bind",value:function(){var e=this,n={veditor:"comment",vnick:"nick",vlink:"link"},t={};for(var i in n)!function(){var r=n[i],a=e.element.querySelector("."+i);t[r]=a,a.addEventListener("input",function(e){l[r]=u.encode(a.value.replace(/(^\s*)|(\s*$)/g,""))})}();e.reset=function(){for(var t in n){var i=n[t];e.element.querySelector("."+t).value="",l[i]=""}l.nick="unknow",l.rid=""},e.bindAt=function(e){e.addEventListener("click",function(n){var i=e.getAttribute("at");t.comment.value="@"+i+" ,",t.comment.focus()})},e.element.querySelector(".vsubmit").addEventListener("click",function(n){if(""==l.comment)return void t.comment.focus();""==l.nick&&(l.nick="小调皮"),l.comment=(0,o.default)(l.comment),e.loading.show();var i=e.v.Object.extend("Comment"),r=new i;for(var a in l){var s=l[a];r.set(a,s)}r.save().then(function(n){var t=document.createElement("li");t.setAttribute("class","vcard"),t.setAttribute("data-id",n.id),t.innerHTML='<div class="vhead"><a href="'+(n.get("link")||"javascript:void(0);")+'" target="_blank" data-id="'+n.id+'">'+n.get("nick")+'</a><span class="vtime">'+p(n.get("createdAt"))+"</span><span rid='"+n.id+"' at='"+n.get("nick")+'\' class="vat">回复</span></div><div class="vcomment">'+n.get("comment")+"</div>";var i=e.element.querySelector(".vlist"),r=i.querySelectorAll("li"),a=t.querySelector(".vat");e.bindAt(a),i.insertBefore(t,r[1]),e.reset(),e.loading.hide(),e.nodata.hide()}).catch(function(n){e.loading.hide()})})}}]),e}(),u={encode:function(e){var n="";return 0==e.length?"":(n=e.replace(/&/g,"&amp;"),n=n.replace(/</g,"&lt;"),n=n.replace(/>/g,"&gt;"),n=n.replace(/ /g,"&nbsp;"),n=n.replace(/\'/g,"&#39;"),n=n.replace(/\"/g,"&quot;"))},decode:function(e){var n="";return 0==e.length?"":(n=e.replace(/&amp;/g,"&"),n=n.replace(/&lt;/g,"<"),n=n.replace(/&gt;/g,">"),n=n.replace(/&nbsp;/g," "),n=n.replace(/&#39;/g,"'"),n=n.replace(/&quot;/g,'"'))}},p=function(e){var n=v(e.getDate(),2),t=v(e.getMonth()+1,2);return v(e.getFullYear(),2)+"-"+t+"-"+n+" "+v(e.getHours(),2)+":"+v(e.getMinutes(),2)+":"+v(e.getSeconds(),2)},v=function(e,n){for(var t=e.toString();t.length<n;)t="0"+t;return t};e.exports=d},function(e,n,t){n=e.exports=t(4)(void 0),n.push([e.i,'.valine {\n /************ Loading ************/ }\n .valine * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-family: -apple-system, BlinkMacSystemFont, \'Mirages Custom\', \'Merriweather\', \'Open Sans\', "Segoe UI", Roboto, "PingFang SC", "Microsoft Yahei", "WenQuanYi Micro Hei", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", Helvetica, Arial, sans-serif;\n font-size: 14px;\n line-height: 1.42857143;\n color: #555;\n -webkit-transition: all .3s ease;\n transition: all .3s ease; }\n .valine .vwrap {\n border: 1px solid #dedede;\n border-radius: 4px;\n margin-bottom: 10px;\n overflow: hidden; }\n .valine .vwrap .vcontrol {\n background: #fbfbfb;\n font-size: 0; }\n .valine .vwrap .vcontrol .vident {\n font-size: 14px;\n width: 70%;\n display: inline-block;\n padding: 5px;\n vertical-align: middle; }\n .valine .vwrap .vcontrol .vright {\n font-size: 14px;\n padding: 5px;\n display: inline-block;\n width: 30%;\n text-align: right;\n vertical-align: middle; }\n .valine .vwrap .vcontrol input {\n background: transparent; }\n .valine a {\n text-decoration: none;\n color: #555; }\n .valine a:hover {\n color: #222; }\n .valine ul,\n .valine li {\n list-style: none; }\n .valine .txt-center {\n text-align: center; }\n .valine .txt-right {\n text-align: right; }\n .valine .pd5 {\n padding: 5px; }\n .valine .pd10 {\n padding: 10px; }\n .valine .veditor {\n width: 100%;\n height: 80px; }\n .valine .vinput {\n border: none;\n resize: none;\n outline: none;\n padding: 8px 10px;\n max-width: 100%; }\n .valine .vbtn {\n display: inline-block;\n margin-bottom: 0;\n font-weight: 400;\n text-align: center;\n vertical-align: middle;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n cursor: pointer;\n border: 1px solid transparent;\n white-space: nowrap;\n padding: 8px 0;\n font-size: 14px;\n line-height: 1.42857143;\n border-radius: 4px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n outline: none;\n min-width: 60px;\n max-width: 100%; }\n .valine .vbtn:active,\n .valine .vbtn:hover {\n color: #3090e4;\n border-color: #3090e4;\n background-color: #fff; }\n .valine .vlist {\n border-top: 1px solid #dedede;\n border-bottom: 1px solid #dedede;\n padding: 0 10px; }\n .valine .vlist .vcard {\n padding: 8px 0; }\n .valine .vlist .vcard + .vcard {\n border-top: 1px solid #dedede; }\n .valine .vlist .vcard .vhead a {\n font-size: 18px;\n font-weight: 300; }\n .valine .vlist .vcard .vhead .vtime {\n font-size: 12px;\n color: #a9a4a4;\n display: inline-block;\n padding: 0 5px; }\n .valine .vlist .vcard .vhead .vat {\n font-size: 14px;\n color: #999;\n display: inline-block;\n padding: 0 5px;\n cursor: pointer; }\n .valine .vlist .vcard .vhead .vat:hover {\n color: #111; }\n .valine .vlist .vcard .vcomment {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: break-all;\n text-align: justify;\n line-height: 1.8; }\n .valine .vlist .vcard .vcomment pre.code {\n overflow: auto; }\n .valine .vlist .vempty {\n padding: 20px;\n text-align: center;\n color: #999; }\n .valine .power {\n color: #999; }\n .valine .spinner {\n margin: 10px auto;\n width: 50px;\n height: 30px;\n text-align: center;\n font-size: 10px; }\n .valine .spinner > div {\n background-color: #9c9c9c;\n height: 100%;\n width: 6px;\n margin-right: 3px;\n display: inline-block;\n -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;\n animation: sk-stretchdelay 1.2s infinite ease-in-out; }\n .valine .spinner .rect2 {\n -webkit-animation-delay: -1.1s;\n animation-delay: -1.1s; }\n .valine .spinner .rect3 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s; }\n .valine .spinner .rect4 {\n -webkit-animation-delay: -0.9s;\n animation-delay: -0.9s; }\n .valine .spinner .rect5 {\n -webkit-animation-delay: -0.8s;\n animation-delay: -0.8s; }\n\n@-webkit-keyframes sk-stretchdelay {\n 0%,\n 40%,\n 100% {\n -webkit-transform: scaleY(0.4); }\n 20% {\n -webkit-transform: scaleY(1); } }\n\n@keyframes sk-stretchdelay {\n 0%,\n 40%,\n 100% {\n transform: scaleY(0.4);\n -webkit-transform: scaleY(0.4); }\n 20% {\n transform: scaleY(1);\n -webkit-transform: scaleY(1); } }\n',""])},function(e,n){function t(e,n){var t=e[1]||"",r=e[3];if(!r)return t;if(n&&"function"==typeof btoa){var a=i(r);return[t].concat(r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})).concat([a]).join("\n")}return[t].join("\n")}function i(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var i=t(n,e);return n[2]?"@media "+n[2]+"{"+i+"}":i}).join("")},n.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var a=this[r][0];"number"==typeof a&&(i[a]=!0)}for(r=0;r<e.length;r++){var o=e[r];"number"==typeof o[0]&&i[o[0]]||(t&&!o[2]?o[2]=t:t&&(o[2]="("+o[2]+") and ("+t+")"),n.push(o))}},n}},function(e,n,t){function i(e,n){for(var t=0;t<e.length;t++){var i=e[t],r=f[i.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](i.parts[a]);for(;a<i.parts.length;a++)r.parts.push(d(i.parts[a],n))}else{for(var o=[],a=0;a<i.parts.length;a++)o.push(d(i.parts[a],n));f[i.id]={id:i.id,refs:1,parts:o}}}}function r(e,n){for(var t=[],i={},r=0;r<e.length;r++){var a=e[r],o=n.base?a[0]+n.base:a[0],l=a[1],s=a[2],c=a[3],d={css:l,media:s,sourceMap:c};i[o]?i[o].parts.push(d):t.push(i[o]={id:o,parts:[d]})}return t}function a(e,n){var t=g(e.insertInto);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=y[y.length-1];if("top"===e.insertAt)i?i.nextSibling?t.insertBefore(n,i.nextSibling):t.appendChild(n):t.insertBefore(n,t.firstChild),y.push(n);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");t.appendChild(n)}}function o(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var n=y.indexOf(e);n>=0&&y.splice(n,1)}function l(e){var n=document.createElement("style");return e.attrs.type="text/css",c(n,e.attrs),a(e,n),n}function s(e){var n=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",c(n,e.attrs),a(e,n),n}function c(e,n){Object.keys(n).forEach(function(t){e.setAttribute(t,n[t])})}function d(e,n){var t,i,r,a;if(n.transform&&e.css){if(!(a=n.transform(e.css)))return function(){};e.css=a}if(n.singleton){var c=b++;t=m||(m=l(n)),i=u.bind(null,t,c,!1),r=u.bind(null,t,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(t=s(n),i=v.bind(null,t,n),r=function(){o(t),t.href&&URL.revokeObjectURL(t.href)}):(t=l(n),i=p.bind(null,t),r=function(){o(t)});return i(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;i(e=n)}else r()}}function u(e,n,t,i){var r=t?"":i.css;if(e.styleSheet)e.styleSheet.cssText=w(n,r);else{var a=document.createTextNode(r),o=e.childNodes;o[n]&&e.removeChild(o[n]),o.length?e.insertBefore(a,o[n]):e.appendChild(a)}}function p(e,n){var t=n.css,i=n.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}function v(e,n,t){var i=t.css,r=t.sourceMap,a=void 0===n.convertToAbsoluteUrls&&r;(n.convertToAbsoluteUrls||a)&&(i=x(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([i],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(o),l&&URL.revokeObjectURL(l)}var f={},h=function(e){var n;return function(){return void 0===n&&(n=e.apply(this,arguments)),n}}(function(){return window&&document&&document.all&&!window.atob}),g=function(e){var n={};return function(t){return void 0===n[t]&&(n[t]=e.call(this,t)),n[t]}}(function(e){return document.querySelector(e)}),m=null,b=0,y=[],x=t(6);e.exports=function(e,n){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");n=n||{},n.attrs="object"==typeof n.attrs?n.attrs:{},n.singleton||(n.singleton=h()),n.insertInto||(n.insertInto="head"),n.insertAt||(n.insertAt="bottom");var t=r(e,n);return i(t,n),function(e){for(var a=[],o=0;o<t.length;o++){var l=t[o],s=f[l.id];s.refs--,a.push(s)}if(e){i(r(e,n),n)}for(var o=0;o<a.length;o++){var s=a[o];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete f[s.id]}}}};var w=function(){var e=[];return function(n,t){return e[n]=t,e.filter(Boolean).join("\n")}}()},function(e,n){e.exports=function(e){var n="undefined"!=typeof window&&window.location;if(!n)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var t=n.protocol+"//"+n.host,i=t+n.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,n){var r=n.trim().replace(/^"(.*)"$/,function(e,n){return n}).replace(/^'(.*)'$/,function(e,n){return n});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r))return e;var a;return a=0===r.indexOf("//")?r:0===r.indexOf("/")?t+r:i+r.replace(/^\.\//,""),"url("+JSON.stringify(a)+")"})}}])});
9
- </script>
6
+ <script src="https://cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
7
+ <script src="//cdn.jsdelivr.net/npm/valine@1.1.6/dist/Valine.min.js"></script>
10
8
  <div style="padding:0px 16px;" class="comment"></div>
11
9
  <script>
12
10
  new Valine({
13
11
  av: AV,
14
12
  el: '.comment',
13
+ notify: {{site.data.site.comment.valine_notify}},
14
+ verify: {{site.data.site.comment.valine_verify}},
15
15
  app_id: '{{site.data.site.comment.valine_app_id}}',
16
16
  app_key: '{{site.data.site.comment.valine_app_key}}',
17
17
  placeholder: '{{site.data.site.comment.valine_placeholder}}'
@@ -1,8 +1,8 @@
1
1
  {% if site.data.site.custom_css!="" %}
2
2
  {% assign css = site.data.site.custom_css %}
3
+ <link rel="stylesheet" href="{{ "/assets/css/" | prepend: site.baseurl |append: css }}">
3
4
  {% endif %}
4
5
  {% if site.data.site.custom_js!="" %}
5
6
  {% assign js = site.data.site.custom_js %}
6
- {% endif %}
7
- <link rel="stylesheet" href="{{ "/assets/css/" | prepend: site.baseurl |append: css }}">
8
7
  <script src="{{ "/assets/js/" | prepend: site.baseurl |append: js }}"></script>
8
+ {% endif %}
@@ -1,4 +1,4 @@
1
- <link href="//cdn.bootcss.com/prism/9000.0.1/themes/{{site.data.site.prism.themes}}.min.css" rel="stylesheet">
1
+ <link href="//cdn.bootcss.com/prism/1.6.0/themes/{{site.data.site.prism.themes}}.min.css" rel="stylesheet">
2
2
  <script>
3
3
  var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\blang(?:uage)?-(\w+)\b/i,t=0,n=_self.Prism={manual:_self.Prism&&_self.Prism.manual,util:{encode:function(e){return e instanceof a?new a(e.type,n.util.encode(e.content),e.alias):"Array"===n.util.type(e)?e.map(n.util.encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function(e){var t=n.util.type(e);switch(t){case"Object":var a={};for(var r in e)e.hasOwnProperty(r)&&(a[r]=n.util.clone(e[r]));return a;case"Array":return e.map&&e.map(function(e){return n.util.clone(e)})}return e}},languages:{extend:function(e,t){var a=n.util.clone(n.languages[e]);for(var r in t)a[r]=t[r];return a},insertBefore:function(e,t,a,r){r=r||n.languages;var i=r[e];if(2==arguments.length){a=arguments[1];for(var l in a)a.hasOwnProperty(l)&&(i[l]=a[l]);return i}var o={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var l in a)a.hasOwnProperty(l)&&(o[l]=a[l]);o[s]=i[s]}return n.languages.DFS(n.languages,function(t,n){n===r[e]&&t!=e&&(this[t]=o)}),r[e]=o},DFS:function(e,t,a,r){r=r||{};for(var i in e)e.hasOwnProperty(i)&&(t.call(e,i,e[i],a||i),"Object"!==n.util.type(e[i])||r[n.util.objId(e[i])]?"Array"!==n.util.type(e[i])||r[n.util.objId(e[i])]||(r[n.util.objId(e[i])]=!0,n.languages.DFS(e[i],t,i,r)):(r[n.util.objId(e[i])]=!0,n.languages.DFS(e[i],t,null,r)))}},plugins:{},highlightAll:function(e,t){var a={callback:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",a);for(var r,i=a.elements||document.querySelectorAll(a.selector),l=0;r=i[l++];)n.highlightElement(r,e===!0,a.callback)},highlightElement:function(t,a,r){for(var i,l,o=t;o&&!e.test(o.className);)o=o.parentNode;o&&(i=(o.className.match(e)||[,""])[1].toLowerCase(),l=n.languages[i]),t.className=t.className.replace(e,"").replace(/\s+/g," ")+" language-"+i,o=t.parentNode,/pre/i.test(o.nodeName)&&(o.className=o.className.replace(e,"").replace(/\s+/g," ")+" language-"+i);var s=t.textContent,u={element:t,language:i,grammar:l,code:s};if(n.hooks.run("before-sanity-check",u),!u.code||!u.grammar)return u.code&&(n.hooks.run("before-highlight",u),u.element.textContent=u.code,n.hooks.run("after-highlight",u)),n.hooks.run("complete",u),void 0;if(n.hooks.run("before-highlight",u),a&&_self.Worker){var g=new Worker(n.filename);g.onmessage=function(e){u.highlightedCode=e.data,n.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,r&&r.call(u.element),n.hooks.run("after-highlight",u),n.hooks.run("complete",u)},g.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else u.highlightedCode=n.highlight(u.code,u.grammar,u.language),n.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,r&&r.call(t),n.hooks.run("after-highlight",u),n.hooks.run("complete",u)},highlight:function(e,t,r){var i=n.tokenize(e,t);return a.stringify(n.util.encode(i),r)},matchGrammar:function(e,t,a,r,i,l,o){var s=n.Token;for(var u in a)if(a.hasOwnProperty(u)&&a[u]){if(u==o)return;var g=a[u];g="Array"===n.util.type(g)?g:[g];for(var c=0;c<g.length;++c){var h=g[c],f=h.inside,d=!!h.lookbehind,m=!!h.greedy,p=0,y=h.alias;if(m&&!h.pattern.global){var v=h.pattern.toString().match(/[imuy]*$/)[0];h.pattern=RegExp(h.pattern.source,v+"g")}h=h.pattern||h;for(var b=r,k=i;b<t.length;k+=t[b].length,++b){var w=t[b];if(t.length>e.length)return;if(!(w instanceof s)){h.lastIndex=0;var _=h.exec(w),P=1;if(!_&&m&&b!=t.length-1){if(h.lastIndex=k,_=h.exec(e),!_)break;for(var A=_.index+(d?_[1].length:0),j=_.index+_[0].length,x=b,O=k,S=t.length;S>x&&(j>O||!t[x].type&&!t[x-1].greedy);++x)O+=t[x].length,A>=O&&(++b,k=O);if(t[b]instanceof s||t[x-1].greedy)continue;P=x-b,w=e.slice(k,O),_.index-=k}if(_){d&&(p=_[1].length);var A=_.index+p,_=_[0].slice(p),j=A+_.length,N=w.slice(0,A),C=w.slice(j),E=[b,P];N&&(++b,k+=N.length,E.push(N));var L=new s(u,f?n.tokenize(_,f):_,y,_,m);if(E.push(L),C&&E.push(C),Array.prototype.splice.apply(t,E),1!=P&&n.matchGrammar(e,t,a,b,k,!0,u),l)break}else if(l)break}}}}},tokenize:function(e,t){var a=[e],r=t.rest;if(r){for(var i in r)t[i]=r[i];delete t.rest}return n.matchGrammar(e,a,t,0,0,!1),a},hooks:{all:{},add:function(e,t){var a=n.hooks.all;a[e]=a[e]||[],a[e].push(t)},run:function(e,t){var a=n.hooks.all[e];if(a&&a.length)for(var r,i=0;r=a[i++];)r(t)}}},a=n.Token=function(e,t,n,a,r){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length,this.greedy=!!r};if(a.stringify=function(e,t,r){if("string"==typeof e)return e;if("Array"===n.util.type(e))return e.map(function(n){return a.stringify(n,t,e)}).join("");var i={type:e.type,content:a.stringify(e.content,t,r),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:r};if("comment"==i.type&&(i.attributes.spellcheck="true"),e.alias){var l="Array"===n.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(i.classes,l)}n.hooks.run("wrap",i);var o=Object.keys(i.attributes).map(function(e){return e+'="'+(i.attributes[e]||"").replace(/"/g,"&quot;")+'"'}).join(" ");return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+(o?" "+o:"")+">"+i.content+"</"+i.tag+">"},!_self.document)return _self.addEventListener?(_self.addEventListener("message",function(e){var t=JSON.parse(e.data),a=t.language,r=t.code,i=t.immediateClose;_self.postMessage(n.highlight(r,n.languages[a],a)),i&&_self.close()},!1),_self.Prism):_self.Prism;var r=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return r&&(n.filename=r.src,!document.addEventListener||n.manual||r.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(n.highlightAll):window.setTimeout(n.highlightAll,16):document.addEventListener("DOMContentLoaded",n.highlightAll))),_self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism);
4
4
  Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:/<!DOCTYPE[\s\S]+?>/i,cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\s\S])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\s\S]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.hooks.add("wrap",function(a){"entity"===a.type&&(a.attributes.title=a.content.replace(/&amp;/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup;
@@ -8,5 +8,5 @@ Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\b(as|async|
8
8
  </script>
9
9
 
10
10
  {%for l in site.data.site.prism.components%}
11
- <script src="//cdn.bootcss.com/prism/9000.0.1/components/prism-{{ l }}.min.js"></script>
11
+ <script src="//cdn.bootcss.com/prism/1.6.0/components/prism-{{ l }}.min.js"></script>
12
12
  {% endfor %}
@@ -31,6 +31,7 @@
31
31
  color: white;
32
32
  }
33
33
  </style>
34
+ {% include content/component/lazyload.html %}
34
35
  <div id="postpage" class="mdui-container">
35
36
  <div class="k-posts-list"></div>
36
37
  <div class="mdui-row">
@@ -12,6 +12,7 @@
12
12
  text-decoration: none;
13
13
  }
14
14
  </style>
15
+ {% include content/component/lazyload.html %}
15
16
  <div id="postpage" class="mdui-container k-container">
16
17
  <div class="k-posts-list"></div>
17
18
  <div class="mdui-row">
@@ -34,7 +34,7 @@
34
34
  <div class="">
35
35
  {% endif %}
36
36
  <div class="mdui-card-content">
37
-
37
+ {% include content/component/lazyload.html %}
38
38
 
39
39
  {% for tag in sortedtags %}
40
40
  {% assign index = site.tags[tag] | size %}
data/_includes/head.html CHANGED
@@ -19,12 +19,12 @@
19
19
  <link rel="manifest" href="{{ "/manifest.json" | prepend: site.baseurl }}">
20
20
 
21
21
  <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
22
- <script src="https://cdn.bootcss.com/mdui/0.2.1/js/mdui.min.js"></script>
22
+ <script src="https://cdn.bootcss.com/mdui/0.3.0/js/mdui.min.js"></script>
23
23
  <script src="{{ "/assets/js/History.js" | prepend: site.baseurl }}"></script>
24
24
 
25
- <link rel="preload" href="https://cdn.bootcss.com/mdui/0.2.1/css/mdui.min.css" as="style" onload="this.rel='stylesheet'">
25
+ <link rel="preload" href="https://cdn.bootcss.com/mdui/0.3.0/css/mdui.min.css" as="style" onload="this.rel='stylesheet'">
26
26
  <link rel="preload" href="{{ "/assets/css/global.css" | prepend: site.baseurl }}" as="style" onload="this.rel='stylesheet'">
27
- <noscript><link rel="stylesheet" href="https://cdn.bootcss.com/mdui/0.2.1/css/mdui.min.css"></noscript>
27
+ <noscript><link rel="stylesheet" href="https://cdn.bootcss.com/mdui/0.3.0/css/mdui.min.css"></noscript>
28
28
  <noscript><link rel="stylesheet" href="{{ "/assets/css/global.css" | prepend: site.baseurl }}"></noscript>
29
29
 
30
30
  {% include component/nprogress.html %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-mdui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - KeJun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-15 00:00:00.000000000 Z
11
+ date: 2017-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll