diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d18d039..9bbec18d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: with: ref: "${{ github.head_ref }}" - name: Install dependencies and Build Theme - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 - run: npm install - run: npm run assets - name: Commit and push Chart.js changes diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 86810e12..ff7a6c44 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1,6 +1,6 @@ /*! Blowfish | MIT License | https://github.com/nunocoracao/blowfish */ -/*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com */ +/*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com */ /* 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) diff --git a/assets/icons/x-twitter.svg b/assets/icons/x-twitter.svg new file mode 100644 index 00000000..627453e8 --- /dev/null +++ b/assets/icons/x-twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/lib/fuse/fuse.min.js b/assets/lib/fuse/fuse.min.js index adc28356..1f534ad9 100644 --- a/assets/lib/fuse/fuse.min.js +++ b/assets/lib/fuse/fuse.min.js @@ -1,9 +1,9 @@ /** - * Fuse.js v6.6.2 - Lightweight fuzzy-search (http://fusejs.io) + * Fuse.js v7.0.0 - Lightweight fuzzy-search (http://fusejs.io) * - * Copyright (c) 2022 Kiro Risk (http://kiro.me) + * Copyright (c) 2023 Kiro Risk (http://kiro.me) * All Rights Reserved. Apache Software License 2.0 * * http://www.apache.org/licenses/LICENSE-2.0 */ -var e,t;e=this,t=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=new Map,r=Math.pow(10,t);return{get:function(t){var i=t.match(C).length;if(n.has(i))return n.get(i);var o=1/Math.pow(i,.5*e),c=parseFloat(Math.round(o*r)/r);return n.set(i,c),c},clear:function(){n.clear()}}}var $=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,i=void 0===n?I.getFn:n,o=t.fieldNormWeight,c=void 0===o?I.fieldNormWeight:o;r(this,e),this.norm=E(c,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return o(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,g(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();g(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?I.getFn:r,o=n.fieldNormWeight,c=void 0===o?I.fieldNormWeight:o,a=new $({getFn:i,fieldNormWeight:c});return a.setKeys(e.map(_)),a.setSources(t),a.create(),a}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,i=t.currentLocation,o=void 0===i?0:i,c=t.expectedLocation,a=void 0===c?0:c,s=t.distance,u=void 0===s?I.distance:s,h=t.ignoreLocation,l=void 0===h?I.ignoreLocation:h,f=r/e.length;if(l)return f;var d=Math.abs(a-o);return u?f+d/u:d?1:f}function N(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.minMatchCharLength,n=[],r=-1,i=-1,o=0,c=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}var P=32;function W(e){for(var t={},n=0,r=e.length;n1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,c=void 0===o?I.location:o,a=i.threshold,s=void 0===a?I.threshold:a,u=i.distance,h=void 0===u?I.distance:u,l=i.includeMatches,f=void 0===l?I.includeMatches:l,d=i.findAllMatches,v=void 0===d?I.findAllMatches:d,g=i.minMatchCharLength,y=void 0===g?I.minMatchCharLength:g,p=i.isCaseSensitive,m=void 0===p?I.isCaseSensitive:p,k=i.ignoreLocation,M=void 0===k?I.ignoreLocation:k;if(r(this,e),this.options={location:c,threshold:s,distance:h,includeMatches:f,findAllMatches:v,minMatchCharLength:y,isCaseSensitive:m,ignoreLocation:M},this.pattern=m?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var b=function(e,t){n.chunks.push({pattern:e,alphabet:W(e),startIndex:t})},x=this.pattern.length;if(x>P){for(var w=0,L=x%P,S=x-L;w3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?I.location:i,c=r.distance,a=void 0===c?I.distance:c,s=r.threshold,u=void 0===s?I.threshold:s,h=r.findAllMatches,l=void 0===h?I.findAllMatches:h,f=r.minMatchCharLength,d=void 0===f?I.minMatchCharLength:f,v=r.includeMatches,g=void 0===v?I.includeMatches:v,y=r.ignoreLocation,p=void 0===y?I.ignoreLocation:y;if(t.length>P)throw new Error(w(P));for(var m,k=t.length,M=e.length,b=Math.max(0,Math.min(o,M)),x=u,L=b,S=d>1||g,_=S?Array(M):[];(m=e.indexOf(t,L))>-1;){var O=R(t,{currentLocation:m,expectedLocation:b,distance:a,ignoreLocation:p});if(x=Math.min(O,x),L=m+k,S)for(var j=0;j=z;q-=1){var B=q-1,J=n[e.charAt(B)];if(S&&(_[B]=+!!J),K[q]=(K[q+1]<<1|1)&J,F&&(K[q]|=(A[q+1]|A[q])<<1|1|A[q+1]),K[q]&$&&(C=R(t,{errors:F,currentLocation:B,expectedLocation:b,distance:a,ignoreLocation:p}))<=x){if(x=C,(L=B)<=b)break;z=Math.max(1,2*b-L)}}if(R(t,{errors:F+1,currentLocation:b,expectedLocation:b,distance:a,ignoreLocation:p})>x)break;A=K}var U={isMatch:L>=0,score:Math.max(.001,C)};if(S){var V=N(_,d);V.length?g&&(U.indices=V):U.isMatch=!1}return U}(e,n,i,{location:c+o,distance:a,threshold:s,findAllMatches:u,minMatchCharLength:h,includeMatches:r,ignoreLocation:l}),p=y.isMatch,m=y.score,k=y.indices;p&&(g=!0),v+=m,p&&k&&(d=[].concat(f(d),f(k)))}));var y={isMatch:g,score:g?v/this.chunks.length:1};return g&&r&&(y.indices=d),y}}]),e}(),z=function(){function e(t){r(this,e),this.pattern=t}return o(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return D(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return D(e,this.singleRegex)}}]),e}();function D(e,t){var n=e.match(t);return n?n[1]:null}var K=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),n}(z),q=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),n}(z),B=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),n}(z),J=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),n}(z),U=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),n}(z),V=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),n}(z),G=function(e){a(n,e);var t=l(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=o.location,a=void 0===c?I.location:c,s=o.threshold,u=void 0===s?I.threshold:s,h=o.distance,l=void 0===h?I.distance:h,f=o.includeMatches,d=void 0===f?I.includeMatches:f,v=o.findAllMatches,g=void 0===v?I.findAllMatches:v,y=o.minMatchCharLength,p=void 0===y?I.minMatchCharLength:y,m=o.isCaseSensitive,k=void 0===m?I.isCaseSensitive:m,M=o.ignoreLocation,b=void 0===M?I.ignoreLocation:M;return r(this,n),(i=t.call(this,e))._bitapSearch=new T(e,{location:a,threshold:u,distance:l,includeMatches:d,findAllMatches:g,minMatchCharLength:p,isCaseSensitive:k,ignoreLocation:b}),i}return o(n,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),n}(z),H=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){for(var t,n=0,r=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);var o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),n}(z),Q=[K,H,B,J,V,U,q,G],X=Q.length,Y=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(Y).filter((function(e){return e&&!!e.trim()})),r=[],i=0,o=n.length;i1&&void 0!==arguments[1]?arguments[1]:{},i=n.isCaseSensitive,o=void 0===i?I.isCaseSensitive:i,c=n.includeMatches,a=void 0===c?I.includeMatches:c,s=n.minMatchCharLength,u=void 0===s?I.minMatchCharLength:s,h=n.ignoreLocation,l=void 0===h?I.ignoreLocation:h,f=n.findAllMatches,d=void 0===f?I.findAllMatches:f,v=n.location,g=void 0===v?I.location:v,y=n.threshold,p=void 0===y?I.threshold:y,m=n.distance,k=void 0===m?I.distance:m;r(this,e),this.query=null,this.options={isCaseSensitive:o,includeMatches:a,minMatchCharLength:u,findAllMatches:d,ignoreLocation:l,location:g,threshold:p,distance:k},this.pattern=o?t:t.toLowerCase(),this.query=Z(this.pattern,this.options)}return o(e,[{key:"searchIn",value:function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;e=n.isCaseSensitive?e:e.toLowerCase();for(var i=0,o=[],c=0,a=0,s=t.length;a-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function ve(e,t){t.score=e.score}function ge(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?I.includeMatches:r,o=n.includeScore,c=void 0===o?I.includeScore:o,a=[];return i&&a.push(de),c&&a.push(ve),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return a.length&&a.forEach((function(t){t(e,r)})),r}))}var ye=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;r(this,e),this.options=t(t({},I),i),this.options.useExtendedSearch,this._keyStore=new S(this.options.keys),this.setCollection(n,o)}return o(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof $))throw new Error("Incorrect 'index' type");this._myIndex=t||F(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){k(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?-1:n,i=this.options,o=i.includeMatches,c=i.includeScore,a=i.shouldSort,s=i.sortFn,u=i.ignoreFieldNorm,h=g(e)?g(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return fe(h,{ignoreFieldNorm:u}),a&&h.sort(s),y(r)&&r>-1&&(h=h.slice(0,r)),ge(h,this._docs,{includeMatches:o,includeScore:c})}},{key:"_searchStringList",value:function(e){var t=re(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,i=e.i,o=e.n;if(k(n)){var c=t.searchIn(n),a=c.isMatch,s=c.score,u=c.indices;a&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:u}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,n=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).auto,r=void 0===n||n,i=function e(n){var i=Object.keys(n),o=ue(n);if(!o&&i.length>1&&!se(n))return e(le(n));if(he(n)){var c=o?n[ce]:i[0],a=o?n[ae]:n[c];if(!g(a))throw new Error(x(c));var s={keyId:j(c),pattern:a};return r&&(s.searcher=re(a,t)),s}var u={children:[],operator:i[0]};return i.forEach((function(t){var r=n[t];v(r)&&r.forEach((function(t){u.children.push(e(t))}))})),u};return se(e)||(e=le(e)),i(e)}(e,this.options),r=function e(n,r,i){if(!n.children){var o=n.keyId,c=n.searcher,a=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(r,o),searcher:c});return a&&a.length?[{idx:i,item:r,matches:a}]:[]}for(var s=[],u=0,h=n.children.length;u1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?I.getFn:n,i=t.fieldNormWeight,o=void 0===i?I.fieldNormWeight:i,c=e.keys,a=e.records,s=new $({getFn:r,fieldNormWeight:o});return s.setKeys(c),s.setIndexRecords(a),s},ye.config=I,function(){ne.push.apply(ne,arguments)}(te),ye},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Fuse=t(); \ No newline at end of file +var e,t;e=this,t=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,i=void 0===n?$.getFn:n,o=t.fieldNormWeight,c=void 0===o?$.fieldNormWeight:o;r(this,e),this.norm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=new Map,r=Math.pow(10,t);return{get:function(t){var i=t.match(F).length;if(n.has(i))return n.get(i);var o=1/Math.pow(i,.5*e),c=parseFloat(Math.round(o*r)/r);return n.set(i,c),c},clear:function(){n.clear()}}}(c,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return o(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,m(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();m(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?$.getFn:r,o=n.fieldNormWeight,c=void 0===o?$.fieldNormWeight:o,a=new R({getFn:i,fieldNormWeight:c});return a.setKeys(e.map(A)),a.setSources(t),a.create(),a}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,i=t.currentLocation,o=void 0===i?0:i,c=t.expectedLocation,a=void 0===c?0:c,s=t.distance,u=void 0===s?$.distance:s,h=t.ignoreLocation,l=void 0===h?$.ignoreLocation:h,f=r/e.length;if(l)return f;var d=Math.abs(a-o);return u?f+d/u:d?1:f}var W=32;function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?$.location:i,c=r.distance,a=void 0===c?$.distance:c,s=r.threshold,u=void 0===s?$.threshold:s,h=r.findAllMatches,l=void 0===h?$.findAllMatches:h,f=r.minMatchCharLength,d=void 0===f?$.minMatchCharLength:f,v=r.includeMatches,g=void 0===v?$.includeMatches:v,y=r.ignoreLocation,p=void 0===y?$.ignoreLocation:y;if(t.length>W)throw new Error("Pattern length exceeds max of ".concat(W,"."));for(var m,k=t.length,M=e.length,b=Math.max(0,Math.min(o,M)),x=u,w=b,S=d>1||g,L=S?Array(M):[];(m=e.indexOf(t,w))>-1;){var _=N(t,{currentLocation:m,expectedLocation:b,distance:a,ignoreLocation:p});if(x=Math.min(_,x),w=m+k,S)for(var O=0;O=P;D-=1){var K=D-1,q=n[e.charAt(K)];if(S&&(L[K]=+!!q),z[D]=(z[D+1]<<1|1)&q,E&&(z[D]|=(j[D+1]|j[D])<<1|1|j[D+1]),z[D]&C&&(A=N(t,{errors:E,currentLocation:K,expectedLocation:b,distance:a,ignoreLocation:p}))<=x){if(x=A,(w=K)<=b)break;P=Math.max(1,2*b-w)}}if(N(t,{errors:E+1,currentLocation:b,expectedLocation:b,distance:a,ignoreLocation:p})>x)break;j=z}var B={isMatch:w>=0,score:Math.max(.001,A)};if(S){var J=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$.minMatchCharLength,n=[],r=-1,i=-1,o=0,c=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(L,d);J.length?g&&(B.indices=J):B.isMatch=!1}return B}function z(e){for(var t={},n=0,r=e.length;n1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,c=void 0===o?$.location:o,a=i.threshold,s=void 0===a?$.threshold:a,u=i.distance,h=void 0===u?$.distance:u,l=i.includeMatches,f=void 0===l?$.includeMatches:l,d=i.findAllMatches,v=void 0===d?$.findAllMatches:d,g=i.minMatchCharLength,y=void 0===g?$.minMatchCharLength:g,p=i.isCaseSensitive,m=void 0===p?$.isCaseSensitive:p,k=i.ignoreLocation,M=void 0===k?$.ignoreLocation:k;if(r(this,e),this.options={location:c,threshold:s,distance:h,includeMatches:f,findAllMatches:v,minMatchCharLength:y,isCaseSensitive:m,ignoreLocation:M},this.pattern=m?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var b=function(e,t){n.chunks.push({pattern:e,alphabet:z(e),startIndex:t})},x=this.pattern.length;if(x>W){for(var w=0,S=x%W,L=x-S;w1&&void 0!==arguments[1]?arguments[1]:{},c=o.location,a=void 0===c?$.location:c,s=o.threshold,u=void 0===s?$.threshold:s,h=o.distance,l=void 0===h?$.distance:h,f=o.includeMatches,d=void 0===f?$.includeMatches:f,v=o.findAllMatches,g=void 0===v?$.findAllMatches:v,y=o.minMatchCharLength,p=void 0===y?$.minMatchCharLength:y,m=o.isCaseSensitive,k=void 0===m?$.isCaseSensitive:m,M=o.ignoreLocation,b=void 0===M?$.ignoreLocation:M;return r(this,n),(i=t.call(this,e))._bitapSearch=new D(e,{location:a,threshold:u,distance:l,includeMatches:d,findAllMatches:g,minMatchCharLength:p,isCaseSensitive:k,ignoreLocation:b}),i}return o(n,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),n}(K),X=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){for(var t,n=0,r=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);var o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),n}(K),Y=[B,X,U,V,H,G,J,Q],Z=Y.length,ee=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,te=new Set([Q.type,X.type]),ne=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.isCaseSensitive,o=void 0===i?$.isCaseSensitive:i,c=n.includeMatches,a=void 0===c?$.includeMatches:c,s=n.minMatchCharLength,u=void 0===s?$.minMatchCharLength:s,h=n.ignoreLocation,l=void 0===h?$.ignoreLocation:h,f=n.findAllMatches,d=void 0===f?$.findAllMatches:f,v=n.location,g=void 0===v?$.location:v,y=n.threshold,p=void 0===y?$.threshold:y,m=n.distance,k=void 0===m?$.distance:m;r(this,e),this.query=null,this.options={isCaseSensitive:o,includeMatches:a,minMatchCharLength:u,findAllMatches:d,ignoreLocation:l,location:g,threshold:p,distance:k},this.pattern=o?t:t.toLowerCase(),this.query=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(ee).filter((function(e){return e&&!!e.trim()})),r=[],i=0,o=n.length;i2&&void 0!==arguments[2]?arguments[2]:{}).auto,r=void 0===n||n;return ue(e)||(e=he(e)),function e(n){var i=Object.keys(n),o=function(e){return!!e[ae]}(n);if(!o&&i.length>1&&!ue(n))return e(he(n));if(function(e){return!g(e)&&b(e)&&!ue(e)}(n)){var c=o?n[ae]:i[0],a=o?n[se]:n[c];if(!m(a))throw new Error(function(e){return"Invalid value for key ".concat(e)}(c));var s={keyId:C(c),pattern:a};return r&&(s.searcher=ie(a,t)),s}var u={children:[],operator:i[0]};return i.forEach((function(t){var r=n[t];g(r)&&r.forEach((function(t){u.children.push(e(t))}))})),u}(e)}function fe(e,t){var n=e.matches;t.matches=[],x(n)&&n.forEach((function(e){if(x(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function de(e,t){t.score=e.score}var ve=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;r(this,e),this.options=t(t({},$),i),this.options.useExtendedSearch,this._keyStore=new j(this.options.keys),this.setCollection(n,o)}return o(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof R))throw new Error("Incorrect 'index' type");this._myIndex=t||P(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){x(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n1&&void 0!==arguments[1]?arguments[1]:{}).limit,n=void 0===t?-1:t,r=this.options,i=r.includeMatches,o=r.includeScore,c=r.shouldSort,a=r.sortFn,s=r.ignoreFieldNorm,u=m(e)?m(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,t){var n=t.ignoreFieldNorm,r=void 0===n?$.ignoreFieldNorm:n;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var n=e.key,i=e.norm,o=e.score,c=n?n.weight:null;t*=Math.pow(0===o&&c?Number.EPSILON:o,(c||1)*(r?1:i))})),e.score=t}))}(u,{ignoreFieldNorm:s}),c&&u.sort(a),k(n)&&n>-1&&(u=u.slice(0,n)),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?$.includeMatches:r,o=n.includeScore,c=void 0===o?$.includeScore:o,a=[];return i&&a.push(fe),c&&a.push(de),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return a.length&&a.forEach((function(t){t(e,r)})),r}))}(u,this._docs,{includeMatches:i,includeScore:o})}},{key:"_searchStringList",value:function(e){var t=ie(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,i=e.i,o=e.n;if(x(n)){var c=t.searchIn(n),a=c.isMatch,s=c.score,u=c.indices;a&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:u}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,n=le(e,this.options),r=function e(n,r,i){if(!n.children){var o=n.keyId,c=n.searcher,a=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(r,o),searcher:c});return a&&a.length?[{idx:i,item:r,matches:a}]:[]}for(var s=[],u=0,h=n.children.length;u1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?$.getFn:n,i=t.fieldNormWeight,o=void 0===i?$.fieldNormWeight:i,c=e.keys,a=e.records,s=new R({getFn:r,fieldNormWeight:o});return s.setKeys(c),s.setIndexRecords(a),s},ve.config=$,function(){re.push.apply(re,arguments)}(ne),ve},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Fuse=t(); \ No newline at end of file diff --git a/config.toml b/config.toml index c68d7a64..2c606472 100644 --- a/config.toml +++ b/config.toml @@ -2,4 +2,4 @@ [module.hugoVersion] extended = true min = "0.87.0" - max = "0.119.0" \ No newline at end of file + max = "0.120.3" \ No newline at end of file diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index f138bb18..c50fd6e4 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -58,6 +58,7 @@ title = "Blowfish" # { tumblr = "https://username.tumblr.com" }, # { twitch = "https://twitch.tv/username" }, # { twitter = "https://twitter.com/username" }, +# { x-twitter = "https://twitter.com/username" }, # { whatsapp = "https://wa.me/phone-number" }, # { youtube = "https://youtube.com/username" }, # { ko-fi = "https://ko-fi.com/username" }, diff --git a/data/sharing.json b/data/sharing.json index b43eb3fe..a0669ffe 100644 --- a/data/sharing.json +++ b/data/sharing.json @@ -25,7 +25,7 @@ "url": "https://reddit.com/submit/?url=%s&resubmit=true&title=%s" }, "twitter": { - "icon": "twitter", + "icon": "x-twitter", "title": "sharing.twitter", "url": "https://twitter.com/intent/tweet/?url=%s&text=%s" }, diff --git a/exampleSite/config/_default/languages.en.toml b/exampleSite/config/_default/languages.en.toml index e217854e..1baad363 100644 --- a/exampleSite/config/_default/languages.en.toml +++ b/exampleSite/config/_default/languages.en.toml @@ -19,7 +19,7 @@ title = "Blowfish" headline = "A powerful, lightweight theme for Hugo built with Tailwind CSS." bio = "A powerful, lightweight theme for Hugo built with Tailwind CSS." links = [ - { twitter = "https://twitter.com/burufugu" }, + { x-twitter = "https://twitter.com/burufugu" }, { mastodon = "https://masto.ai/@blowfish" }, { github = "https://github.com/nunocoracao/blowfish" }, ] diff --git a/exampleSite/config/_default/menus.en.toml b/exampleSite/config/_default/menus.en.toml index 55849224..b38af0e6 100644 --- a/exampleSite/config/_default/menus.en.toml +++ b/exampleSite/config/_default/menus.en.toml @@ -58,7 +58,7 @@ [[main]] identifier = "twitter" - pre = "twitter" + pre = "x-twitter" url = "https://twitter.com/burufugu" weight = 200 diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index ce797c16..ff6665f5 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -89,7 +89,7 @@ smartTOCHideUnfocusedChildren = false constrainItemsWidth = false [sitemap] - excludedKinds = ["taxonomy","term"] + excludedKinds = [] [taxonomy] showTermCount = true diff --git a/exampleSite/content/pagtest/_index.md b/exampleSite/content/pagtest/_index.md deleted file mode 100644 index a2578a5c..00000000 --- a/exampleSite/content/pagtest/_index.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: "TEST" -date: 2022-06-13T20:55:37+01:00 -draft: true - -showDate : false -showDateUpdated : false -showHeadingAnchors : false -showPagination : false -showReadingTime : false -showTableOfContents : true -showTaxonomies : false -showWordCount : false -showSummary : false -sharingLinks : false - -cardView: false ---- - diff --git a/exampleSite/content/pagtest/file1 copy 10.md b/exampleSite/content/pagtest/file1 copy 10.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 10.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 11.md b/exampleSite/content/pagtest/file1 copy 11.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 11.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 12.md b/exampleSite/content/pagtest/file1 copy 12.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 12.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 13.md b/exampleSite/content/pagtest/file1 copy 13.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 13.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 14.md b/exampleSite/content/pagtest/file1 copy 14.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 14.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 15.md b/exampleSite/content/pagtest/file1 copy 15.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 15.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 16.md b/exampleSite/content/pagtest/file1 copy 16.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 16.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 17.md b/exampleSite/content/pagtest/file1 copy 17.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 17.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 18.md b/exampleSite/content/pagtest/file1 copy 18.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 18.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 19.md b/exampleSite/content/pagtest/file1 copy 19.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 19.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 2.md b/exampleSite/content/pagtest/file1 copy 2.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 2.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 20.md b/exampleSite/content/pagtest/file1 copy 20.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 20.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 21.md b/exampleSite/content/pagtest/file1 copy 21.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 21.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 22.md b/exampleSite/content/pagtest/file1 copy 22.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 22.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 23.md b/exampleSite/content/pagtest/file1 copy 23.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 23.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 24.md b/exampleSite/content/pagtest/file1 copy 24.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 24.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 25.md b/exampleSite/content/pagtest/file1 copy 25.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 25.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 26.md b/exampleSite/content/pagtest/file1 copy 26.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 26.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 27.md b/exampleSite/content/pagtest/file1 copy 27.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 27.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 28.md b/exampleSite/content/pagtest/file1 copy 28.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 28.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 3.md b/exampleSite/content/pagtest/file1 copy 3.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 3.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 4.md b/exampleSite/content/pagtest/file1 copy 4.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 4.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 5.md b/exampleSite/content/pagtest/file1 copy 5.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 5.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 6.md b/exampleSite/content/pagtest/file1 copy 6.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 6.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 7.md b/exampleSite/content/pagtest/file1 copy 7.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 7.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 8.md b/exampleSite/content/pagtest/file1 copy 8.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 8.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 9.md b/exampleSite/content/pagtest/file1 copy 9.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 9.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy.md b/exampleSite/content/pagtest/file1 copy.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1.md b/exampleSite/content/pagtest/file1.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/samples/icons/index.md b/exampleSite/content/samples/icons/index.md index 6bbbd258..e20880f5 100644 --- a/exampleSite/content/samples/icons/index.md +++ b/exampleSite/content/samples/icons/index.md @@ -106,5 +106,6 @@ The full list of built-in icons and their corresponding names can referenced bel | twitter | {{< icon twitter >}} | | wand-magic-sparkles | {{< icon wand-magic-sparkles >}} | | whatsapp | {{< icon whatsapp >}} | +| x-twitter | {{< icon x-twitter >}} | | xmark | {{< icon xmark >}} | | youtube | {{< icon youtube >}} | diff --git a/exampleSite/content/users/adilhyz.github.io/index.md b/exampleSite/content/users/adilhyz.github.io/index.md index 9a3ce59e..b6b1fc75 100644 --- a/exampleSite/content/users/adilhyz.github.io/index.md +++ b/exampleSite/content/users/adilhyz.github.io/index.md @@ -2,7 +2,7 @@ title: "adilhyz.github.io" tags: [Personal site] externalUrl: "https://adilhyz.github.io" - date: 9938-08-08 + date: 9939-08-08 showDate: false showAuthor: false showReadingTime: false diff --git a/exampleSite/content/users/adir1.com/feature.jpg b/exampleSite/content/users/adir1.com/feature.jpg index 6d65ffce..4d7e6c4f 100644 Binary files a/exampleSite/content/users/adir1.com/feature.jpg and b/exampleSite/content/users/adir1.com/feature.jpg differ diff --git a/exampleSite/content/users/alejandro-ao.com/feature.jpg b/exampleSite/content/users/alejandro-ao.com/feature.jpg index 95423e47..78a49295 100644 Binary files a/exampleSite/content/users/alejandro-ao.com/feature.jpg and b/exampleSite/content/users/alejandro-ao.com/feature.jpg differ diff --git a/exampleSite/content/users/bbagwang.com/index.md b/exampleSite/content/users/bbagwang.com/index.md index 18865886..3f31963c 100644 --- a/exampleSite/content/users/bbagwang.com/index.md +++ b/exampleSite/content/users/bbagwang.com/index.md @@ -2,7 +2,7 @@ title: "bbagwang.com" tags: [Personal site] externalUrl: "https://bbagwang.com" - date: 9944-08-08 + date: 9945-08-08 showDate: false showAuthor: false showReadingTime: false diff --git a/exampleSite/content/users/blastomussa.dev/feature.jpg b/exampleSite/content/users/blastomussa.dev/feature.jpg index 8cde2097..61cedd0c 100644 Binary files a/exampleSite/content/users/blastomussa.dev/feature.jpg and b/exampleSite/content/users/blastomussa.dev/feature.jpg differ diff --git a/exampleSite/content/users/blog.enmanuelmoreira.com/feature.jpg b/exampleSite/content/users/blog.enmanuelmoreira.com/feature.jpg index d2cf1241..c8fea02e 100644 Binary files a/exampleSite/content/users/blog.enmanuelmoreira.com/feature.jpg and b/exampleSite/content/users/blog.enmanuelmoreira.com/feature.jpg differ diff --git a/exampleSite/content/users/blog.muffn.io/feature.jpg b/exampleSite/content/users/blog.muffn.io/feature.jpg index 24c57f88..c707d7eb 100644 Binary files a/exampleSite/content/users/blog.muffn.io/feature.jpg and b/exampleSite/content/users/blog.muffn.io/feature.jpg differ diff --git a/exampleSite/content/users/clemsau.com/feature.jpg b/exampleSite/content/users/clemsau.com/feature.jpg index fd2b7c0d..bf045ba9 100644 Binary files a/exampleSite/content/users/clemsau.com/feature.jpg and b/exampleSite/content/users/clemsau.com/feature.jpg differ diff --git a/exampleSite/content/users/deepumohan.com-tech/index.md b/exampleSite/content/users/deepumohan.com-tech/index.md index 83a9f07b..b99b30bb 100644 --- a/exampleSite/content/users/deepumohan.com-tech/index.md +++ b/exampleSite/content/users/deepumohan.com-tech/index.md @@ -2,7 +2,7 @@ title: "deepumohan.com/tech" tags: [Technology Blog] externalUrl: "https://deepumohan.com/tech/" - date: 9935-08-08 + date: 9936-08-08 showDate: false showAuthor: false showReadingTime: false diff --git a/exampleSite/content/users/dizzytech.de/feature.jpg b/exampleSite/content/users/dizzytech.de/feature.jpg index 46a3fe4e..febb4ad8 100644 Binary files a/exampleSite/content/users/dizzytech.de/feature.jpg and b/exampleSite/content/users/dizzytech.de/feature.jpg differ diff --git a/exampleSite/content/users/gma.name/index.md b/exampleSite/content/users/gma.name/index.md index e5f898e4..1c65f241 100644 --- a/exampleSite/content/users/gma.name/index.md +++ b/exampleSite/content/users/gma.name/index.md @@ -2,7 +2,7 @@ title: "gma.name" tags: [Personal site] externalUrl: "https://gma.name" - date: 9941-08-08 + date: 9942-08-08 showDate: false showAuthor: false showReadingTime: false diff --git a/exampleSite/content/users/jahsehj.github.io/feature.jpg b/exampleSite/content/users/jahsehj.github.io/feature.jpg deleted file mode 100644 index 955c001b..00000000 Binary files a/exampleSite/content/users/jahsehj.github.io/feature.jpg and /dev/null differ diff --git a/exampleSite/content/users/jam.dsg.li/feature.jpg b/exampleSite/content/users/jam.dsg.li/feature.jpg index 0e3f3f01..eecdac21 100644 Binary files a/exampleSite/content/users/jam.dsg.li/feature.jpg and b/exampleSite/content/users/jam.dsg.li/feature.jpg differ diff --git a/exampleSite/content/users/jamiemoxon.tech/feature.jpg b/exampleSite/content/users/jamiemoxon.tech/feature.jpg index f2717bbc..688f422f 100644 Binary files a/exampleSite/content/users/jamiemoxon.tech/feature.jpg and b/exampleSite/content/users/jamiemoxon.tech/feature.jpg differ diff --git a/exampleSite/content/users/jamiemoxon.tech/index.md b/exampleSite/content/users/jamiemoxon.tech/index.md index 65fba4ef..5db5e3be 100644 --- a/exampleSite/content/users/jamiemoxon.tech/index.md +++ b/exampleSite/content/users/jamiemoxon.tech/index.md @@ -2,7 +2,7 @@ title: "jamiemoxon.tech" tags: [Personal site] externalUrl: "https://jamiemoxon.tech" - date: 9943-08-08 + date: 9944-08-08 showDate: false showAuthor: false showReadingTime: false diff --git a/exampleSite/content/users/joush007.github.io/feature.jpg b/exampleSite/content/users/joush007.github.io/feature.jpg new file mode 100644 index 00000000..7d6ef65c Binary files /dev/null and b/exampleSite/content/users/joush007.github.io/feature.jpg differ diff --git a/exampleSite/content/users/jahsehj.github.io/index.md b/exampleSite/content/users/joush007.github.io/index.md similarity index 59% rename from exampleSite/content/users/jahsehj.github.io/index.md rename to exampleSite/content/users/joush007.github.io/index.md index 2d19a1ba..ca532f5f 100644 --- a/exampleSite/content/users/jahsehj.github.io/index.md +++ b/exampleSite/content/users/joush007.github.io/index.md @@ -1,8 +1,8 @@ --- - title: "jahsehj.github.io" - tags: [Personal site mainly in Chinese] - externalUrl: "https://jahsehj.github.io/" - date: 9947-08-08 + title: "joush007.github.io" + tags: [Personal Site] + externalUrl: "https://joush007.github.io" + date: 9934-08-08 showDate: false showAuthor: false showReadingTime: false diff --git a/exampleSite/content/users/jundimubarok.com/feature.jpg b/exampleSite/content/users/jundimubarok.com/feature.jpg index 522f1bcc..5f7813a0 100644 Binary files a/exampleSite/content/users/jundimubarok.com/feature.jpg and b/exampleSite/content/users/jundimubarok.com/feature.jpg differ diff --git a/exampleSite/content/users/jundimubarok.com/index.md b/exampleSite/content/users/jundimubarok.com/index.md index 079a4d0b..28c15f74 100644 --- a/exampleSite/content/users/jundimubarok.com/index.md +++ b/exampleSite/content/users/jundimubarok.com/index.md @@ -2,7 +2,7 @@ title: "jundimubarok.com" tags: [Personal site] externalUrl: "https://jundimubarok.com/" - date: 9946-08-08 + date: 9947-08-08 showDate: false showAuthor: false showReadingTime: false diff --git a/exampleSite/content/users/kylemalloy.com/feature.jpg b/exampleSite/content/users/kylemalloy.com/feature.jpg new file mode 100644 index 00000000..dc6c275b Binary files /dev/null and b/exampleSite/content/users/kylemalloy.com/feature.jpg differ diff --git a/exampleSite/content/users/kylemalloy.com/index.md b/exampleSite/content/users/kylemalloy.com/index.md new file mode 100644 index 00000000..541caafe --- /dev/null +++ b/exampleSite/content/users/kylemalloy.com/index.md @@ -0,0 +1,13 @@ +--- + title: "kylemalloy.com" + tags: [Personal site] + externalUrl: "https://kylemalloy.com" + date: 9935-08-08 + showDate: false + showAuthor: false + showReadingTime: false + showEdit: false + showLikes: false + showViews: false + layoutBackgroundHeaderSpace: false + --- diff --git a/exampleSite/content/users/lelouvincx.github.io/feature.jpg b/exampleSite/content/users/lelouvincx.github.io/feature.jpg index a7bea5d0..6638a48b 100644 Binary files a/exampleSite/content/users/lelouvincx.github.io/feature.jpg and b/exampleSite/content/users/lelouvincx.github.io/feature.jpg differ diff --git a/exampleSite/content/users/loisvelasco.is-a.dev/feature.jpg b/exampleSite/content/users/loisvelasco.is-a.dev/feature.jpg index 0e5e5c2c..3d7b2524 100644 Binary files a/exampleSite/content/users/loisvelasco.is-a.dev/feature.jpg and b/exampleSite/content/users/loisvelasco.is-a.dev/feature.jpg differ diff --git a/exampleSite/content/users/m3upt.com/feature.jpg b/exampleSite/content/users/m3upt.com/feature.jpg index 919424ee..dc6614a2 100644 Binary files a/exampleSite/content/users/m3upt.com/feature.jpg and b/exampleSite/content/users/m3upt.com/feature.jpg differ diff --git a/exampleSite/content/users/mariuskimmina.com/feature.jpg b/exampleSite/content/users/mariuskimmina.com/feature.jpg index 8b80207d..6af5b9c6 100644 Binary files a/exampleSite/content/users/mariuskimmina.com/feature.jpg and b/exampleSite/content/users/mariuskimmina.com/feature.jpg differ diff --git a/exampleSite/content/users/marupanda.art-marucomics/feature.jpg b/exampleSite/content/users/marupanda.art-marucomics/feature.jpg index 952d4b3a..34cc7516 100644 Binary files a/exampleSite/content/users/marupanda.art-marucomics/feature.jpg and b/exampleSite/content/users/marupanda.art-marucomics/feature.jpg differ diff --git a/exampleSite/content/users/mayer.life/index.md b/exampleSite/content/users/mayer.life/index.md index 7ce0521e..8e6c4f2b 100644 --- a/exampleSite/content/users/mayer.life/index.md +++ b/exampleSite/content/users/mayer.life/index.md @@ -2,7 +2,7 @@ title: "mayer.life" tags: [Personal site] externalUrl: "https://mayer.life" - date: 9940-08-08 + date: 9941-08-08 showDate: false showAuthor: false showReadingTime: false diff --git a/exampleSite/content/users/n9o.xyz/feature.jpg b/exampleSite/content/users/n9o.xyz/feature.jpg new file mode 100644 index 00000000..1face33d Binary files /dev/null and b/exampleSite/content/users/n9o.xyz/feature.jpg differ diff --git a/exampleSite/content/users/nunocoracao.com/index.md b/exampleSite/content/users/n9o.xyz/index.md similarity index 79% rename from exampleSite/content/users/nunocoracao.com/index.md rename to exampleSite/content/users/n9o.xyz/index.md index 14769dc9..3a4e1c02 100644 --- a/exampleSite/content/users/nunocoracao.com/index.md +++ b/exampleSite/content/users/n9o.xyz/index.md @@ -1,7 +1,7 @@ --- - title: "nunocoracao.com" + title: "n9o.xyz" tags: [Personal site,Theme author] - externalUrl: "https://nunocoracao.com" + externalUrl: "https://n9o.xyz" date: 9999-08-08 showDate: false showAuthor: false diff --git a/exampleSite/content/users/niklas-hartmann-dev.de/feature.jpg b/exampleSite/content/users/niklas-hartmann-dev.de/feature.jpg index 88935faa..8745a1eb 100644 Binary files a/exampleSite/content/users/niklas-hartmann-dev.de/feature.jpg and b/exampleSite/content/users/niklas-hartmann-dev.de/feature.jpg differ diff --git a/exampleSite/content/users/nunocoracao.com/feature.jpg b/exampleSite/content/users/nunocoracao.com/feature.jpg deleted file mode 100644 index 1dd502d1..00000000 Binary files a/exampleSite/content/users/nunocoracao.com/feature.jpg and /dev/null differ diff --git a/exampleSite/content/users/ohdmire.github.io/feature.jpg b/exampleSite/content/users/ohdmire.github.io/feature.jpg index 8baf35c8..c4d53b04 100644 Binary files a/exampleSite/content/users/ohdmire.github.io/feature.jpg and b/exampleSite/content/users/ohdmire.github.io/feature.jpg differ diff --git a/exampleSite/content/users/ohdmire.github.io/index.md b/exampleSite/content/users/ohdmire.github.io/index.md index ab9bb75e..84734f0f 100644 --- a/exampleSite/content/users/ohdmire.github.io/index.md +++ b/exampleSite/content/users/ohdmire.github.io/index.md @@ -2,7 +2,7 @@ title: "ohdmire.github.io" tags: [Personal site] externalUrl: "https://ohdmire.github.io" - date: 9937-08-08 + date: 9938-08-08 showDate: false showAuthor: false showReadingTime: false diff --git a/exampleSite/content/users/pacochan.net/feature.jpg b/exampleSite/content/users/pacochan.net/feature.jpg index 5c801bb7..0ecf626e 100644 Binary files a/exampleSite/content/users/pacochan.net/feature.jpg and b/exampleSite/content/users/pacochan.net/feature.jpg differ diff --git a/exampleSite/content/users/rdgo.dev/feature.jpg b/exampleSite/content/users/rdgo.dev/feature.jpg index f9760916..3a298f1a 100644 Binary files a/exampleSite/content/users/rdgo.dev/feature.jpg and b/exampleSite/content/users/rdgo.dev/feature.jpg differ diff --git a/exampleSite/content/users/rejowski.xyz/feature.jpg b/exampleSite/content/users/rejowski.xyz/feature.jpg new file mode 100644 index 00000000..caee80f4 Binary files /dev/null and b/exampleSite/content/users/rejowski.xyz/feature.jpg differ diff --git a/exampleSite/content/users/rejowski.xyz/index.md b/exampleSite/content/users/rejowski.xyz/index.md new file mode 100644 index 00000000..c77a63b8 --- /dev/null +++ b/exampleSite/content/users/rejowski.xyz/index.md @@ -0,0 +1,13 @@ +--- + title: "rejowski.xyz" + tags: [Personal Site] + externalUrl: "https://rejowski.xyz/" + date: 9933-08-08 + showDate: false + showAuthor: false + showReadingTime: false + showEdit: false + showLikes: false + showViews: false + layoutBackgroundHeaderSpace: false + --- diff --git a/exampleSite/content/users/ricklan.photography/index.md b/exampleSite/content/users/ricklan.photography/index.md index 054b75b3..032d001e 100644 --- a/exampleSite/content/users/ricklan.photography/index.md +++ b/exampleSite/content/users/ricklan.photography/index.md @@ -2,7 +2,7 @@ title: "ricklan.photography" tags: [Personal site] externalUrl: "https://ricklan.photography" - date: 9936-08-08 + date: 9937-08-08 showDate: false showAuthor: false showReadingTime: false diff --git a/exampleSite/content/users/scottmckendry.tech/index.md b/exampleSite/content/users/scottmckendry.tech/index.md index 8a9e6fc2..25d259ef 100644 --- a/exampleSite/content/users/scottmckendry.tech/index.md +++ b/exampleSite/content/users/scottmckendry.tech/index.md @@ -2,7 +2,7 @@ title: "scottmckendry.tech" tags: [Personal site] externalUrl: "https://scottmckendry.tech" - date: 9939-08-08 + date: 9940-08-08 showDate: false showAuthor: false showReadingTime: false diff --git a/exampleSite/content/users/shenshu.fun/feature.jpg b/exampleSite/content/users/shenshu.fun/feature.jpg index b44de0ad..7a442007 100644 Binary files a/exampleSite/content/users/shenshu.fun/feature.jpg and b/exampleSite/content/users/shenshu.fun/feature.jpg differ diff --git a/exampleSite/content/users/spelucin.me/feature.jpg b/exampleSite/content/users/spelucin.me/feature.jpg index 70e580a0..81a04c00 100644 Binary files a/exampleSite/content/users/spelucin.me/feature.jpg and b/exampleSite/content/users/spelucin.me/feature.jpg differ diff --git a/exampleSite/content/users/tabletopflore.com/feature.jpg b/exampleSite/content/users/tabletopflore.com/feature.jpg index efa1f85b..ef4897de 100644 Binary files a/exampleSite/content/users/tabletopflore.com/feature.jpg and b/exampleSite/content/users/tabletopflore.com/feature.jpg differ diff --git a/exampleSite/content/users/technicat.com/feature.jpg b/exampleSite/content/users/technicat.com/feature.jpg index b201fe84..142293a0 100644 Binary files a/exampleSite/content/users/technicat.com/feature.jpg and b/exampleSite/content/users/technicat.com/feature.jpg differ diff --git a/exampleSite/content/users/theindiecoder.cloud/feature.jpg b/exampleSite/content/users/theindiecoder.cloud/feature.jpg index a666d637..9b546e6c 100644 Binary files a/exampleSite/content/users/theindiecoder.cloud/feature.jpg and b/exampleSite/content/users/theindiecoder.cloud/feature.jpg differ diff --git a/exampleSite/content/users/theindiecoder.cloud/index.md b/exampleSite/content/users/theindiecoder.cloud/index.md index f7fe9d5e..a28f24fc 100644 --- a/exampleSite/content/users/theindiecoder.cloud/index.md +++ b/exampleSite/content/users/theindiecoder.cloud/index.md @@ -2,7 +2,7 @@ title: "theindiecoder.cloud" tags: [Personal site] externalUrl: "https://theindiecoder.cloud" - date: 9942-08-08 + date: 9943-08-08 showDate: false showAuthor: false showReadingTime: false diff --git a/exampleSite/content/users/users.json b/exampleSite/content/users/users.json index bd88b3b8..d2906b6d 100644 --- a/exampleSite/content/users/users.json +++ b/exampleSite/content/users/users.json @@ -1,7 +1,7 @@ [ { - "title": "nunocoracao.com", - "url": "https://nunocoracao.com", + "title": "n9o.xyz", + "url": "https://n9o.xyz", "tags": [ "Personal site", "Theme author" @@ -364,13 +364,6 @@ "Personal site" ] }, - { - "title": "jahsehj.github.io", - "url": "https://jahsehj.github.io/", - "tags": [ - "Personal site mainly in Chinese" - ] - }, { "title": "jundimubarok.com", "url": "https://jundimubarok.com/", @@ -454,5 +447,26 @@ "tags": [ "Technology Blog" ] + }, + { + "title": "kylemalloy.com", + "url": "https://kylemalloy.com", + "tags": [ + "Personal site" + ] + }, + { + "title": "joush007.github.io", + "url": "https://joush007.github.io", + "tags": [ + "Personal Site" + ] + }, + { + "title": "rejowski.xyz", + "url": "https://rejowski.xyz/", + "tags": [ + "Personal Site" + ] } ] diff --git a/exampleSite/content/users/vkmki001.github.io/feature.jpg b/exampleSite/content/users/vkmki001.github.io/feature.jpg index 290c43e9..77def935 100644 Binary files a/exampleSite/content/users/vkmki001.github.io/feature.jpg and b/exampleSite/content/users/vkmki001.github.io/feature.jpg differ diff --git a/exampleSite/content/users/vkmki001.github.io/index.md b/exampleSite/content/users/vkmki001.github.io/index.md index 187f5ca4..78ecb43e 100644 --- a/exampleSite/content/users/vkmki001.github.io/index.md +++ b/exampleSite/content/users/vkmki001.github.io/index.md @@ -2,7 +2,7 @@ title: "vkmki001.github.io" tags: [Personal site] externalUrl: "https://vkmki001.github.io/" - date: 9945-08-08 + date: 9946-08-08 showDate: false showAuthor: false showReadingTime: false diff --git a/exampleSite/content/users/weaxsey.org/feature.jpg b/exampleSite/content/users/weaxsey.org/feature.jpg index 6b1eba8b..7e4a7873 100644 Binary files a/exampleSite/content/users/weaxsey.org/feature.jpg and b/exampleSite/content/users/weaxsey.org/feature.jpg differ diff --git a/layouts/_default/sitemap.xml b/layouts/_default/sitemap.xml index 45789c64..94c04d55 100644 --- a/layouts/_default/sitemap.xml +++ b/layouts/_default/sitemap.xml @@ -1,28 +1,23 @@ {{ printf "" | safeHTML }} - {{ range .Data.Pages }} - {{ if not (in .Site.Params.sitemap.excludedKinds .Kind) }} - {{ if and (.Param "xml" | default true) (not (isset .Params "externalUrl")) }} - {{- if .Permalink -}} - - {{ .Permalink }}{{ if not .Lastmod.IsZero }} - {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} - {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} - {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} - {{ end }} - {{ end }} - - {{- end -}} - {{ end }} - {{ end }} - {{ end }} +{{ range .Data.Pages }}{{ if not (in .Site.Params.sitemap.excludedKinds .Kind) }}{{ if and (.Param "xml" | default true) (or (not .Params.externalUrl) (and (.Params.externalUrl) (and (not (hasPrefix .Params.externalUrl "http://")) (not (hasPrefix .Params.externalUrl "https://"))))) }} +{{- if .Permalink -}}{{ $link := .Permalink }}{{ if .Params.externalUrl }}{{ $link = printf "%s%s" .Site.BaseURL (substr .Params.externalUrl 1) }}{{ end }} + + {{ $link }}{{ if not .Lastmod.IsZero }} + {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} + {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} + {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} + {{ end }} + {{ end }} + +{{- end -}}{{ end }}{{ end }}{{ end }} diff --git a/layouts/partials/article-meta/basic.html b/layouts/partials/article-meta/basic.html index c2f983cd..dcb87597 100644 --- a/layouts/partials/article-meta/basic.html +++ b/layouts/partials/article-meta/basic.html @@ -50,7 +50,7 @@
{{/* Output partials */}} {{ with ($meta.Get "partials") }} - {{ delimit . "·" }} + {{ delimit . "·" | safeHTML }} {{ end }} {{/* Output draft label */}} diff --git a/layouts/partials/article-meta/list.html b/layouts/partials/article-meta/list.html index 32c204c1..4bf21c5d 100644 --- a/layouts/partials/article-meta/list.html +++ b/layouts/partials/article-meta/list.html @@ -29,7 +29,7 @@
{{/* Output partials */}} {{ with ($meta.Get "partials") }} - {{ delimit . "·" }} + {{ delimit . "·" | safeHTML}} {{ end }}
diff --git a/layouts/partials/article-meta/taxonomy.html b/layouts/partials/article-meta/taxonomy.html index d8d0142e..add05bfc 100644 --- a/layouts/partials/article-meta/taxonomy.html +++ b/layouts/partials/article-meta/taxonomy.html @@ -29,7 +29,7 @@
{{/* Output partials */}} {{ with ($meta.Get "partials") }} - {{ delimit . "·" }} + {{ delimit . "·" | safeHTML}} {{ end }}
diff --git a/layouts/partials/article-meta/term.html b/layouts/partials/article-meta/term.html index 63acb4e3..d5377dc8 100644 --- a/layouts/partials/article-meta/term.html +++ b/layouts/partials/article-meta/term.html @@ -29,7 +29,7 @@
{{/* Output partials */}} {{ with ($meta.Get "partials") }} - {{ delimit . "·" }} + {{ delimit . "·" | safeHTML}} {{ end }}
diff --git a/layouts/shortcodes/carousel.html b/layouts/shortcodes/carousel.html index 1f424a1d..97e51696 100644 --- a/layouts/shortcodes/carousel.html +++ b/layouts/shortcodes/carousel.html @@ -3,7 +3,7 @@ {{ $images := .Page.Resources.Match (.Get "images") }} {{ $interval := default "2000" (.Get "interval") }} -
+
diff --git a/layouts/shortcodes/github.html b/layouts/shortcodes/github.html index efb46de3..393586ee 100644 --- a/layouts/shortcodes/github.html +++ b/layouts/shortcodes/github.html @@ -1,26 +1,32 @@ -{{- $githubData := getJSON (print "https://api.github.com/repos/" (.Get "repo")) -}} +{{ $id := delimit (slice "github" .Ordinal now.UnixNano) "-" }} +{{- $githubURL := print "https://api.github.com/repos/" (.Get "repo") -}} +{{- $githubData := getJSON ($githubURL) -}} {{- $githubColors := .Site.Data.githubColors -}} {{- with $githubData -}} - -
+ +
{{ partial "icon.html" "github" }} -
+
{{ .full_name | markdownify | emojify }}
-

+

{{ .description | markdownify | emojify }}

- - + +
{{ if .language }} {{ .language }} {{ else }} null {{ end }}
@@ -28,19 +34,34 @@ {{ partial "icon.html" "star" }} -
+
{{ .stargazers_count }}
{{ partial "icon.html" "fork" }} -
+
{{ .forks }}
+
{{- end -}} \ No newline at end of file diff --git a/layouts/shortcodes/gitlab.html b/layouts/shortcodes/gitlab.html index bf56536c..1f2a8fa9 100644 --- a/layouts/shortcodes/gitlab.html +++ b/layouts/shortcodes/gitlab.html @@ -1,4 +1,7 @@ -{{- $gitLabData := getJSON (print (default "https://gitlab.com/" (.Get "baseURL")) "api/v4/projects/" (.Get "projectID")) -}} +{{ $id := delimit (slice "gitlab" .Ordinal now.UnixNano) "-" }} +{{- $gitlabURL := print (default "https://gitlab.com/" (.Get "baseURL")) "api/v4/projects/" (.Get "projectID") -}} + +{{- $gitLabData := getJSON ($gitlabURL) -}} {{- with $gitLabData -}} @@ -8,12 +11,12 @@ {{ partial "icon.html" "gitlab" }} -
+
{{ .name_with_namespace | markdownify | emojify }}
-

+

{{ .description | markdownify | emojify }}

@@ -21,19 +24,36 @@ {{ partial "icon.html" "star" }} -
+
{{ .star_count }}
{{ partial "icon.html" "fork" }} -
+
{{ .forks_count }}
+
{{- end -}} diff --git a/package-lock.json b/package-lock.json index 07a667d2..797bfba8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,33 +1,33 @@ { "name": "hugo-blowfish-theme", - "version": "2.43.0", + "version": "2.44.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hugo-blowfish-theme", - "version": "2.43.0", + "version": "2.44.0", "hasInstallScript": true, "license": "MIT", "dependencies": { "@headlessui/react": "^1.7.17", "@heroicons/react": "^2.0.18", "@tailwindcss/forms": "^0.5.6", - "commander": "^11.0.0" + "commander": "^11.1.0" }, "devDependencies": { "@tailwindcss/typography": "^0.5.10", "chart.js": "^4.4.0", - "fuse.js": "^6.6.2", + "fuse.js": "^7.0.0", "jquery": "^3.7.1", "katex": "^0.16.9", "packery": "^2.1.2", "prettier": "^3.0.3", "prettier-plugin-go-template": "^0.0.15", "prettier-plugin-tailwindcss": "^0.5.6", - "puppeteer": "^21.3.8", + "puppeteer": "^21.4.1", "rimraf": "^5.0.5", - "tailwindcss": "^3.3.3", + "tailwindcss": "^3.3.5", "tw-elements": "1.0.0", "typeit": "^8.7.1", "vendor-copy": "^3.0.1" @@ -227,9 +227,9 @@ } }, "node_modules/@puppeteer/browsers": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.7.1.tgz", - "integrity": "sha512-nIb8SOBgDEMFY2iS2MdnUZOg2ikcYchRrBoF+wtdjieRFKR2uGRipHY/oFLo+2N6anDualyClPzGywTHRGrLfw==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.8.0.tgz", + "integrity": "sha512-TkRHIV6k2D8OlUe8RtG+5jgOF/H98Myx0M6AOafC8DdNVOFiBSFa5cpRDtpm8LXOa9sVwe0+e6Q3FC56X/DZfg==", "dev": true, "dependencies": { "debug": "4.3.4", @@ -238,7 +238,7 @@ "proxy-agent": "6.3.1", "tar-fs": "3.0.4", "unbzip2-stream": "1.4.3", - "yargs": "17.7.1" + "yargs": "17.7.2" }, "bin": { "browsers": "lib/cjs/main-cli.js" @@ -280,9 +280,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.8.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.4.tgz", - "integrity": "sha512-ZVPnqU58giiCjSxjVUESDtdPk4QR5WQhhINbc9UBrKLU68MX5BF6kbQzTrkwbolyr0X8ChBpXfavr5mZFKZQ5A==", + "version": "20.8.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.8.tgz", + "integrity": "sha512-YRsdVxq6OaLfmR9Hy816IMp33xOBjfyOgUd77ehqg96CFywxAPbDbXvAsuN2KVg2HOT8Eh6uAfU+l4WffwPVrQ==", "dev": true, "optional": true, "dependencies": { @@ -290,9 +290,9 @@ } }, "node_modules/@types/yauzl": { - "version": "2.10.1", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.1.tgz", - "integrity": "sha512-CHzgNU3qYBnp/O4S3yv2tXPlvMTq0YWSTVg2/JYLqWZGHwwgJGAwd00poay/11asPq8wLFwHzubyInqHIFmmiw==", + "version": "2.10.2", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.2.tgz", + "integrity": "sha512-Km7XAtUIduROw7QPgvcft0lIupeG8a8rdKL8RiSyKvlE7dYY31fEn41HVuQsRFDuROA8tA4K2UVL+WdfFmErBA==", "dev": true, "optional": true, "dependencies": { @@ -593,9 +593,9 @@ } }, "node_modules/chromium-bidi": { - "version": "0.4.31", - "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.31.tgz", - "integrity": "sha512-OtvEg2JMRQrHsmLx4FV3u1Hf9waYxB5PmL+yM0HkFpc9H2x3TMbUqS+GP2/fC4399hzOO+EQF8uVU43By9ILag==", + "version": "0.4.32", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.32.tgz", + "integrity": "sha512-RJnw0PW3sNdx1WclINVfVVx8JUH+tWTHZNpnEzlcM+Qgvf40dUH34U7gJq+cc/0LE+rbPxeT6ldqWrCbUf4jeg==", "dev": true, "dependencies": { "mitt": "3.0.1", @@ -716,9 +716,9 @@ "dev": true }, "node_modules/commander": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-11.0.0.tgz", - "integrity": "sha512-9HMlXtt/BNoYr8ooyjjNRdIilOTkVJXB+GhxMTtOKwk0R4j4lS4NpjuqmRxroBfnfTSHQIHQB7wryHhXarNjmQ==", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz", + "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==", "engines": { "node": ">=16" } @@ -859,9 +859,9 @@ } }, "node_modules/devtools-protocol": { - "version": "0.0.1179426", - "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1179426.tgz", - "integrity": "sha512-KKC7IGwdOr7u9kTGgjUvGTov/z1s2H7oHi3zKCdR9eSDyCPia5CBi4aRhtp7d8uR7l0GS5UTDw3TjKGu5CqINg==", + "version": "0.0.1191157", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1191157.tgz", + "integrity": "sha512-Fu2mUhX7zkzLHMJZk5wQTiHdl1eJrhK0GypUoSzogUt51MmYEv/46pCz4PtGGFlr0f2ZyYDzzx5CPtbEkuvcTA==", "dev": true }, "node_modules/didyoumean": { @@ -1007,9 +1007,9 @@ "dev": true }, "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -1123,9 +1123,9 @@ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" }, "node_modules/fuse.js": { - "version": "6.6.2", - "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-6.6.2.tgz", - "integrity": "sha512-cJaJkxCCxC8qIIcPBF9yGxY0W/tVZS3uEISDxhYIdtk8OL93pe+6Zj7LjCqVV4dzbqcriOZ+kQ/NE4RXZHsIGA==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-7.0.0.tgz", + "integrity": "sha512-14F4hBIxqKvD4Zz/XjDc3y94mNZN6pRv3U13Udo0lNLCWRBUsrMv2xwcF/y/Z5sV6+FQW+/ow68cHpm4sunt8Q==", "dev": true, "engines": { "node": ">=10" @@ -1406,9 +1406,9 @@ } }, "node_modules/jiti": { - "version": "1.18.2", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz", - "integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==", + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.20.0.tgz", + "integrity": "sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA==", "bin": { "jiti": "bin/jiti.js" } @@ -2154,31 +2154,31 @@ } }, "node_modules/puppeteer": { - "version": "21.3.8", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.3.8.tgz", - "integrity": "sha512-4OrInVIAtDgcznENUV4Du4gYSZhRmbCkckvOoPstXrUH4JsQ3atSegY+9f/tOKCDB2qh7sXaszDcFEn+RymY0g==", + "version": "21.4.1", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.4.1.tgz", + "integrity": "sha512-opJqQeYMjAB3ICG8lCF3wtSs9k05dozmrEMrHgo3ZWbISiy8qbv/yAJz/6Io221qSh3yURfVf6Z7crrlzKZjLQ==", "dev": true, "hasInstallScript": true, "dependencies": { - "@puppeteer/browsers": "1.7.1", + "@puppeteer/browsers": "1.8.0", "cosmiconfig": "8.3.6", - "puppeteer-core": "21.3.8" + "puppeteer-core": "21.4.1" }, "engines": { "node": ">=16.3.0" } }, "node_modules/puppeteer-core": { - "version": "21.3.8", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.3.8.tgz", - "integrity": "sha512-yv12E/+zZ7Lei5tJB4sUkSrsuqKibuYpYxLGbmtLUjjYIqGE5HKz9OUI2I/RFHEvF+pHi2bTbv5bWydeCGJ6Mw==", + "version": "21.4.1", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.4.1.tgz", + "integrity": "sha512-Lh0e+oGhUquxVOi1U701gTfFLFvw5gDBFh3CWpnfAvtItmyZKUce4R54VNfOJfi+KKnzhVPdB/lDrg65gdRIng==", "dev": true, "dependencies": { - "@puppeteer/browsers": "1.7.1", - "chromium-bidi": "0.4.31", + "@puppeteer/browsers": "1.8.0", + "chromium-bidi": "0.4.32", "cross-fetch": "4.0.0", "debug": "4.3.4", - "devtools-protocol": "0.0.1179426", + "devtools-protocol": "0.0.1191157", "ws": "8.14.2" }, "engines": { @@ -2651,19 +2651,19 @@ } }, "node_modules/tailwindcss": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.3.tgz", - "integrity": "sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==", + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.5.tgz", + "integrity": "sha512-5SEZU4J7pxZgSkv7FP1zY8i2TIAOooNZ1e/OGtxIEv6GltpoiXUqWvLy89+a10qYTB1N5Ifkuw9lqQkN9sscvA==", "dependencies": { "@alloc/quick-lru": "^5.2.0", "arg": "^5.0.2", "chokidar": "^3.5.3", "didyoumean": "^1.2.2", "dlv": "^1.1.3", - "fast-glob": "^3.2.12", + "fast-glob": "^3.3.0", "glob-parent": "^6.0.2", "is-glob": "^4.0.3", - "jiti": "^1.18.2", + "jiti": "^1.19.1", "lilconfig": "^2.1.0", "micromatch": "^4.0.5", "normalize-path": "^3.0.0", @@ -3154,9 +3154,9 @@ } }, "node_modules/yargs": { - "version": "17.7.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", - "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, "dependencies": { "cliui": "^8.0.1", diff --git a/package.json b/package.json index b987fdbc..7f485d3b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-blowfish-theme", - "version": "2.43.0", + "version": "2.44.0", "description": "Blowfish theme for Hugo", "scripts": { "fullinstall": "npm run preinstall && npm install && npm run postinstall", @@ -36,16 +36,16 @@ "devDependencies": { "@tailwindcss/typography": "^0.5.10", "chart.js": "^4.4.0", - "fuse.js": "^6.6.2", + "fuse.js": "^7.0.0", "jquery": "^3.7.1", "katex": "^0.16.9", "packery": "^2.1.2", "prettier": "^3.0.3", "prettier-plugin-go-template": "^0.0.15", "prettier-plugin-tailwindcss": "^0.5.6", - "puppeteer": "^21.3.8", + "puppeteer": "^21.4.1", "rimraf": "^5.0.5", - "tailwindcss": "^3.3.3", + "tailwindcss": "^3.3.5", "tw-elements": "1.0.0", "typeit": "^8.7.1", "vendor-copy": "^3.0.1" @@ -97,6 +97,6 @@ "@headlessui/react": "^1.7.17", "@heroicons/react": "^2.0.18", "@tailwindcss/forms": "^0.5.6", - "commander": "^11.0.0" + "commander": "^11.1.0" } } diff --git a/static/js/zoom.min.js b/static/js/zoom.min.js index 938bfd5e..b1214b7c 100644 --- a/static/js/zoom.min.js +++ b/static/js/zoom.min.js @@ -1 +1,2 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).mediumZoom=t()}(this,(function(){"use strict";var e=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},c=window.Promise||function(e){function t(){}e(t,t)},u=function(e){var t=e.target;t!==N?-1!==O.indexOf(t)&&w({target:t}):E()},s=function(){if(!A&&T.original){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(k-e)>S.scrollOffset&&setTimeout(E,150)}},f=function(e){var t=e.key||e.keyCode;"Escape"!==t&&"Esc"!==t&&27!==t||E()},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t;if(t.background&&(N.style.background=t.background),t.container&&t.container instanceof Object&&(n.container=e({},S.container,t.container)),t.template){var i=o(t.template)?t.template:document.querySelector(t.template);n.template=i}return S=e({},S,n),O.forEach((function(e){e.dispatchEvent(m("medium-zoom:update",{detail:{zoom:j}}))})),j},g=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t(e({},S,o))},v=function(){for(var e=arguments.length,t=Array(e),o=0;o0?t.reduce((function(e,t){return[].concat(e,i(t))}),[]):O;return n.forEach((function(e){e.classList.remove("medium-zoom-image"),e.dispatchEvent(m("medium-zoom:detach",{detail:{zoom:j}}))})),O=O.filter((function(e){return-1===n.indexOf(e)})),j},z=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return O.forEach((function(n){n.addEventListener("medium-zoom:"+e,t,o)})),x.push({type:"medium-zoom:"+e,listener:t,options:o}),j},y=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return O.forEach((function(n){n.removeEventListener("medium-zoom:"+e,t,o)})),x=x.filter((function(o){return!(o.type==="medium-zoom:"+e&&o.listener.toString()===t.toString())})),j},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.target,r=function(){var t={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},i=void 0,r=void 0;if(S.container)if(S.container instanceof Object)i=(t=e({},t,S.container)).width-t.left-t.right-2*S.margin,r=t.height-t.top-t.bottom-2*S.margin;else{var d=(o(S.container)?S.container:document.querySelector(S.container)).getBoundingClientRect(),m=d.width,a=d.height,l=d.left,c=d.top;t=e({},t,{width:m,height:a,left:l,top:c})}i=i||t.width-2*S.margin,r=r||t.height-2*S.margin;var u=T.zoomedHd||T.original,s=n(u)?i:u.naturalWidth||i,f=n(u)?r:u.naturalHeight||r,p=u.getBoundingClientRect(),g=p.top,v=p.left,h=p.width,z=p.height,y=Math.min(s,i)/h,b=Math.min(f,r)/z,E=Math.min(y,b),w="scale("+E+") translate3d("+((i-h)/2-v+S.margin+t.left)/E+"px, "+((r-z)/2-g+S.margin+t.top)/E+"px, 0)";T.zoomed.style.transform=w,T.zoomedHd&&(T.zoomedHd.style.transform=w)};return new c((function(e){if(i&&-1===O.indexOf(i))e(j);else{if(T.zoomed)e(j);else{if(i)T.original=i;else{if(!(O.length>0))return void e(j);var t=O;T.original=t[0]}if(T.original.dispatchEvent(m("medium-zoom:open",{detail:{zoom:j}})),k=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,A=!0,T.zoomed=d(T.original),document.body.appendChild(N),S.template){var n=o(S.template)?S.template:document.querySelector(S.template);T.template=document.createElement("div"),T.template.appendChild(n.content.cloneNode(!0)),document.body.appendChild(T.template)}if(document.body.appendChild(T.zoomed),window.requestAnimationFrame((function(){document.body.classList.add("medium-zoom--opened")})),T.original.classList.add("medium-zoom-image--hidden"),T.zoomed.classList.add("medium-zoom-image--opened"),T.zoomed.addEventListener("click",E),T.zoomed.addEventListener("transitionend",(function t(){A=!1,T.zoomed.removeEventListener("transitionend",t),T.original.dispatchEvent(m("medium-zoom:opened",{detail:{zoom:j}})),e(j)})),T.original.getAttribute("data-zoom-src")){T.zoomedHd=T.zoomed.cloneNode(),T.zoomedHd.removeAttribute("srcset"),T.zoomedHd.removeAttribute("sizes"),T.zoomedHd.src=T.zoomed.getAttribute("data-zoom-src"),T.zoomedHd.onerror=function(){clearInterval(a),console.warn("Unable to reach the zoom image target "+T.zoomedHd.src),T.zoomedHd=null,r()};var a=setInterval((function(){T.zoomedHd.complete&&(clearInterval(a),T.zoomedHd.classList.add("medium-zoom-image--opened"),T.zoomedHd.addEventListener("click",E),document.body.appendChild(T.zoomedHd),r())}),10)}else if(T.original.hasAttribute("srcset")){T.zoomedHd=T.zoomed.cloneNode(),T.zoomedHd.removeAttribute("sizes"),T.zoomedHd.removeAttribute("loading");var l=T.zoomedHd.addEventListener("load",(function(){T.zoomedHd.removeEventListener("load",l),T.zoomedHd.classList.add("medium-zoom-image--opened"),T.zoomedHd.addEventListener("click",E),document.body.appendChild(T.zoomedHd),r()}))}else r()}}}))},E=function(){return new c((function(e){if(!A&&T.original){A=!0,document.body.classList.remove("medium-zoom--opened"),T.zoomed.style.transform="",T.zoomedHd&&(T.zoomedHd.style.transform=""),T.template&&(T.template.style.transition="opacity 150ms",T.template.style.opacity=0),T.original.dispatchEvent(m("medium-zoom:close",{detail:{zoom:j}})),T.zoomed.addEventListener("transitionend",(function t(){T.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(T.zoomed),T.zoomedHd&&document.body.removeChild(T.zoomedHd),document.body.removeChild(N),T.zoomed.classList.remove("medium-zoom-image--opened"),T.template&&document.body.removeChild(T.template),A=!1,T.zoomed.removeEventListener("transitionend",t),T.original.dispatchEvent(m("medium-zoom:closed",{detail:{zoom:j}})),T.original=null,T.zoomed=null,T.zoomedHd=null,T.template=null,e(j)}))}else e(j)}))},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;return T.original?E():b({target:t})},L=function(){return S},H=function(){return O},C=function(){return T.original},O=[],x=[],A=!1,k=0,S=l,T={original:null,zoomed:null,zoomedHd:null,template:null};"[object Object]"===Object.prototype.toString.call(a)?S=a:(a||"string"==typeof a)&&v(a),S=e({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},S);var N=r(S.background);document.addEventListener("click",u),document.addEventListener("keyup",f),document.addEventListener("scroll",s),window.addEventListener("resize",E);var j={open:b,close:E,toggle:w,update:p,clone:g,attach:v,detach:h,on:z,off:y,getOptions:L,getImages:H,getZoomedImage:C};return j}})); \ No newline at end of file +/*! medium-zoom 1.0.6 | MIT License | https://github.com/francoischalifour/medium-zoom */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).mediumZoom=t()}(this,(function(){"use strict";var e=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},c=window.Promise||function(e){function t(){}e(t,t)},u=function(e){var t=e.target;t!==N?-1!==O.indexOf(t)&&w({target:t}):E()},s=function(){if(!A&&T.original){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(k-e)>S.scrollOffset&&setTimeout(E,150)}},f=function(e){var t=e.key||e.keyCode;"Escape"!==t&&"Esc"!==t&&27!==t||E()},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t;if(t.background&&(N.style.background=t.background),t.container&&t.container instanceof Object&&(n.container=e({},S.container,t.container)),t.template){var i=o(t.template)?t.template:document.querySelector(t.template);n.template=i}return S=e({},S,n),O.forEach((function(e){e.dispatchEvent(m("medium-zoom:update",{detail:{zoom:j}}))})),j},g=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t(e({},S,o))},v=function(){for(var e=arguments.length,t=Array(e),o=0;o0?t.reduce((function(e,t){return[].concat(e,i(t))}),[]):O;return n.forEach((function(e){e.classList.remove("medium-zoom-image"),e.dispatchEvent(m("medium-zoom:detach",{detail:{zoom:j}}))})),O=O.filter((function(e){return-1===n.indexOf(e)})),j},z=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return O.forEach((function(n){n.addEventListener("medium-zoom:"+e,t,o)})),x.push({type:"medium-zoom:"+e,listener:t,options:o}),j},y=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return O.forEach((function(n){n.removeEventListener("medium-zoom:"+e,t,o)})),x=x.filter((function(o){return!(o.type==="medium-zoom:"+e&&o.listener.toString()===t.toString())})),j},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.target,r=function(){var t={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},i=void 0,r=void 0;if(S.container)if(S.container instanceof Object)i=(t=e({},t,S.container)).width-t.left-t.right-2*S.margin,r=t.height-t.top-t.bottom-2*S.margin;else{var d=(o(S.container)?S.container:document.querySelector(S.container)).getBoundingClientRect(),m=d.width,a=d.height,l=d.left,c=d.top;t=e({},t,{width:m,height:a,left:l,top:c})}i=i||t.width-2*S.margin,r=r||t.height-2*S.margin;var u=T.zoomedHd||T.original,s=n(u)?i:u.naturalWidth||i,f=n(u)?r:u.naturalHeight||r,p=u.getBoundingClientRect(),g=p.top,v=p.left,h=p.width,z=p.height,y=Math.min(s,i)/h,b=Math.min(f,r)/z,E=Math.min(y,b),w="scale("+E+") translate3d("+((i-h)/2-v+S.margin+t.left)/E+"px, "+((r-z)/2-g+S.margin+t.top)/E+"px, 0)";T.zoomed.style.transform=w,T.zoomedHd&&(T.zoomedHd.style.transform=w)};return new c((function(e){if(i&&-1===O.indexOf(i))e(j);else{if(T.zoomed)e(j);else{if(i)T.original=i;else{if(!(O.length>0))return void e(j);var t=O;T.original=t[0]}if(T.original.dispatchEvent(m("medium-zoom:open",{detail:{zoom:j}})),k=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,A=!0,T.zoomed=d(T.original),document.body.appendChild(N),S.template){var n=o(S.template)?S.template:document.querySelector(S.template);T.template=document.createElement("div"),T.template.appendChild(n.content.cloneNode(!0)),document.body.appendChild(T.template)}if(document.body.appendChild(T.zoomed),window.requestAnimationFrame((function(){document.body.classList.add("medium-zoom--opened")})),T.original.classList.add("medium-zoom-image--hidden"),T.zoomed.classList.add("medium-zoom-image--opened"),T.zoomed.addEventListener("click",E),T.zoomed.addEventListener("transitionend",(function t(){A=!1,T.zoomed.removeEventListener("transitionend",t),T.original.dispatchEvent(m("medium-zoom:opened",{detail:{zoom:j}})),e(j)})),T.original.getAttribute("data-zoom-src")){T.zoomedHd=T.zoomed.cloneNode(),T.zoomedHd.removeAttribute("srcset"),T.zoomedHd.removeAttribute("sizes"),T.zoomedHd.src=T.zoomed.getAttribute("data-zoom-src"),T.zoomedHd.onerror=function(){clearInterval(a),console.warn("Unable to reach the zoom image target "+T.zoomedHd.src),T.zoomedHd=null,r()};var a=setInterval((function(){T.zoomedHd.complete&&(clearInterval(a),T.zoomedHd.classList.add("medium-zoom-image--opened"),T.zoomedHd.addEventListener("click",E),document.body.appendChild(T.zoomedHd),r())}),10)}else if(T.original.hasAttribute("srcset")){T.zoomedHd=T.zoomed.cloneNode(),T.zoomedHd.removeAttribute("sizes"),T.zoomedHd.removeAttribute("loading");var l=T.zoomedHd.addEventListener("load",(function(){T.zoomedHd.removeEventListener("load",l),T.zoomedHd.classList.add("medium-zoom-image--opened"),T.zoomedHd.addEventListener("click",E),document.body.appendChild(T.zoomedHd),r()}))}else r()}}}))},E=function(){return new c((function(e){if(!A&&T.original){A=!0,document.body.classList.remove("medium-zoom--opened"),T.zoomed.style.transform="",T.zoomedHd&&(T.zoomedHd.style.transform=""),T.template&&(T.template.style.transition="opacity 150ms",T.template.style.opacity=0),T.original.dispatchEvent(m("medium-zoom:close",{detail:{zoom:j}})),T.zoomed.addEventListener("transitionend",(function t(){T.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(T.zoomed),T.zoomedHd&&document.body.removeChild(T.zoomedHd),document.body.removeChild(N),T.zoomed.classList.remove("medium-zoom-image--opened"),T.template&&document.body.removeChild(T.template),A=!1,T.zoomed.removeEventListener("transitionend",t),T.original.dispatchEvent(m("medium-zoom:closed",{detail:{zoom:j}})),T.original=null,T.zoomed=null,T.zoomedHd=null,T.template=null,e(j)}))}else e(j)}))},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;return T.original?E():b({target:t})},L=function(){return S},H=function(){return O},C=function(){return T.original},O=[],x=[],A=!1,k=0,S=l,T={original:null,zoomed:null,zoomedHd:null,template:null};"[object Object]"===Object.prototype.toString.call(a)?S=a:(a||"string"==typeof a)&&v(a),S=e({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},S);var N=r(S.background);document.addEventListener("click",u),document.addEventListener("keyup",f),document.addEventListener("scroll",s),window.addEventListener("resize",E);var j={open:b,close:E,toggle:w,update:p,clone:g,attach:v,detach:h,on:z,off:y,getOptions:L,getImages:H,getZoomedImage:C};return j}}));