diff --git a/LICENSE b/LICENSE index 85e428e..1580f7f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ MIT License Copyright (c) 2020 nanxiaobei and adityatelange -Copyright (c) 2021 adityatelange +Copyright (c) 2021-2022 adityatelange Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index ce755c7..286617a 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ The [demo](https://adityatelange.github.io/hugo-PaperMod/) includes a lot of doc [](https://themes.gohugo.io/themes/hugo-papermod/) [](https://sonarcloud.io/dashboard?id=adityatelange_hugo-PaperMod)  +[](https://discord.gg/ahpmTvhVmp) --- @@ -71,13 +72,13 @@ Read Wiki For More Details => **[PaperMod-FAQs](https://github.com/adityatelange --- -## Release Changelog +## Release Changelog 📃 Release ChangeLog has info about stuff added: **[Releases](https://github.com/adityatelange/hugo-PaperMod/releases)** --- -## [Pagespeed Insights (100% ?)](https://pagespeed.web.dev/report?url=https://adityatelange.github.io/hugo-PaperMod/) +## [Pagespeed Insights (100% ?)](https://pagespeed.web.dev/report?url=https://adityatelange.github.io/hugo-PaperMod/) 👀 --- @@ -88,3 +89,8 @@ Release ChangeLog has info about stuff added: **[Releases](https://github.com/ad - [**Feather Icons**](https://github.com/feathericons/feather) - [**Simple Icons**](https://github.com/simple-icons/simple-icons) - **All Contributors and Supporters** + +## Stargazers over time 📈 + +[](https://starchart.cc/adityatelange/hugo-PaperMod) + diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index dc1bee3..a99cb1c 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -161,6 +161,7 @@ margin: 10px auto; background: var(--hljs-bg) !important; border-radius: var(--radius); + direction: ltr; } .post-content li > .highlight { @@ -193,10 +194,6 @@ margin-bottom: 0; } -.post-content .highlighttable td .highlight pre code::-webkit-scrollbar { - display: none; -} - .post-content code { margin: auto 4px; padding: 4px 6px; @@ -227,8 +224,7 @@ margin: 30px 0; height: 2px; background: var(--tertiary); - border-top: 0; - border-bottom: 0; + border: 0; } .post-content iframe { @@ -349,17 +345,6 @@ margin-inline-end: 12px; } -.share-buttons a svg { - height: 30px; - width: 30px; - fill: currentColor; - transition: transform 0.1s; -} - -.share-buttons svg:active { - transform: scale(0.96); -} - h1:hover .anchor, h2:hover .anchor, h3:hover .anchor, @@ -373,28 +358,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; @@ -432,3 +395,12 @@ h6:hover .anchor { [dir="rtl"] .paginav .next { text-align: left; } + +h1>a>svg { + display: inline; +} + +img.in-text { + display: inline; + margin: auto; +} \ No newline at end of file diff --git a/assets/css/common/profile-mode.css b/assets/css/common/profile-mode.css index e5863dc..4e55f34 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/assets/css/core/license.css b/assets/css/core/license.css new file mode 100644 index 0000000..8e81d22 --- /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/css/core/reset.css b/assets/css/core/reset.css index dfb1caa..f509cf6 100644 --- a/assets/css/core/reset.css +++ b/assets/css/core/reset.css @@ -114,25 +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); -} diff --git a/assets/css/core/zmedia.css b/assets/css/core/zmedia.css index 1cc6c6e..210d486 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 { @@ -48,7 +40,6 @@ /* terms; profile-mode; post-single; post-entry; post-entry; search; search */ .terms-tags a:active, .button:active, - .share-buttons svg:active, .post-entry:active, .top-link, #searchResults .focus, diff --git a/assets/css/extended/blank.css b/assets/css/extended/blank.css index 4ef0559..944a4b0 100644 --- a/assets/css/extended/blank.css +++ b/assets/css/extended/blank.css @@ -92,6 +92,26 @@ code { text-decoration: underline; } +/* image center*/ +.post-content img { + margin: auto; +} + +/* table center */ +.post-content table > * { + display: grid; + place-items: center; +} + +/* table font size */ +.post-content table > thead > * > * { + font-size: 1rem; +} + +.post-content table > tbody > * > * { + font-size: 1rem; +} + body { font-family: "Josefin Sans", sans-serif; font-size: 1rem; diff --git a/assets/css/includes/scroll-bar.css b/assets/css/includes/scroll-bar.css new file mode 100644 index 0000000..47405de --- /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 diff --git a/assets/js/fuse.basic.min.js b/assets/js/fuse.basic.min.js index 025c445..89477c6 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 diff --git a/assets/js/license.js b/assets/js/license.js new file mode 100644 index 0000000..8e81d22 --- /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/i18n/en.yaml b/i18n/en.yaml index 3dc1579..3a1e215 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Prev Page" + translation: "Prev" - id: next_page - translation: "Next Page" + translation: "Next" - id: read_time translation: diff --git a/i18n/es.yaml b/i18n/es.yaml index 163bfc4..52a559c 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Página anterior" + translation: "Anterior" - id: next_page - translation: "Página siguiente" + translation: "Siguiente" - id: read_time translation: diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 46ad398..b074c10 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Page Précédente" + translation: "Page précédente" - id: next_page - translation: "Page Suivante" + translation: "Page suivante" - id: read_time translation: @@ -15,7 +15,7 @@ other: "{{ .Count }} mots" - id: toc - translation: "Table des Matières" + translation: "Table des matières" - id: translations translation: "Traductions" @@ -27,7 +27,7 @@ translation: "Modifier" - id: code_copy - translation: "copier" + translation: "Copier" - id: code_copied - translation: "copié!" + translation: "Copié !" diff --git a/i18n/hi.yaml b/i18n/hi.yaml index 24e8fc6..681efdc 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: "विषय - सूची" diff --git a/i18n/id.yaml b/i18n/id.yaml index 0add121..93d34f5 100644 --- a/i18n/id.yaml +++ b/i18n/id.yaml @@ -1,16 +1,33 @@ - id: prev_page - translation: "Halaman Sebelumnya" + translation: "Sebelumnya" - id: next_page - translation: "Halaman Selanjutnya" + translation: "Selanjutnya" - id: read_time translation: 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 diff --git a/i18n/ko.yaml b/i18n/ko.yaml index db0bcc7..777dd93 100644 --- a/i18n/ko.yaml +++ b/i18n/ko.yaml @@ -9,6 +9,11 @@ one : "1 분" other: "{{ .Count }} 분" +- id: words + translation: + one : "단어" + other: "{{ .Count }} 단어" + - id: toc translation: "목차" @@ -16,10 +21,13 @@ translation: "번역" - id: home - translation: "홈페이지" + translation: "홈" + +- id: edit_post + translation: "편집" - id: code_copy translation: "복사" - id: code_copied - translation: "복사완료!" + translation: "복사 완료!" diff --git a/i18n/ku.yaml b/i18n/ku.yaml index b6d5e32..d1d30a5 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!" diff --git a/i18n/ms.yaml b/i18n/ms.yaml new file mode 100644 index 0000000..d8a9eff --- /dev/null +++ b/i18n/ms.yaml @@ -0,0 +1,28 @@ +- id: prev_page + translation: "Halaman Sebelumnya" + +- id: next_page + translation: "Halaman Seterusnya" + +- id: read_time + translation: + one: "1 minit" + other: "{{ .Count }} minit" + +- id: toc + translation: "Isi Kandungan" + +- id: translations + translation: "Terjemahan" + +- id: home + translation: "Home" + +- id: edit_post + translation: "Sunting" + +- id: code_copy + translation: "Salin" + +- id: code_copied + translation: "Disalin!" diff --git a/i18n/ru.yaml b/i18n/ru.yaml index 7ef8ed2..a5dbb5c 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: "копировать" diff --git a/i18n/zh-tw.yaml b/i18n/zh-tw.yaml index 7b9d9db..48b84d2 100644 --- a/i18n/zh-tw.yaml +++ b/i18n/zh-tw.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "上一篇" + translation: "上一頁" - id: next_page - translation: "下一篇" + translation: "下一頁" - id: read_time translation: diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f4ff6ec..01ba752 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -7,7 +7,19 @@ {{- if not .IsHome | and .Title }} {{- partial "breadcrumbs.html" . }} - {{ .Title }} + + {{ .Title }} + {{- if and (or (eq .Kind `term`) (eq .Kind `section`)) (.Param "ShowRssButtonInSectionTermList") }} + + + + + + + + {{- end }} + {{- if .Description }} {{ .Description | markdownify }} @@ -58,9 +70,9 @@ {{- if (ne (.Param "hideSummary") true) }} - + {{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }} - + {{- end }} {{- if not (.Param "hideMeta") }} {{- $currentPage := . }} @@ -131,6 +133,14 @@ {{- .Name -}} {{ .Post -}} + {{- if (findRE "://" .URL) }} + + + + + + {{- end }} {{- end }} diff --git a/layouts/partials/home_info.html b/layouts/partials/home_info.html index eb55364..efae956 100644 --- a/layouts/partials/home_info.html +++ b/layouts/partials/home_info.html @@ -3,9 +3,9 @@ {{ .Title | markdownify }} - - {{ .Content | markdownify }} - + + {{ .Content | markdownify }} + diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index 1bb2079..c2ff3e6 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -20,10 +20,10 @@ {{- $img = $img.Resize "150x150" }} {{- end }} {{- end }} - {{- else }} - {{- end }} {{- end }} @@ -34,12 +34,22 @@ {{- with .buttons }} {{- range . }} - - {{ .name | title }} + + + {{ .name }} + {{- if (findRE "://" .url) }} + + + + + + {{- end }} + {{- end }} {{- end }} {{- end}} - \ No newline at end of file + diff --git a/layouts/partials/share_icons.html b/layouts/partials/share_icons.html index f9dd811..bd5668d 100644 --- a/layouts/partials/share_icons.html +++ b/layouts/partials/share_icons.html @@ -1,3 +1,8 @@ + {{- $pageurl := .Permalink }} {{- $title := .Title }} @@ -17,7 +22,7 @@ {{- if (cond ($custom) (in $ShareButtons "twitter") (true)) }} - + @@ -26,7 +31,7 @@ {{- if (cond ($custom) (in $ShareButtons "linkedin") (true)) }} - + @@ -35,7 +40,7 @@ {{- if (cond ($custom) (in $ShareButtons "reddit") (true)) }} - + @@ -44,7 +49,7 @@ {{- if (cond ($custom) (in $ShareButtons "facebook") (true)) }} - + @@ -53,7 +58,7 @@ {{- if (cond ($custom) (in $ShareButtons "whatsapp") (true)) }} - + @@ -62,7 +67,7 @@ {{- if (cond ($custom) (in $ShareButtons "telegram") (true)) }} - + diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 2151848..c2d5a73 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -18,6 +18,11 @@ +{{- else if (eq $icon_name "applepodcasts") -}} + + + {{- else if (eq $icon_name "behance") -}} @@ -33,6 +38,11 @@ +{{- else if (eq $icon_name "bitcoin") -}} + + + {{- else if (eq $icon_name "buymeacoffee") -}} +{{- else if (eq $icon_name "googlepodcasts") -}} + + + {{- else if (eq $icon_name "googlescholar") -}} +{{- else if (eq $icon_name "gurushots") -}} + + + + + + + + + + + + {{- else if (eq $icon_name "hackerone") -}} +{{- else if (eq $icon_name "lichess" ) -}} + + + {{- else if (eq $icon_name "linkedin") -}} @@ -327,11 +360,27 @@ 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 "monero") -}} + + + {{- else if (eq $icon_name "nuget") -}} @@ -344,6 +393,17 @@ +{{- else if (eq $icon_name "orcid") -}} + + + +{{- else if (eq $icon_name "overcast") -}} + + + {{- else if (eq $icon_name "paypal") -}} @@ -351,6 +411,11 @@ d="M7.144 19.532l1.049-5.751c.11-.606.691-1.002 1.304-.948 2.155.192 6.877.1 8.818-4.002 2.554-5.397-.59-7.769-6.295-7.769H7.43a1.97 1.97 0 0 0-1.944 1.655L2.77 19.507a.857.857 0 0 0 .846.994h2.368a1.18 1.18 0 0 0 1.161-.969zM7.967 22.522a.74.74 0 0 0 .666.416h2.313c.492 0 .923-.351 1.003-.837l.759-4.601c.095-.523.597-.866 1.127-.819 1.86.166 5.567-.118 6.85-3.821.554-1.6.705-2.954.408-4.018" style="font-variation-settings:normal" stroke="currentColor" stroke-linejoin="miter" /> +{{- else if (eq $icon_name "peertube") -}} + + + {{- else if or (eq $icon_name "pgpkey") (eq $icon_name "key") -}} @@ -363,6 +428,11 @@ +{{- else if (eq $icon_name "pocketcasts") -}} + + + {{- else if (eq $icon_name "polywork") -}} @@ -399,6 +469,12 @@ +{{- else if (eq $icon_name "sessionmessenger") -}} + + + + {{- else if (eq $icon_name "soundcloud") -}} -{{- else if (eq $icon_name "sourcerer") -}} - - - - - - - - - - - +{{- else if (eq $icon_name "sourcehut") -}} + + + {{- else if (eq $icon_name "spotify") -}} @@ -461,7 +521,24 @@ {{- else if (eq $icon_name "steam") -}} + 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") -}} + + {{- else if (eq $icon_name "telegram") -}} +{{- else if (eq $icon_name "tiktok") -}} + + + {{- else if (eq $icon_name "twitch") -}} @@ -487,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") -}} +{{- else if (eq $icon_name "xmpp") -}} + + + + {{- else if (eq $icon_name "ycombinator") -}} - {{- i18n "translations" | default "Translations" }}: {{- range .Translations }} diff --git a/layouts/shortcodes/blockquote.html b/layouts/shortcodes/blockquote.html deleted file mode 100644 index 14bb107..0000000 --- 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 }} - - - {{ end }} - {{ end }} - {{ end }} - - diff --git a/layouts/shortcodes/douban.html b/layouts/shortcodes/douban.html new file mode 100644 index 0000000..12a7db1 --- /dev/null +++ b/layouts/shortcodes/douban.html @@ -0,0 +1,217 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/layouts/shortcodes/inTextImg.html b/layouts/shortcodes/inTextImg.html new file mode 100644 index 0000000..0239fd6 --- /dev/null +++ b/layouts/shortcodes/inTextImg.html @@ -0,0 +1,5 @@ +{{- $Img := (.Get "url") }} +{{- $height := (.Get "height") }} +{{- $alt := (.Get "alt") }} + +
{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}
{{ .Content | markdownify }}
- {{ .Inner | markdownify }} -
{{ .Inner | markdownify }}