From 2b0a52ab2541075b3f5acbd2ee804225aeff4116 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 28 May 2022 21:53:12 +0530 Subject: [PATCH 01/51] Fix scroll bar appearance in Safari Ref: https://github.com/adityatelange/hugo-PaperMod/issues/654#issuecomment-1015819905 fixes: #654 --- assets/css/core/reset.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/css/core/reset.css b/assets/css/core/reset.css index dfb1caae..865e5c4a 100644 --- a/assets/css/core/reset.css +++ b/assets/css/core/reset.css @@ -136,3 +136,7 @@ img { ::-webkit-scrollbar-thumb:hover { background: var(--secondary); } + +::-webkit-scrollbar { + background: var(--theme); +} \ No newline at end of file From 0c71711332c0fc20f344d14d4a2f3e1c15615f7a Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 28 May 2022 21:57:44 +0530 Subject: [PATCH 02/51] Fix impact of 2b0a52a on horizontal blocks --- assets/css/core/reset.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/core/reset.css b/assets/css/core/reset.css index 865e5c4a..d7bd2ecf 100644 --- a/assets/css/core/reset.css +++ b/assets/css/core/reset.css @@ -137,6 +137,6 @@ img { background: var(--secondary); } -::-webkit-scrollbar { +::-webkit-scrollbar:not(.highlighttable, .highlight table, .gist .highlight) { background: var(--theme); } \ No newline at end of file From 57dd5404d335c155ae0f8d3de23823dcd8e48fcb Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 29 May 2022 10:32:27 +0530 Subject: [PATCH 03/51] Update `fuse.js` v6.5.3 to v6.6.2 basic - https://github.com/krisk/Fuse/releases/tag/v6.6.2 --- assets/js/fuse.basic.min.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/fuse.basic.min.js b/assets/js/fuse.basic.min.js index 025c4457..89477c64 100644 --- a/assets/js/fuse.basic.min.js +++ b/assets/js/fuse.basic.min.js @@ -1,9 +1,9 @@ /** - * Fuse.js v6.5.3 - Lightweight fuzzy-search (http://fusejs.io) + * Fuse.js v6.6.2 - Lightweight fuzzy-search (http://fusejs.io) * - * Copyright (c) 2021 Kiro Risk (http://kiro.me) + * Copyright (c) 2022 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(_).length;if(n.has(i))return n.get(i);var o=1/Math.pow(i,.5*e),a=parseFloat(Math.round(o*r)/r);return n.set(i,a),a},clear:function(){n.clear()}}}var O=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,i=void 0===n?L.getFn:n,o=t.fieldNormWeight,a=void 0===o?L.fieldNormWeight:o;r(this,e),this.norm=S(a,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,u(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();u(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?L.getFn:r,o=n.fieldNormWeight,a=void 0===o?L.fieldNormWeight:o,c=new O({getFn:i,fieldNormWeight:a});return c.setKeys(e.map(k)),c.setSources(t),c.create(),c}function j(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,a=t.expectedLocation,c=void 0===a?0:a,s=t.distance,h=void 0===s?L.distance:s,u=t.ignoreLocation,l=void 0===u?L.ignoreLocation:u,d=r/e.length;if(l)return d;var f=Math.abs(c-o);return h?d+f/h:f?1:d}function E(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.minMatchCharLength,n=[],r=-1,i=-1,o=0,a=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}var I=32;function C(e){for(var t={},n=0,r=e.length;n1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,a=void 0===o?L.location:o,c=i.threshold,s=void 0===c?L.threshold:c,h=i.distance,u=void 0===h?L.distance:h,l=i.includeMatches,d=void 0===l?L.includeMatches:l,f=i.findAllMatches,v=void 0===f?L.findAllMatches:f,g=i.minMatchCharLength,y=void 0===g?L.minMatchCharLength:g,p=i.isCaseSensitive,m=void 0===p?L.isCaseSensitive:p,b=i.ignoreLocation,k=void 0===b?L.ignoreLocation:b;if(r(this,e),this.options={location:a,threshold:s,distance:u,includeMatches:d,findAllMatches:v,minMatchCharLength:y,isCaseSensitive:m,ignoreLocation:k},this.pattern=m?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var M=function(e,t){n.chunks.push({pattern:e,alphabet:C(e),startIndex:t})},w=this.pattern.length;if(w>I){for(var x=0,_=w%I,S=w-_;x3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?L.location:i,a=r.distance,c=void 0===a?L.distance:a,s=r.threshold,h=void 0===s?L.threshold:s,u=r.findAllMatches,l=void 0===u?L.findAllMatches:u,d=r.minMatchCharLength,f=void 0===d?L.minMatchCharLength:d,v=r.includeMatches,g=void 0===v?L.includeMatches:v,y=r.ignoreLocation,m=void 0===y?L.ignoreLocation:y;if(t.length>I)throw new Error(p(I));for(var b,k=t.length,M=e.length,w=Math.max(0,Math.min(o,M)),x=h,_=w,S=f>1||g,O=S?Array(M):[];(b=e.indexOf(t,_))>-1;){var A=j(t,{currentLocation:b,expectedLocation:w,distance:c,ignoreLocation:m});if(x=Math.min(A,x),_=b+k,S)for(var C=0;C=T;R-=1){var U=R-1,B=n[e.charAt(U)];if(S&&(O[U]=+!!B),J[R]=(J[R+1]<<1|1)&B,$&&(J[R]|=(F[R+1]|F[R])<<1|1|F[R+1]),J[R]&W&&(N=j(t,{errors:$,currentLocation:U,expectedLocation:w,distance:c,ignoreLocation:m}))<=x){if(x=N,(_=U)<=w)break;T=Math.max(1,2*w-_)}}if(j(t,{errors:$+1,currentLocation:w,expectedLocation:w,distance:c,ignoreLocation:m})>x)break;F=J}var V={isMatch:_>=0,score:Math.max(.001,N)};if(S){var q=E(O,f);q.length?g&&(V.indices=q):V.isMatch=!1}return V}(e,n,i,{location:a+o,distance:s,threshold:h,findAllMatches:u,minMatchCharLength:l,includeMatches:r,ignoreLocation:d}),m=y.isMatch,b=y.score,k=y.indices;m&&(g=!0),v+=b,m&&k&&(f=[].concat(c(f),c(k)))}));var y={isMatch:g,score:g?v/this.chunks.length:1};return g&&r&&(y.indices=f),y}}]),e}(),N=[];function P(e,t){for(var n=0,r=N.length;n-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function D(e,t){t.score=e.score}function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?L.includeMatches:r,o=n.includeScore,a=void 0===o?L.includeScore:o,c=[];return i&&c.push($),a&&c.push(D),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return c.length&&c.forEach((function(t){t(e,r)})),r}))}var T=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;if(r(this,e),this.options=t(t({},L),i),this.options.useExtendedSearch)throw new Error(y);this._keyStore=new b(this.options.keys),this.setCollection(n,o)}return o(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof O))throw new Error("Incorrect 'index' type");this._myIndex=t||A(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){f(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,a=i.includeScore,c=i.shouldSort,s=i.sortFn,h=i.ignoreFieldNorm,d=u(e)?u(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return W(d,{ignoreFieldNorm:h}),c&&d.sort(s),l(r)&&r>-1&&(d=d.slice(0,r)),K(d,this._docs,{includeMatches:o,includeScore:a})}},{key:"_searchStringList",value:function(e){var t=P(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,i=e.i,o=e.n;if(f(n)){var a=t.searchIn(n),c=a.isMatch,s=a.score,h=a.indices;c&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:h}]})}})),r}},{key:"_searchLogical",value:function(e){throw new Error("Logical search is not available")}},{key:"_searchObjectList",value:function(e){var t=this,n=P(e,this.options),r=this._myIndex,i=r.keys,o=r.records,a=[];return o.forEach((function(e){var r=e.$,o=e.i;if(f(r)){var s=[];i.forEach((function(e,i){s.push.apply(s,c(t._findMatches({key:e,value:r[i],searcher:n})))})),s.length&&a.push({idx:o,item:r,matches:s})}})),a}},{key:"_findMatches",value:function(e){var t=e.key,n=e.value,r=e.searcher;if(!f(n))return[];var i=[];if(h(n))n.forEach((function(e){var n=e.v,o=e.i,a=e.n;if(f(n)){var c=r.searchIn(n),s=c.isMatch,h=c.score,u=c.indices;s&&i.push({score:h,key:t,value:n,idx:o,norm:a,indices:u})}}));else{var o=n.v,a=n.n,c=r.searchIn(o),s=c.isMatch,u=c.score,l=c.indices;s&&i.push({score:u,key:t,value:o,norm:a,indices:l})}return i}}]),e}();return T.version="6.5.3",T.createIndex=A,T.parseIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?L.getFn:n,i=t.fieldNormWeight,o=void 0===i?L.fieldNormWeight:i,a=e.keys,c=e.records,s=new O({getFn:r,fieldNormWeight:o});return s.setKeys(a),s.setIndexRecords(c),s},T.config=L,T},"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]: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(_).length;if(n.has(i))return n.get(i);var o=1/Math.pow(i,.5*e),a=parseFloat(Math.round(o*r)/r);return n.set(i,a),a},clear:function(){n.clear()}}}var O=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,i=void 0===n?L.getFn:n,o=t.fieldNormWeight,a=void 0===o?L.fieldNormWeight:o;r(this,e),this.norm=S(a,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,u(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();u(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?L.getFn:r,o=n.fieldNormWeight,a=void 0===o?L.fieldNormWeight:o,c=new O({getFn:i,fieldNormWeight:a});return c.setKeys(e.map(k)),c.setSources(t),c.create(),c}function j(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,a=t.expectedLocation,c=void 0===a?0:a,s=t.distance,h=void 0===s?L.distance:s,u=t.ignoreLocation,l=void 0===u?L.ignoreLocation:u,d=r/e.length;if(l)return d;var f=Math.abs(c-o);return h?d+f/h:f?1:d}function E(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.minMatchCharLength,n=[],r=-1,i=-1,o=0,a=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}var I=32;function F(e){for(var t={},n=0,r=e.length;n1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,a=void 0===o?L.location:o,c=i.threshold,s=void 0===c?L.threshold:c,h=i.distance,u=void 0===h?L.distance:h,l=i.includeMatches,d=void 0===l?L.includeMatches:l,f=i.findAllMatches,v=void 0===f?L.findAllMatches:f,g=i.minMatchCharLength,y=void 0===g?L.minMatchCharLength:g,p=i.isCaseSensitive,m=void 0===p?L.isCaseSensitive:p,b=i.ignoreLocation,k=void 0===b?L.ignoreLocation:b;if(r(this,e),this.options={location:a,threshold:s,distance:u,includeMatches:d,findAllMatches:v,minMatchCharLength:y,isCaseSensitive:m,ignoreLocation:k},this.pattern=m?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var M=function(e,t){n.chunks.push({pattern:e,alphabet:F(e),startIndex:t})},w=this.pattern.length;if(w>I){for(var x=0,_=w%I,S=w-_;x3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?L.location:i,a=r.distance,c=void 0===a?L.distance:a,s=r.threshold,h=void 0===s?L.threshold:s,u=r.findAllMatches,l=void 0===u?L.findAllMatches:u,d=r.minMatchCharLength,f=void 0===d?L.minMatchCharLength:d,v=r.includeMatches,g=void 0===v?L.includeMatches:v,y=r.ignoreLocation,m=void 0===y?L.ignoreLocation:y;if(t.length>I)throw new Error(p(I));for(var b,k=t.length,M=e.length,w=Math.max(0,Math.min(o,M)),x=h,_=w,S=f>1||g,O=S?Array(M):[];(b=e.indexOf(t,_))>-1;){var A=j(t,{currentLocation:b,expectedLocation:w,distance:c,ignoreLocation:m});if(x=Math.min(A,x),_=b+k,S)for(var F=0;F=T;R-=1){var U=R-1,B=n[e.charAt(U)];if(S&&(O[U]=+!!B),J[R]=(J[R+1]<<1|1)&B,$&&(J[R]|=(C[R+1]|C[R])<<1|1|C[R+1]),J[R]&W&&(N=j(t,{errors:$,currentLocation:U,expectedLocation:w,distance:c,ignoreLocation:m}))<=x){if(x=N,(_=U)<=w)break;T=Math.max(1,2*w-_)}}if(j(t,{errors:$+1,currentLocation:w,expectedLocation:w,distance:c,ignoreLocation:m})>x)break;C=J}var V={isMatch:_>=0,score:Math.max(.001,N)};if(S){var q=E(O,f);q.length?g&&(V.indices=q):V.isMatch=!1}return V}(e,n,i,{location:a+o,distance:s,threshold:h,findAllMatches:u,minMatchCharLength:l,includeMatches:r,ignoreLocation:d}),m=y.isMatch,b=y.score,k=y.indices;m&&(g=!0),v+=b,m&&k&&(f=[].concat(c(f),c(k)))}));var y={isMatch:g,score:g?v/this.chunks.length:1};return g&&r&&(y.indices=f),y}}]),e}(),N=[];function P(e,t){for(var n=0,r=N.length;n-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function D(e,t){t.score=e.score}function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?L.includeMatches:r,o=n.includeScore,a=void 0===o?L.includeScore:o,c=[];return i&&c.push($),a&&c.push(D),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return c.length&&c.forEach((function(t){t(e,r)})),r}))}var T=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;if(r(this,e),this.options=t(t({},L),i),this.options.useExtendedSearch)throw new Error(y);this._keyStore=new b(this.options.keys),this.setCollection(n,o)}return o(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof O))throw new Error("Incorrect 'index' type");this._myIndex=t||A(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){f(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,a=i.includeScore,c=i.shouldSort,s=i.sortFn,h=i.ignoreFieldNorm,d=u(e)?u(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return W(d,{ignoreFieldNorm:h}),c&&d.sort(s),l(r)&&r>-1&&(d=d.slice(0,r)),K(d,this._docs,{includeMatches:o,includeScore:a})}},{key:"_searchStringList",value:function(e){var t=P(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,i=e.i,o=e.n;if(f(n)){var a=t.searchIn(n),c=a.isMatch,s=a.score,h=a.indices;c&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:h}]})}})),r}},{key:"_searchLogical",value:function(e){throw new Error("Logical search is not available")}},{key:"_searchObjectList",value:function(e){var t=this,n=P(e,this.options),r=this._myIndex,i=r.keys,o=r.records,a=[];return o.forEach((function(e){var r=e.$,o=e.i;if(f(r)){var s=[];i.forEach((function(e,i){s.push.apply(s,c(t._findMatches({key:e,value:r[i],searcher:n})))})),s.length&&a.push({idx:o,item:r,matches:s})}})),a}},{key:"_findMatches",value:function(e){var t=e.key,n=e.value,r=e.searcher;if(!f(n))return[];var i=[];if(h(n))n.forEach((function(e){var n=e.v,o=e.i,a=e.n;if(f(n)){var c=r.searchIn(n),s=c.isMatch,h=c.score,u=c.indices;s&&i.push({score:h,key:t,value:n,idx:o,norm:a,indices:u})}}));else{var o=n.v,a=n.n,c=r.searchIn(o),s=c.isMatch,u=c.score,l=c.indices;s&&i.push({score:u,key:t,value:o,norm:a,indices:l})}return i}}]),e}();return T.version="6.6.2",T.createIndex=A,T.parseIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?L.getFn:n,i=t.fieldNormWeight,o=void 0===i?L.fieldNormWeight:i,a=e.keys,c=e.records,s=new O({getFn:r,fieldNormWeight:o});return s.setKeys(a),s.setIndexRecords(c),s},T.config=L,T},"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 From e1a46046bcd737c088d56a11396088a22453c820 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 29 May 2022 10:52:15 +0530 Subject: [PATCH 04/51] Stop minfiying already minified resources - Keeps the license text for 3rd party lib in place after generation --- layouts/partials/head.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index b0e47876..3b566232 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -61,13 +61,13 @@ {{- /* Search */}} {{- if (eq .Layout `search`) -}} -{{- $fastsearch := resources.Get "js/fastsearch.js" | js.Build (dict "params" (dict "fuseOpts" site.Params.fuseOpts)) }} +{{- $fastsearch := resources.Get "js/fastsearch.js" | js.Build (dict "params" (dict "fuseOpts" site.Params.fuseOpts)) | resources.Minify }} {{- $fusejs := resources.Get "js/fuse.basic.min.js" }} {{- if not site.Params.assets.disableFingerprinting }} -{{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify | fingerprint }} +{{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | fingerprint }} {{- else }} -{{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify }} +{{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" }} {{- end }} {{- end -}} @@ -76,11 +76,11 @@ {{- $isHLJSdisabled := (site.Params.assets.disableHLJS | default .Params.disableHLJS ) }} {{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (not $isHLJSdisabled)) }} {{- if not site.Params.assets.disableFingerprinting }} -{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint }} +{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | fingerprint }} {{- else }} -{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify }} +{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" }} {{- end }} {{- end }} From a4b20f0f4d4aaa05154c0dd6b94f0c88238487d8 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 29 May 2022 11:11:26 +0530 Subject: [PATCH 05/51] Add license text for PaperMod in resources --- assets/css/core/license.css | 6 ++++++ assets/js/license.js | 6 ++++++ layouts/partials/head.html | 10 ++++++---- 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 assets/css/core/license.css create mode 100644 assets/js/license.js diff --git a/assets/css/core/license.css b/assets/css/core/license.css new file mode 100644 index 00000000..8e81d229 --- /dev/null +++ b/assets/css/core/license.css @@ -0,0 +1,6 @@ +/* + PaperMod v6 + License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE + Copyright (c) 2020 nanxiaobei and adityatelange + Copyright (c) 2021-2022 adityatelange +*/ diff --git a/assets/js/license.js b/assets/js/license.js new file mode 100644 index 00000000..8e81d229 --- /dev/null +++ b/assets/js/license.js @@ -0,0 +1,6 @@ +/* + PaperMod v6 + License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE + Copyright (c) 2020 nanxiaobei and adityatelange + Copyright (c) 2021-2022 adityatelange +*/ diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3b566232..04e7b622 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -37,6 +37,7 @@ {{- $theme_vars := (resources.Get "css/core/theme-vars.css") }} {{- $reset := (resources.Get "css/core/reset.css") }} {{- $media := (resources.Get "css/core/zmedia.css") }} +{{- $license_css := (resources.Get "css/core/license.css") }} {{- $common := (resources.Match "css/common/*.css") | resources.Concat "assets/css/common.css" }} {{- /* include `an-old-hope` if hljs is on */}} @@ -44,12 +45,12 @@ {{- $hljs := (cond ($isHLJSdisabled) (" " | resources.FromString "assets/css/hljs-blank.css") (resources.Get "css/hljs/an-old-hope.min.css")) }} {{- /* order is important */}} -{{- $core := (slice $theme_vars $reset $common $hljs $media) | resources.Concat "assets/css/core.css" }} -{{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" }} +{{- $core := (slice $theme_vars $reset $common $hljs $media) | resources.Concat "assets/css/core.css" | resources.Minify }} +{{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" | resources.Minify }} {{- /* bundle all required css */}} {{- /* Add extended css after theme style */ -}} -{{- $stylesheet := (slice $core $extended) | resources.Concat "assets/css/stylesheet.css" | minify }} +{{- $stylesheet := (slice $license_css $core $extended) | resources.Concat "assets/css/stylesheet.css" }} {{- if not site.Params.assets.disableFingerprinting }} {{- $stylesheet := $stylesheet | fingerprint }} @@ -63,8 +64,9 @@ {{- $fastsearch := resources.Get "js/fastsearch.js" | js.Build (dict "params" (dict "fuseOpts" site.Params.fuseOpts)) | resources.Minify }} {{- $fusejs := resources.Get "js/fuse.basic.min.js" }} +{{- $license_js := resources.Get "js/license.js" }} {{- if not site.Params.assets.disableFingerprinting }} -{{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | fingerprint }} +{{- $search := (slice $fusejs $license_js $fastsearch ) | resources.Concat "assets/js/search.js" | fingerprint }} {{- else }} {{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" }} From 43ac108b0343f2b8016b83a984e4f302b70cbd6b Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 29 May 2022 11:12:48 +0530 Subject: [PATCH 06/51] Stop using git.io link as it might get removed soon --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index ae02d99a..52668eb3 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -8,7 +8,7 @@ Powered by Hugo & - PaperMod + PaperMod {{- end }} From c2d047f376f107d7760e58c642c325e5f3d18d26 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 3 Jun 2022 18:28:52 +0530 Subject: [PATCH 07/51] Add code loading CSS for required features based on #696 --- layouts/partials/head.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 04e7b622..5695a5bb 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -34,6 +34,13 @@ {{- end }} {{- /* Styles */}} + +{{- /* includes */}} +{{- $includes := slice }} +{{- $includes = $includes | append (" " | resources.FromString "assets/css/includes-blank.css")}} + +{{- $includes_all := $includes | resources.Concat "assets/css/includes.css" }} + {{- $theme_vars := (resources.Get "css/core/theme-vars.css") }} {{- $reset := (resources.Get "css/core/reset.css") }} {{- $media := (resources.Get "css/core/zmedia.css") }} @@ -45,7 +52,7 @@ {{- $hljs := (cond ($isHLJSdisabled) (" " | resources.FromString "assets/css/hljs-blank.css") (resources.Get "css/hljs/an-old-hope.min.css")) }} {{- /* order is important */}} -{{- $core := (slice $theme_vars $reset $common $hljs $media) | resources.Concat "assets/css/core.css" | resources.Minify }} +{{- $core := (slice $theme_vars $reset $common $hljs $includes_all $media) | resources.Concat "assets/css/core.css" | resources.Minify }} {{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" | resources.Minify }} {{- /* bundle all required css */}} From 0ed246d47d7c500ec8296fd2e495f51badbfd2af Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 3 Jun 2022 18:32:09 +0530 Subject: [PATCH 08/51] Seperate scroll-bar customization into seperate stylesheet --- assets/css/common/post-single.css | 26 ------------ assets/css/core/reset.css | 26 ------------ assets/css/core/zmedia.css | 8 ---- assets/css/includes/scroll-bar.css | 63 ++++++++++++++++++++++++++++++ 4 files changed, 63 insertions(+), 60 deletions(-) create mode 100644 assets/css/includes/scroll-bar.css diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 675bb684..2ceea084 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -189,10 +189,6 @@ margin-bottom: 0; } -.post-content .highlighttable td .highlight pre code::-webkit-scrollbar { - display: none; -} - .post-content code { margin: auto 4px; padding: 4px 6px; @@ -368,28 +364,6 @@ h6:hover .anchor { user-select: none; } -.post-content :not(table) ::-webkit-scrollbar-thumb { - border: 2px solid var(--hljs-bg); - background: rgb(113, 113, 117); -} - -.post-content :not(table) ::-webkit-scrollbar-thumb:hover { - background: rgb(163, 163, 165); -} - -.gist table::-webkit-scrollbar-thumb { - border: 2px solid rgb(255, 255, 255); - background: rgb(173, 173, 173); -} - -.gist table::-webkit-scrollbar-thumb:hover { - background: rgb(112, 112, 112); -} - -.post-content table::-webkit-scrollbar-thumb { - border-width: 2px; -} - .paginav { margin: 10px 0; display: flex; diff --git a/assets/css/core/reset.css b/assets/css/core/reset.css index d7bd2ecf..f509cf6e 100644 --- a/assets/css/core/reset.css +++ b/assets/css/core/reset.css @@ -114,29 +114,3 @@ img { display: block; max-width: 100%; } - -::-webkit-scrollbar-track { - background: 0 0; -} - -.list:not(.dark)::-webkit-scrollbar-track { - background: var(--code-bg); -} - -::-webkit-scrollbar-thumb { - background: var(--tertiary); - border: 5px solid var(--theme); - border-radius: var(--radius); -} - -.list:not(.dark)::-webkit-scrollbar-thumb { - border: 5px solid var(--code-bg); -} - -::-webkit-scrollbar-thumb:hover { - background: var(--secondary); -} - -::-webkit-scrollbar:not(.highlighttable, .highlight table, .gist .highlight) { - background: var(--theme); -} \ No newline at end of file diff --git a/assets/css/core/zmedia.css b/assets/css/core/zmedia.css index 1cc6c6e7..28884728 100644 --- a/assets/css/core/zmedia.css +++ b/assets/css/core/zmedia.css @@ -29,14 +29,6 @@ } } -@media screen and (min-width: 768px) { - /* reset */ - ::-webkit-scrollbar { - width: 19px; - height: 11px; - } -} - /* footer */ @media screen and (max-width: 900px) { .list .top-link { diff --git a/assets/css/includes/scroll-bar.css b/assets/css/includes/scroll-bar.css new file mode 100644 index 00000000..47405de2 --- /dev/null +++ b/assets/css/includes/scroll-bar.css @@ -0,0 +1,63 @@ +/* from reset */ +::-webkit-scrollbar-track { + background: 0 0; +} + +.list:not(.dark)::-webkit-scrollbar-track { + background: var(--code-bg); +} + +::-webkit-scrollbar-thumb { + background: var(--tertiary); + border: 5px solid var(--theme); + border-radius: var(--radius); +} + +.list:not(.dark)::-webkit-scrollbar-thumb { + border: 5px solid var(--code-bg); +} + +::-webkit-scrollbar-thumb:hover { + background: var(--secondary); +} + +::-webkit-scrollbar:not(.highlighttable, .highlight table, .gist .highlight) { + background: var(--theme); +} + +/* from post-single */ +.post-content .highlighttable td .highlight pre code::-webkit-scrollbar { + display: none; +} + +.post-content :not(table) ::-webkit-scrollbar-thumb { + border: 2px solid var(--hljs-bg); + background: rgb(113, 113, 117); +} + +.post-content :not(table) ::-webkit-scrollbar-thumb:hover { + background: rgb(163, 163, 165); +} + +.gist table::-webkit-scrollbar-thumb { + border: 2px solid rgb(255, 255, 255); + background: rgb(173, 173, 173); +} + +.gist table::-webkit-scrollbar-thumb:hover { + background: rgb(112, 112, 112); +} + +.post-content table::-webkit-scrollbar-thumb { + border-width: 2px; +} + +/* from zmedia */ +@media screen and (min-width: 768px) { + + /* reset */ + ::-webkit-scrollbar { + width: 19px; + height: 11px; + } +} \ No newline at end of file From 181a8c38f36f049ccaef94274540c01d2619088c Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 3 Jun 2022 18:33:54 +0530 Subject: [PATCH 09/51] Allow disabling custom Scroll Bar Style closes #637 Usage => Params.assets.disableScrollBarStyle: true --- layouts/partials/head.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5695a5bb..770bdaac 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -39,6 +39,11 @@ {{- $includes := slice }} {{- $includes = $includes | append (" " | resources.FromString "assets/css/includes-blank.css")}} +{{- if not (eq site.Params.assets.disableScrollBarStyle true) }} + {{- $ScrollStyle := (resources.Get "css/includes/scroll-bar.css") }} + {{- $includes = (append $ScrollStyle $includes) }} +{{- end }} + {{- $includes_all := $includes | resources.Concat "assets/css/includes.css" }} {{- $theme_vars := (resources.Get "css/core/theme-vars.css") }} From c69269575464ba6f029d9bb51e1f984045c22d5c Mon Sep 17 00:00:00 2001 From: Roj Date: Sat, 4 Jun 2022 18:43:35 +0300 Subject: [PATCH 10/51] Improve Kurdish translations (#936) --- i18n/ku.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/i18n/ku.yaml b/i18n/ku.yaml index b6d5e321..d1d30a53 100644 --- a/i18n/ku.yaml +++ b/i18n/ku.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Rêpela Berê" + translation: "Rûpela Paş" - id: next_page - translation: "Rûpela Bê" + translation: "Rûpela Pêş" - id: read_time translation: @@ -13,13 +13,13 @@ translation: "Pêrist" - id: translations - translation: "Wergêranan" + translation: "Wergeran" - id: home translation: "Xanî" - id: code_copy - translation: "Jê bigre" + translation: "Jê bigire" - id: code_copied - translation: "Hat jê girtin!" + translation: "Hat jêgirtin!" From a94674e6c9c7f0902b2cfeccd3016c623e3d2fbb Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 10 Jun 2022 21:26:13 +0530 Subject: [PATCH 11/51] Include chroma fix code when hljs is disabled provided: pygmentsUseClasses: true & markup.highlight.noClasses: false https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 770bdaac..7d73b784 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -54,7 +54,7 @@ {{- /* include `an-old-hope` if hljs is on */}} {{- $isHLJSdisabled := (site.Params.assets.disableHLJS | default false) }} -{{- $hljs := (cond ($isHLJSdisabled) (" " | resources.FromString "assets/css/hljs-blank.css") (resources.Get "css/hljs/an-old-hope.min.css")) }} +{{- $hljs := (cond ($isHLJSdisabled) (".chroma { background-color: unset !important;}" | resources.FromString "assets/css/hljs-blank.css") (resources.Get "css/hljs/an-old-hope.min.css")) }} {{- /* order is important */}} {{- $core := (slice $theme_vars $reset $common $hljs $includes_all $media) | resources.Concat "assets/css/core.css" | resources.Minify }} From 0262b5eba04eef9b860eb0f56621376998a66310 Mon Sep 17 00:00:00 2001 From: Taeho Nam Date: Thu, 23 Jun 2022 02:19:43 +0900 Subject: [PATCH 12/51] Fix typo to work with site verification tags (#954) It was originally correct code, but it has been erroneously corrected by the commit below. 575cc0c Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- layouts/partials/head.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7d73b784..b9ebda2c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -23,14 +23,14 @@ {{- with site.Params.description }}{{ . }}{{- end }}{{- end }}{{- end -}}"> -{{- if site.Params.analytics.googlesiteVerificationTag }} - +{{- if site.Params.analytics.google.SiteVerificationTag }} + {{- end }} -{{- if site.Params.analytics.yandexsiteVerificationTag }} - +{{- if site.Params.analytics.yandex.SiteVerificationTag }} + {{- end }} -{{- if site.Params.analytics.bingsiteVerificationTag }} - +{{- if site.Params.analytics.bing.SiteVerificationTag }} + {{- end }} {{- /* Styles */}} From 7683ef1825aefa5f209ce19d1bd5f9aeb302828f Mon Sep 17 00:00:00 2001 From: Vighnesh Shenoy Date: Wed, 22 Jun 2022 23:03:16 +0530 Subject: [PATCH 13/51] Add lichess.org social icon. (#952) --- layouts/partials/svg.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 89d5d6f6..81384414 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -326,6 +326,10 @@ d="m146.52 246.14c0 3.671-.604 7.03-1.811 10.07-1.207 3.043-2.879 5.669-5.01 7.881-2.138 2.213-4.702 3.935-7.693 5.167-2.992 1.231-6.248 1.848-9.767 1.848-1.71 0-3.42-.151-5.129-.453l-3.394 13.651h-11.162l12.52-52.19c2.01-.603 4.311-1.143 6.901-1.622 2.589-.477 5.393-.716 8.41-.716 2.815 0 5.242.428 7.278 1.282 2.037.855 3.708 2.024 5.02 3.507 1.307 1.484 2.274 3.219 2.904 5.205.627 1.987.942 4.11.942 6.373m-27.378 15.461c.854.202 1.91.302 3.167.302 1.961 0 3.746-.364 5.355-1.094 1.609-.728 2.979-1.747 4.111-3.055 1.131-1.307 2.01-2.877 2.64-4.714.628-1.835.943-3.858.943-6.071 0-2.161-.479-3.998-1.433-5.506-.956-1.508-2.615-2.263-4.978-2.263-1.61 0-3.118.151-4.525.453l-5.28 21.948" /> +{{- else if (eq $icon_name "lichess" ) -}} + + + {{- else if (eq $icon_name "linkedin") -}} From 9af128a8a638d139771afc30a8f331a73ce810b1 Mon Sep 17 00:00:00 2001 From: Em <105593707+aemtsh@users.noreply.github.com> Date: Fri, 24 Jun 2022 22:30:09 +0700 Subject: [PATCH 14/51] Update Indonesian Languange (id.yaml) (#955) --- i18n/id.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/i18n/id.yaml b/i18n/id.yaml index 0add1217..6262bbb0 100644 --- a/i18n/id.yaml +++ b/i18n/id.yaml @@ -9,8 +9,25 @@ one : "1 menit" other: "{{ .Count }} menit" +- id: words + translation: + one : "kata" + other: "{{ .Count }} kata" + - id: toc - translation: "Daftar Isi" + translation: "Daftar isi" - id: translations translation: "Terjemahan" + +- id: home + translation: "Beranda" + +- id: edit_post + translation: "Sunting" + +- id: code_copy + translation: "salin" + +- id: code_copied + translation: "disalin!" \ No newline at end of file From 36b4cb35a41244c703bc05c70071121b051598f5 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Fri, 8 Jul 2022 17:54:23 +0300 Subject: [PATCH 15/51] Update russian translation (#957) --- i18n/ru.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/i18n/ru.yaml b/i18n/ru.yaml index 7ef8ed21..a5dbb5cb 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -5,7 +5,20 @@ translation: "Следующая" - id: read_time - translation: "{{ .Count }} мин" + translation: + zero: "0 минут" + one: "1 минута" + few: "{{ .Count }} минуты" + many: "{{ .Count }} минут" + other: "{{ .Count }} минута" + +- id: words + translation: + zero: "0 слов" + one: "1 слово" + few: "{{ .Count }} слова" + many: "{{ .Count }} слов" + other: "{{ .Count }} слово" - id: toc translation: "Оглавление" @@ -16,6 +29,9 @@ - id: home translation: "Главная" +- id: edit_post + translation: "Редактировать" + - id: code_copy translation: "копировать" From 1ead1f76e20ece99d3262c4b710959cdca3cd9b8 Mon Sep 17 00:00:00 2001 From: Em <105593707+amrmtsh@users.noreply.github.com> Date: Fri, 8 Jul 2022 21:54:47 +0700 Subject: [PATCH 16/51] Change i18n next prev page Indonesian (#961) Co-authored-by: aemtsh <105593707+aemtsh@users.noreply.github.com> --- i18n/id.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/id.yaml b/i18n/id.yaml index 6262bbb0..93d34f5b 100644 --- a/i18n/id.yaml +++ b/i18n/id.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Halaman Sebelumnya" + translation: "Sebelumnya" - id: next_page - translation: "Halaman Selanjutnya" + translation: "Selanjutnya" - id: read_time translation: From 5f280c5df281cc004d8a4698345f08a9689c43ac Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:27:40 +0530 Subject: [PATCH 17/51] Simplify theme-toggle svg height --- assets/css/common/header.css | 4 ---- layouts/partials/header.html | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/assets/css/common/header.css b/assets/css/common/header.css index 3cd070e8..5a213848 100644 --- a/assets/css/common/header.css +++ b/assets/css/common/header.css @@ -36,10 +36,6 @@ margin-inline-end: 8px; } -#theme-toggle svg { - height: 18px; -} - button#theme-toggle { font-size: 26px; margin: auto 4px; diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 34dc9215..a2b09a4a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -73,12 +73,12 @@
{{- if (not site.Params.disableThemeToggle) }}
+ \ No newline at end of file From 5032b2c4f10eca2013d56aa4bef7a25842dac2c4 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:28:29 +0530 Subject: [PATCH 20/51] Revert "add blockquote as shortcode" This reverts commit 984d1a576c30134617f01df1933475188f033c14. Removal of shortcode for blockquote: https://github.com/parsiya/Hugo-Shortcodes/blob/master/shortcodes/blockquote.html --- layouts/shortcodes/blockquote.html | 72 ------------------------------ 1 file changed, 72 deletions(-) delete mode 100644 layouts/shortcodes/blockquote.html diff --git a/layouts/shortcodes/blockquote.html b/layouts/shortcodes/blockquote.html deleted file mode 100644 index 14bb107a..00000000 --- a/layouts/shortcodes/blockquote.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - -{{ $.Scratch.Set "bl_author" false }} -{{ $.Scratch.Set "bl_source" false }} -{{ $.Scratch.Set "bl_link" false }} -{{ $.Scratch.Set "bl_title" false }} - -{{ if .IsNamedParams }} - {{ $.Scratch.Set "bl_author" (.Get "author") }} - {{ $.Scratch.Set "bl_source" (.Get "source") }} - {{ $.Scratch.Set "bl_link" (.Get "link") }} - {{ $.Scratch.Set "bl_title" (.Get "title") }} -{{ else }} - -{{ end }} - - - -{{ with $.Scratch.Get "bl_title" }} - -{{ else }} - {{ with $.Scratch.Get "bl_link" }} - {{ range last 1 (split ($.Scratch.Get "bl_link" ) "://") }} - {{ $.Scratch.Set "title_without_protocol" . }} - {{ end }} - {{ range last 1 (split ($.Scratch.Get "title_without_protocol" ) "www.") }} - {{ $.Scratch.Set "title_without_protocol" . }} - {{ end }} - {{ $.Scratch.Set "bl_title" ($.Scratch.Get "title_without_protocol") }} - - - {{ if (gt (len ($.Scratch.Get "title_without_protocol") ) 32) }} - {{ $title := (slicestr ($.Scratch.Get "title_without_protocol") 0 32) }} - {{ $split_by_fw_slash := split $title "/" }} - {{ $count := (sub (len $split_by_fw_slash) 1) }} - - {{ $.Scratch.Set "tempstring" "" }} - {{ range first $count $split_by_fw_slash }} - {{ $.Scratch.Set "tempstring" ( . | printf "%s%s/" ($.Scratch.Get "tempstring") | printf "%s" ) }} - {{ end }} - {{ $.Scratch.Set "bl_title" ( printf "%s..." ($.Scratch.Get "tempstring") | printf "%s" ) }} - {{ end }} - {{ end }} -{{ end }} - -
-

{{ .Inner | markdownify }}

-
- {{ with $.Scratch.Get "bl_author" }}{{ . }}{{ end }} - {{ with $.Scratch.Get "bl_source" }} - {{ . }} - {{ else }} - {{ with $.Scratch.Get "bl_link" }} - - {{ $.Scratch.Get "bl_title" }} - - {{ else }} - {{ with $.Scratch.Get "bl_title" }} - - {{ $.Scratch.Get "bl_title" }} - - {{ end }} - {{ end }} - {{ end }} -
-
From e3c30b4e41e046c76402bce55233598ee01bb543 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:09:18 +0530 Subject: [PATCH 21/51] Add inTextImg shortcode Allows adding in-line-text images usage in page.md => This image is inlined {{< inTextImg.html url="image.png" >}} here. optional args: - height - alt --- assets/css/common/post-single.css | 5 +++++ layouts/shortcodes/inTextImg.html | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 layouts/shortcodes/inTextImg.html diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 029e2155..0f569bf5 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -393,4 +393,9 @@ h6:hover .anchor { h1>a>svg { display: inline; +} + +img.in-text { + display: inline; + margin: auto; } \ No newline at end of file diff --git a/layouts/shortcodes/inTextImg.html b/layouts/shortcodes/inTextImg.html new file mode 100644 index 00000000..5e6d84d6 --- /dev/null +++ b/layouts/shortcodes/inTextImg.html @@ -0,0 +1,5 @@ +{{- $Img := (.Get "url") }} +{{- $height := (.Get "height") }} +{{- $alt := (.Get "alt") }} + +{{$alt}} \ No newline at end of file From 4824f4623d47064ee29c273ad60a7d77f1ca9e0a Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:29:56 +0530 Subject: [PATCH 22/51] Mark External link with an SVG icon in profile-mode buttons and Menu --- layouts/partials/header.html | 8 ++++++++ layouts/partials/index_profile.html | 12 +++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a2b09a4a..732f8236 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -131,6 +131,14 @@ {{- .Name -}} {{ .Post -}} + {{- if (findRE "://" .URL) }} + + + + + + {{- end }} {{- end }} diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index 515073e4..fe489427 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -35,7 +35,17 @@ From 179fea63a3dea85c8822ab423903fac43c4efbbe Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:43:59 +0530 Subject: [PATCH 23/51] Add a space to External link SVG in header menu --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 732f8236..63cf652c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -131,7 +131,7 @@ {{- .Name -}} {{ .Post -}} - {{- if (findRE "://" .URL) }} + {{- if (findRE "://" .URL) }}  From 29fefb48905e7fefa8663976338872fc55487214 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Jul 2022 23:26:29 +0530 Subject: [PATCH 24/51] Add a space to External link SVG in profile button --- layouts/partials/index_profile.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index fe489427..5d28afa4 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -37,7 +37,7 @@ {{ .name }} - {{- if (findRE "://" .url) }} + {{- if (findRE "://" .url) }}  @@ -52,4 +52,4 @@ {{- end }} {{- end}} - \ No newline at end of file + From 621c9f60fbf5fb96415fa2c031d50c83514164a8 Mon Sep 17 00:00:00 2001 From: Jacob Biehler Date: Sat, 9 Jul 2022 09:22:39 +0000 Subject: [PATCH 25/51] Adding Sourcehut SocialIcon (#964) --- layouts/partials/svg.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 81384414..9d8616b4 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -484,6 +484,12 @@ +{{- else if (eq $icon_name "sourcehut") -}} + + + + {{- else if (eq $icon_name "spotify") -}} Date: Sat, 9 Jul 2022 20:08:58 +0530 Subject: [PATCH 26/51] Fix Profile Mode imageTitle missing fixes: #945 --- assets/css/common/profile-mode.css | 1 - layouts/partials/index_profile.html | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/css/common/profile-mode.css b/assets/css/common/profile-mode.css index 6826d960..58f28198 100644 --- a/assets/css/common/profile-mode.css +++ b/assets/css/common/profile-mode.css @@ -17,7 +17,6 @@ .profile img { display: inline-table; border-radius: 50%; - pointer-events: none; } .buttons { diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index 5d28afa4..c2ff3e69 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -20,10 +20,10 @@ {{- $img = $img.Resize "150x150" }} {{- end }} {{- end }} - {{ .imageTitle | default {{- else }} - {{ .imageTitle | default {{- end }} {{- end }} From 575b0b0e38ccf8446bcc3c4995ae3616c8159ffc Mon Sep 17 00:00:00 2001 From: Aniket Teredesai <50461557+icy-comet@users.noreply.github.com> Date: Sat, 16 Jul 2022 12:28:52 +0530 Subject: [PATCH 27/51] Update hindi translation (#977) --- i18n/hi.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/i18n/hi.yaml b/i18n/hi.yaml index 24e8fc61..681efdc5 100644 --- a/i18n/hi.yaml +++ b/i18n/hi.yaml @@ -1,14 +1,17 @@ - id: prev_page - translation: "पिछला पृष्ठ" + translation: "पिछला" - id: next_page - translation: "अगला पृष्ठ" + translation: "अगला" - id: read_time translation: one : "एक मिनट" other: "{{ .Count }} मिनट" +- id: edit_post + translation: "सुधारें" + - id: toc translation: "विषय - सूची" From 450e8867a64eafe1ca301a25e3e0878b4da5cbfa Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 17 Jul 2022 00:19:07 +0530 Subject: [PATCH 28/51] Update inTextImg.html Fix Bad value 15px for attribute height on element img: Expected a digit but saw p instead. --- layouts/shortcodes/inTextImg.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/inTextImg.html b/layouts/shortcodes/inTextImg.html index 5e6d84d6..0239fd68 100644 --- a/layouts/shortcodes/inTextImg.html +++ b/layouts/shortcodes/inTextImg.html @@ -2,4 +2,4 @@ {{- $height := (.Get "height") }} {{- $alt := (.Get "alt") }} -{{$alt}} \ No newline at end of file +{{$alt}} From bb6d4647bdf5716bfa6ccf5f91ef87d5297da758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Achim=20Kr=C3=A4mer?= <39946364+pxlfrk@users.noreply.github.com> Date: Sun, 17 Jul 2022 08:12:42 +0200 Subject: [PATCH 29/51] add missing Icons, update Icon style (#733) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 💄 Update Icons - add Icon for Micro.blog - add Icon for xmpp - add Icon for session messenger - update Steam Icon to fit to line icon style of papermod-theme Signed-off-by: Achim Krämer <39946364+pxlfrk@users.noreply.github.com> * refactor alphabetically Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- layouts/partials/svg.html | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 9d8616b4..f66fa9c6 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -360,6 +360,17 @@ d="M0 380 l0 -380 380 0 380 0 0 380 0 380 -380 0 -380 0 0 -380z m334 85 c30 -63 57 -115 59 -115 2 0 16 30 31 68 15 37 37 88 49 115 l20 47 76 0 76 -1 -27 -20 -28 -21 0 -151 c0 -150 0 -151 27 -179 l27 -28 -109 0 -109 0 27 28 c26 27 27 32 26 143 0 131 3 134 -71 -58 -24 -62 -48 -113 -53 -113 -6 0 -17 16 -24 35 -7 19 -36 83 -64 142 l-52 108 -3 -98 c-3 -97 -2 -99 28 -133 16 -19 30 -39 30 -44 0 -6 -31 -10 -70 -10 -45 0 -70 4 -70 11 0 6 14 27 30 46 30 33 30 35 30 151 0 116 0 118 -31 155 l-30 37 75 0 76 0 54 -115z" /> +{{- else if (eq $icon_name "microblog") -}} + + + + + + {{- else if (eq $icon_name "mixcloud") -}} +{{- else if (eq $icon_name "sessionmessenger") -}} + + + + {{- else if (eq $icon_name "soundcloud") -}} + d="M-24.6 20.8c-1.4-.8-2.7-1.5-4.1-2.3-2.4-1.5-3.6-3.6-3.3-6.5.3-3 2.8-5.2 5.8-5.3h11c2.6 0 4.6 2.2 4.7 4.7 0 2.6-2 4.8-4.6 4.9h-2.8v.2c.2.2.5.3.7.5 1.2.7 2.4 1.3 3.6 2 2.5 1.5 3.7 4.5 2.9 7.2-.8 2.7-3.1 4.3-6.1 4.4h-10.6c-2.4 0-4.3-1.9-4.6-4.3-.3-2.3 1.2-4.5 3.5-5.1.6-.1 1.2-.1 1.7-.2h2.1c.1 0 .1-.1.1-.2zm4.3-3.8c-.1.3-.2.3-.2.4v3.9c0 1.1-.1 1.2-1.2 1.2h-5.1c-.4 0-.9 0-1.3.1-1.6.4-2.5 1.9-2.4 3.6.2 1.6 1.6 2.9 3.3 2.9h10.5c2.1 0 3.8-1.2 4.5-3.1.7-1.8.2-4.1-1.5-5.3-2.1-1.3-4.3-2.4-6.6-3.7zm-1.7 3.4v-4c0-1.4.1-1.5 1.4-1.5h5.3c1.5 0 2.7-1 3.1-2.4.6-2.2-1-4.2-3.4-4.3h-10.1c-2.4 0-4.3 1.3-4.9 3.4-.6 2.1.4 4.4 2.5 5.5 1.7 1 3.5 1.9 5.2 2.9.4.2.6.3.9.4z" /> + + + + + + {{- else if (eq $icon_name "strava") -}} @@ -555,6 +584,12 @@ +{{- else if (eq $icon_name "xmpp") -}} + + + + {{- else if (eq $icon_name "ycombinator") -}} Date: Sun, 17 Jul 2022 10:58:40 +0530 Subject: [PATCH 30/51] Remove alt for label.icon considering "iconic images that are redundant with text next to them or purely decorative should have alt="" instead." from https://validator.w3.org/ --- layouts/partials/header.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 63cf652c..1e29e75a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -60,10 +60,10 @@ {{- $img = $img.Resize "x30" }} {{- end }} {{- end }} - logo {{- else }} - logo {{- end -}} {{- end -}} From 77ffb308c32a46a9336dcebbc242cb325ea98fa9 Mon Sep 17 00:00:00 2001 From: Aniket Teredesai <50461557+icy-comet@users.noreply.github.com> Date: Sat, 23 Jul 2022 09:45:32 +0530 Subject: [PATCH 31/51] Allow adding SVG in place of logo image (#976) Usage => Params.label.iconSVG: "" --- assets/css/common/header.css | 2 +- layouts/partials/header.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/css/common/header.css b/assets/css/common/header.css index 5a213848..64894da4 100644 --- a/assets/css/common/header.css +++ b/assets/css/common/header.css @@ -27,7 +27,7 @@ font-weight: 700; } -.logo a img { +.logo a img, .logo a svg { display: inline; vertical-align: middle; pointer-events: none; diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 1e29e75a..4a7291e2 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -66,6 +66,8 @@ {{- end -}} + {{- else if hasPrefix site.Params.label.iconSVG " From 0f37c0615ec7f1996ea452045dae2da18a7d48ff Mon Sep 17 00:00:00 2001 From: Aniket Teredesai <50461557+icy-comet@users.noreply.github.com> Date: Sun, 24 Jul 2022 12:22:35 +0530 Subject: [PATCH 32/51] add vimeo icon (#975) --- layouts/partials/svg.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index f66fa9c6..79b09ad0 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -571,6 +571,11 @@ d="M37.892,13.5h-4.486 l-1.143-3.306C31.707,8.581,30.189,7.5,28.483,7.5h-9.045c-1.706,0-3.224,1.081-3.781,2.694L14.515,13.5H9.108 c-2.545,0-4.608,2.063-4.608,4.608v16.785c0,2.545,2.063,4.608,4.608,4.608h28.785c2.545,0,4.608-2.063,4.608-4.608V18.108 C42.5,15.563,40.437,13.5,37.892,13.5z" /> +{{- else if (eq $icon_name "vimeo") -}} + + + {{- else if (eq $icon_name "xda") -}} Date: Sun, 24 Jul 2022 15:55:28 +0900 Subject: [PATCH 33/51] Add a meta tag for naver site verification (#991) --- layouts/partials/head.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index b9ebda2c..35257fc7 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -32,6 +32,9 @@ {{- if site.Params.analytics.bing.SiteVerificationTag }} {{- end }} +{{- if site.Params.analytics.naver.SiteVerificationTag }} + +{{- end }} {{- /* Styles */}} From 42fa989316c8630ca2adbc41a668aa2fe7574b5c Mon Sep 17 00:00:00 2001 From: Netruk44 Date: Fri, 5 Aug 2022 23:39:58 -0700 Subject: [PATCH 34/51] Add optional custom "title" for social links (#999) Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- layouts/partials/social_icons.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/social_icons.html b/layouts/partials/social_icons.html index 7c16e30e..3f8d6a35 100644 --- a/layouts/partials/social_icons.html +++ b/layouts/partials/social_icons.html @@ -1,6 +1,6 @@