Ghost 4 (#345)
Co-authored-by: Eduardo Gómez <this.eduardo@gmail.com> Co-authored-by: Tim <mail@timscha.io>
This commit is contained in:
parent
8c8aa5fbe7
commit
15bc72e72a
10
README.md
10
README.md
|
@ -6,6 +6,10 @@ If you find this theme useful, please consider to make a donation to support its
|
||||||
|
|
||||||
<a href="https://ko-fi.com/eddiesigner" target="_blank"><img src="https://res.cloudinary.com/edev/image/upload/v1583011476/button_y8hgt8.png" alt="Donate" style="width: 250px !important; height: 60px !important;" width="250" height="60"></a>
|
<a href="https://ko-fi.com/eddiesigner" target="_blank"><img src="https://res.cloudinary.com/edev/image/upload/v1583011476/button_y8hgt8.png" alt="Donate" style="width: 250px !important; height: 60px !important;" width="250" height="60"></a>
|
||||||
|
|
||||||
|
## Ghost 4
|
||||||
|
|
||||||
|
This theme has been optimized for Ghost 4, if you are looking for a Ghost 3 compatible version please refer to [this link](https://github.com/eddiesigner/liebling/releases/tag/v.0.9.4).
|
||||||
|
|
||||||
## Preview
|
## Preview
|
||||||
|
|
||||||
You can see a live demo here: [https://liebling.eduardogomez.io](https://liebling.eduardogomez.io)
|
You can see a live demo here: [https://liebling.eduardogomez.io](https://liebling.eduardogomez.io)
|
||||||
|
@ -18,9 +22,9 @@ You can see a live demo here: [https://liebling.eduardogomez.io](https://lieblin
|
||||||
|
|
||||||
To get the latest version please head over the [releases page](https://github.com/eddiesigner/liebling/releases) and download the file `liebling.zip` of the latest release.
|
To get the latest version please head over the [releases page](https://github.com/eddiesigner/liebling/releases) and download the file `liebling.zip` of the latest release.
|
||||||
|
|
||||||
**IMPORTANT: To know how to enable the search, comments, newsletter and more, please head to the [Wiki](https://github.com/eddiesigner/liebling/wiki).**
|
## Documentation
|
||||||
|
|
||||||
From now on, this theme is only compatible with Ghost 3
|
To know how to enable the search, comments, newsletter and more, please head to the [Wiki](https://github.com/eddiesigner/liebling/wiki).
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
@ -123,7 +127,7 @@ Contributions are very welcome. First, please read the [Pull Request Guidelines]
|
||||||
|
|
||||||
* [Firma](https://gum.co/ZXLha) - Ghost theme that can be used by startups to large companies to publish any kind of articles related to their business. It stands out for its clean design and is able to adapt to any company's identity.
|
* [Firma](https://gum.co/ZXLha) - Ghost theme that can be used by startups to large companies to publish any kind of articles related to their business. It stands out for its clean design and is able to adapt to any company's identity.
|
||||||
|
|
||||||
* [Weiss Pro](https://eduardogomez.io/weiss-pro/) - Modern and beautiful Ghost theme ready to make your content shine.
|
* [Weiss Pro](https://gum.co/pzvDn) - Modern and beautiful Ghost theme ready to make your content shine.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1:function(t,n,e){"use strict";e.r(n),e.d(n,"isRTL",(function(){return o})),e.d(n,"isMobile",(function(){return a})),e.d(n,"isDarkMode",(function(){return i})),e.d(n,"formatDate",(function(){return r})),e.d(n,"getParameterByName",(function(){return c})),e.d(n,"adjustImageGallery",(function(){return u})),e.d(n,"managePostImages",(function(){return s})),e.d(n,"makeImagesZoomable",(function(){return l}));var o=function(){var t=document.querySelector("html");return["ar","he","fa"].includes(t.getAttribute("lang"))},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(t,")")).matches},i=function(){var t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)");return t&&t.matches},r=function(t){return t?new Date(t).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},c=function(t,n){n||(n=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var e=new RegExp("[?&]".concat(t,"(=([^&#]*)|&|#|$)")).exec(n);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null},u=function(){for(var t=document.querySelectorAll(".kg-gallery-image img"),n=0,e=t.length;n<e;n++){var o=t[n].closest(".kg-gallery-image"),a=t[n].attributes.width.value/t[n].attributes.height.value;o.style.flex="".concat(a," 1 0%")}},s=function(t){t(".js-post-content").find("img").each((function(){t(this).closest("figure").hasClass("kg-bookmark-card")||t(this).parent().is("a")||t(this).addClass("js-zoomable");var n=t(this).parent().find("figcaption");n?t(this).attr("alt",n.text()):t(this).attr("alt","")}))},l=function(t,n){n(".js-zoomable").on("opened",(function(){setTimeout((function(){var n=t(".medium-zoom-image--opened");n.length>1&&n.last().hide()}),10)}))}},12:function(t,n,e){e(1),e(22),e(27),e(29),e(31),e(33),e(35),t.exports=e(37)},22:function(t,n){},27:function(t,n){},29:function(t,n){},31:function(t,n){},33:function(t,n){},35:function(t,n){},37:function(t,n){}},[[12,0,1]]]);
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1:function(t,n,e){"use strict";e.r(n),e.d(n,"isRTL",(function(){return o})),e.d(n,"isMobile",(function(){return a})),e.d(n,"isDarkMode",(function(){return i})),e.d(n,"formatDate",(function(){return r})),e.d(n,"getParameterByName",(function(){return c})),e.d(n,"adjustImageGallery",(function(){return u})),e.d(n,"managePostImages",(function(){return s})),e.d(n,"makeImagesZoomable",(function(){return l}));var o=function(){var t=document.querySelector("html");return["ar","he","fa"].includes(t.getAttribute("lang"))},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(t,")")).matches},i=function(){var t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)");return t&&t.matches},r=function(t){return t?new Date(t).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},c=function(t,n){n||(n=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var e=new RegExp("[?&]".concat(t,"(=([^&#]*)|&|#|$)")).exec(n);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null},u=function(){for(var t=document.querySelectorAll(".kg-gallery-image img"),n=0,e=t.length;n<e;n++){var o=t[n].closest(".kg-gallery-image"),a=t[n].attributes.width.value/t[n].attributes.height.value;o.style.flex="".concat(a," 1 0%")}},s=function(t){t(".js-post-content").find("img").each((function(){t(this).closest("figure").hasClass("kg-bookmark-card")||t(this).parent().is("a")||t(this).addClass("js-zoomable");var n=t(this).parent().find("figcaption");n?t(this).attr("alt",n.text()):t(this).attr("alt","")}))},l=function(t,n){n(".js-zoomable").on("opened",(function(){setTimeout((function(){var n=t(".medium-zoom-image--opened");n.length>1&&n.last().hide()}),10)}))}},12:function(t,n,e){e(1),e(28),e(30),e(32),e(34),e(36),e(38),t.exports=e(40)},28:function(t,n){},30:function(t,n){},32:function(t,n){},34:function(t,n){},36:function(t,n){},38:function(t,n){},40:function(t,n){}},[[12,0,1]]]);
|
|
@ -1 +1 @@
|
||||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1:function(e,t,n){"use strict";n.r(t),n.d(t,"isRTL",(function(){return r})),n.d(t,"isMobile",(function(){return i})),n.d(t,"isDarkMode",(function(){return a})),n.d(t,"formatDate",(function(){return o})),n.d(t,"getParameterByName",(function(){return s})),n.d(t,"adjustImageGallery",(function(){return u})),n.d(t,"managePostImages",(function(){return d})),n.d(t,"makeImagesZoomable",(function(){return c}));var r=function(){var e=document.querySelector("html");return["ar","he","fa"].includes(e.getAttribute("lang"))},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(e,")")).matches},a=function(){var e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)");return e&&e.matches},o=function(e){return e?new Date(e).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},s=function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]".concat(e,"(=([^&#]*)|&|#|$)")).exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},u=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,n=e.length;t<n;t++){var r=e[t].closest(".kg-gallery-image"),i=e[t].attributes.width.value/e[t].attributes.height.value;r.style.flex="".concat(i," 1 0%")}},d=function(e){e(".js-post-content").find("img").each((function(){e(this).closest("figure").hasClass("kg-bookmark-card")||e(this).parent().is("a")||e(this).addClass("js-zoomable");var t=e(this).parent().find("figcaption");t?e(this).attr("alt",t.text()):e(this).attr("alt","")}))},c=function(e,t){t(".js-zoomable").on("opened",(function(){setTimeout((function(){var t=e(".medium-zoom-image--opened");t.length>1&&t.last().hide()}),10)}))}},16:function(e,t,n){e.exports=n(17)},17:function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=n(3),o=n(2),s=n(1);i()(document).ready((function(){var e=i()(".js-featured-slider");if(e.length>0){var t=e.find(".js-featured-slide").length,n=new o.d(".js-featured-slider",{type:"slider",rewind:!1,gap:0,swipeThreshold:!1,dragThreshold:!1,direction:Object(s.isRTL)()?"rtl":"ltr",breakpoints:{768:{swipeThreshold:1!==t&&80,dragThreshold:1!==t&&120}}});1===t&&e.find(".js-featured-slider-controls").remove(),n.on("mount.after",(function(){Object(a.a)(".js-featured-article-title",200)})),n.mount({Controls:o.b,Swipe:o.c,Breakpoints:o.a,ArrowDisabler:function(e,n){var r="js-featured-slider-controls",i="js-featured-slider-previous",a="js-featured-slider-next";return{mount:function(){e.settings.rewind||1===t||e.on(["mount.after","run"],(function(){var t=!0,o=!1,s=void 0;try{for(var u,d=n.Controls.items[Symbol.iterator]();!(t=(u=d.next()).done);t=!0){var c=u.value;if(c.className.includes(r)){var l=c.querySelector(".".concat(i));l&&(0===e.index?l.setAttribute("disabled",""):l.removeAttribute("disabled"));var f=c.querySelector(".".concat(a));if(f)(e.settings.bound?e.index+(e.settings.perView-1):e.index)===n.Sizes.length-1?f.setAttribute("disabled",""):f.removeAttribute("disabled")}}}catch(e){o=!0,s=e}finally{try{t||null==d.return||d.return()}finally{if(o)throw s}}}))}}}}),setTimeout((function(){window.dispatchEvent(new Event("resize"))}),350)}Object(a.a)(".js-featured-article-title",200)}))}},[[16,0,1]]]);
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1:function(e,t,n){"use strict";n.r(t),n.d(t,"isRTL",(function(){return r})),n.d(t,"isMobile",(function(){return o})),n.d(t,"isDarkMode",(function(){return i})),n.d(t,"formatDate",(function(){return a})),n.d(t,"getParameterByName",(function(){return u})),n.d(t,"adjustImageGallery",(function(){return s})),n.d(t,"managePostImages",(function(){return c})),n.d(t,"makeImagesZoomable",(function(){return l}));var r=function(){var e=document.querySelector("html");return["ar","he","fa"].includes(e.getAttribute("lang"))},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(e,")")).matches},i=function(){var e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)");return e&&e.matches},a=function(e){return e?new Date(e).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},u=function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]".concat(e,"(=([^&#]*)|&|#|$)")).exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},s=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,n=e.length;t<n;t++){var r=e[t].closest(".kg-gallery-image"),o=e[t].attributes.width.value/e[t].attributes.height.value;r.style.flex="".concat(o," 1 0%")}},c=function(e){e(".js-post-content").find("img").each((function(){e(this).closest("figure").hasClass("kg-bookmark-card")||e(this).parent().is("a")||e(this).addClass("js-zoomable");var t=e(this).parent().find("figcaption");t?e(this).attr("alt",t.text()):e(this).attr("alt","")}))},l=function(e,t){t(".js-zoomable").on("opened",(function(){setTimeout((function(){var t=e(".medium-zoom-image--opened");t.length>1&&t.last().hide()}),10)}))}},21:function(e,t,n){e.exports=n(22)},22:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(3),a=n(2),u=n(1);function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}o()((function(){var e=o()(".js-featured-slider");if(e.length>0){var t=e.find(".js-featured-slide").length,n=new a.d(".js-featured-slider",{type:"slider",rewind:!1,gap:0,swipeThreshold:!1,dragThreshold:!1,direction:Object(u.isRTL)()?"rtl":"ltr",breakpoints:{768:{swipeThreshold:1!==t&&80,dragThreshold:1!==t&&120}}});1===t&&e.find(".js-featured-slider-controls").remove(),n.on("mount.after",(function(){Object(i.a)(".js-featured-article-title",200)})),n.mount({Controls:a.b,Swipe:a.c,Breakpoints:a.a,ArrowDisabler:function(e,n){var r="js-featured-slider-controls",o="js-featured-slider-previous",i="js-featured-slider-next";return{mount:function(){e.settings.rewind||1===t||e.on(["mount.after","run"],(function(){var t,a=s(n.Controls.items);try{for(a.s();!(t=a.n()).done;){var u=t.value;if(u.className.includes(r)){var c=u.querySelector(".".concat(o));c&&(0===e.index?c.setAttribute("disabled",""):c.removeAttribute("disabled"));var l=u.querySelector(".".concat(i));if(l)(e.settings.bound?e.index+(e.settings.perView-1):e.index)===n.Sizes.length-1?l.setAttribute("disabled",""):l.removeAttribute("disabled")}}}catch(e){a.e(e)}finally{a.f()}}))}}}}),setTimeout((function(){window.dispatchEvent(new Event("resize"))}),350)}Object(i.a)(".js-featured-article-title",200)}))}},[[21,0,1]]]);
|
|
@ -1 +1 @@
|
||||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1:function(e,t,n){"use strict";n.r(t),n.d(t,"isRTL",(function(){return a})),n.d(t,"isMobile",(function(){return o})),n.d(t,"isDarkMode",(function(){return r})),n.d(t,"formatDate",(function(){return i})),n.d(t,"getParameterByName",(function(){return c})),n.d(t,"adjustImageGallery",(function(){return u})),n.d(t,"managePostImages",(function(){return s})),n.d(t,"makeImagesZoomable",(function(){return m}));var a=function(){var e=document.querySelector("html");return["ar","he","fa"].includes(e.getAttribute("lang"))},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(e,")")).matches},r=function(){var e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)");return e&&e.matches},i=function(e){return e?new Date(e).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},c=function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]".concat(e,"(=([^&#]*)|&|#|$)")).exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},u=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,n=e.length;t<n;t++){var a=e[t].closest(".kg-gallery-image"),o=e[t].attributes.width.value/e[t].attributes.height.value;a.style.flex="".concat(o," 1 0%")}},s=function(e){e(".js-post-content").find("img").each((function(){e(this).closest("figure").hasClass("kg-bookmark-card")||e(this).parent().is("a")||e(this).addClass("js-zoomable");var t=e(this).parent().find("figcaption");t?e(this).attr("alt",t.text()):e(this).attr("alt","")}))},m=function(e,t){t(".js-zoomable").on("opened",(function(){setTimeout((function(){var t=e(".medium-zoom-image--opened");t.length>1&&t.last().hide()}),10)}))}},20:function(e,t,n){e.exports=n(21)},21:function(e,t,n){"use strict";n.r(t);var a=n(0),o=n.n(a),r=n(5),i=n.n(r),c=n(4),u=n(1);o()(document).ready((function(){i()(".js-post-content"),Object(u.adjustImageGallery)(),Object(u.managePostImages)(o.a),Object(u.makeImagesZoomable)(o.a,c.a)}))}},[[20,0,1]]]);
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1:function(e,t,n){"use strict";n.r(t),n.d(t,"isRTL",(function(){return a})),n.d(t,"isMobile",(function(){return o})),n.d(t,"isDarkMode",(function(){return r})),n.d(t,"formatDate",(function(){return i})),n.d(t,"getParameterByName",(function(){return c})),n.d(t,"adjustImageGallery",(function(){return u})),n.d(t,"managePostImages",(function(){return s})),n.d(t,"makeImagesZoomable",(function(){return l}));var a=function(){var e=document.querySelector("html");return["ar","he","fa"].includes(e.getAttribute("lang"))},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(e,")")).matches},r=function(){var e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)");return e&&e.matches},i=function(e){return e?new Date(e).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},c=function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]".concat(e,"(=([^&#]*)|&|#|$)")).exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},u=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,n=e.length;t<n;t++){var a=e[t].closest(".kg-gallery-image"),o=e[t].attributes.width.value/e[t].attributes.height.value;a.style.flex="".concat(o," 1 0%")}},s=function(e){e(".js-post-content").find("img").each((function(){e(this).closest("figure").hasClass("kg-bookmark-card")||e(this).parent().is("a")||e(this).addClass("js-zoomable");var t=e(this).parent().find("figcaption");t?e(this).attr("alt",t.text()):e(this).attr("alt","")}))},l=function(e,t){t(".js-zoomable").on("opened",(function(){setTimeout((function(){var t=e(".medium-zoom-image--opened");t.length>1&&t.last().hide()}),10)}))}},25:function(e,t,n){e.exports=n(26)},26:function(e,t,n){"use strict";n.r(t);var a=n(0),o=n.n(a),r=n(4),i=n.n(r),c=n(5),u=n(1);o()((function(){i()(".js-post-content"),Object(u.adjustImageGallery)(),Object(u.managePostImages)(o.a),Object(u.makeImagesZoomable)(o.a,c.a)}))}},[[25,0,1]]]);
|
|
@ -1 +1 @@
|
||||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1:function(e,t,n){"use strict";n.r(t),n.d(t,"isRTL",(function(){return a})),n.d(t,"isMobile",(function(){return o})),n.d(t,"isDarkMode",(function(){return r})),n.d(t,"formatDate",(function(){return i})),n.d(t,"getParameterByName",(function(){return s})),n.d(t,"adjustImageGallery",(function(){return c})),n.d(t,"managePostImages",(function(){return l})),n.d(t,"makeImagesZoomable",(function(){return d}));var a=function(){var e=document.querySelector("html");return["ar","he","fa"].includes(e.getAttribute("lang"))},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(e,")")).matches},r=function(){var e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)");return e&&e.matches},i=function(e){return e?new Date(e).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},s=function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]".concat(e,"(=([^&#]*)|&|#|$)")).exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},c=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,n=e.length;t<n;t++){var a=e[t].closest(".kg-gallery-image"),o=e[t].attributes.width.value/e[t].attributes.height.value;a.style.flex="".concat(o," 1 0%")}},l=function(e){e(".js-post-content").find("img").each((function(){e(this).closest("figure").hasClass("kg-bookmark-card")||e(this).parent().is("a")||e(this).addClass("js-zoomable");var t=e(this).parent().find("figcaption");t?e(this).attr("alt",t.text()):e(this).attr("alt","")}))},d=function(e,t){t(".js-zoomable").on("opened",(function(){setTimeout((function(){var t=e(".medium-zoom-image--opened");t.length>1&&t.last().hide()}),10)}))}},18:function(e,t,n){e.exports=n(19)},19:function(e,t,n){"use strict";n.r(t);var a=n(0),o=n.n(a),r=n(4),i=n(5),s=n.n(i),c=n(3),l=n(2),d=n(1),u=null,m=null,h=window.pageYOffset,f=0,p=0,g=0,w=!1,b=function(){h=window.pageYOffset,v()},y=function(e){Object(d.isMobile)("1023px")?(o()("body").addClass("share-menu-displayed"),setTimeout((function(){u.removeAttr("data-aos")}),e)):o()("body").removeClass("share-menu-displayed")},j=function(){T(),y(100),setTimeout((function(){O(),v()}),200)},v=function(){w||requestAnimationFrame(k),w=!0},k=function(){var e=p-f,t=Math.ceil(h/e*100);t<=100&&x(t),w=!1},T=function(){f=window.innerHeight,p=o()(document).height()},O=function(){var e=m.parent().width(),t=e/2,n=Object(d.isMobile)()?2:3;m.parent().attr("viewBox","0 0 ".concat(e," ").concat(e)),m.attr("stroke-width",n),m.attr("r",t-(n-1)),m.attr("cx",t),m.attr("cy",t),g=2*t*Math.PI,m[0].style.strokeDasharray="".concat(g," ").concat(g),m[0].style.strokeDashoffset=g},x=function(e){if(e<=100){var t=g-e/100*g;m[0].style.strokeDashoffset=t}};o()(document).ready((function(){u=o()(".js-aos-wrapper");var e=o()(".js-scrolltop"),t=o()(".js-recommended-slider");if(s()(".js-post-content"),Object(d.adjustImageGallery)(),y(1e3),t.length>0){var n=new l.d(".js-recommended-slider",{type:"slider",rewind:!1,perView:3,swipeThreshold:!1,dragThreshold:!1,gap:0,direction:Object(d.isRTL)()?"rtl":"ltr",breakpoints:{1023:{type:"carousel",perView:2,swipeThreshold:80,dragThreshold:120},720:{type:"carousel",perView:2,swipeThreshold:80,dragThreshold:120},568:{type:"carousel",perView:1,swipeThreshold:80,dragThreshold:120}}});n.on("mount.after",(function(){Object(c.a)(".js-article-card-title",100),Object(c.a)(".js-article-card-title-no-image",250)})),n.on("length.change",(function(e){1===e&&(n.update({type:"slider"}),t.find(".js-controls").remove())})),n.mount({Controls:l.b,Swipe:l.c,Breakpoints:l.a,Length:function(e,t,n){return{mount:function(){n.emit("length.change",t.Sizes.length)}}}})}Object(c.a)(".js-article-card-title",100),Object(c.a)(".js-article-card-title-no-image",250),e.click((function(){o()("html, body").animate({scrollTop:0},500)})),Object(d.managePostImages)(o.a),Object(d.makeImagesZoomable)(o.a,r.a),window.addEventListener("scroll",b,{passive:!0}),window.addEventListener("resize",j,{passive:!0})})),o()(window).on("load",(function(){m=o()(".js-progress"),T(),O(),k(),setTimeout((function(){m.parent().css("opacity",1)}),300)}))}},[[18,0,1]]]);
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1:function(e,t,n){"use strict";n.r(t),n.d(t,"isRTL",(function(){return a})),n.d(t,"isMobile",(function(){return o})),n.d(t,"isDarkMode",(function(){return r})),n.d(t,"formatDate",(function(){return i})),n.d(t,"getParameterByName",(function(){return s})),n.d(t,"adjustImageGallery",(function(){return c})),n.d(t,"managePostImages",(function(){return l})),n.d(t,"makeImagesZoomable",(function(){return d}));var a=function(){var e=document.querySelector("html");return["ar","he","fa"].includes(e.getAttribute("lang"))},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(e,")")).matches},r=function(){var e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)");return e&&e.matches},i=function(e){return e?new Date(e).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},s=function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]".concat(e,"(=([^&#]*)|&|#|$)")).exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},c=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,n=e.length;t<n;t++){var a=e[t].closest(".kg-gallery-image"),o=e[t].attributes.width.value/e[t].attributes.height.value;a.style.flex="".concat(o," 1 0%")}},l=function(e){e(".js-post-content").find("img").each((function(){e(this).closest("figure").hasClass("kg-bookmark-card")||e(this).parent().is("a")||e(this).addClass("js-zoomable");var t=e(this).parent().find("figcaption");t?e(this).attr("alt",t.text()):e(this).attr("alt","")}))},d=function(e,t){t(".js-zoomable").on("opened",(function(){setTimeout((function(){var t=e(".medium-zoom-image--opened");t.length>1&&t.last().hide()}),10)}))}},23:function(e,t,n){e.exports=n(24)},24:function(e,t,n){"use strict";n.r(t);var a=n(0),o=n.n(a),r=n(5),i=n(4),s=n.n(i),c=n(3),l=n(2),d=n(1),u=null,m=null,h=window.pageYOffset,f=0,p=0,g=0,w=!1,b=function(){h=window.pageYOffset,y()},j=function(e){Object(d.isMobile)("1023px")?(o()("body").addClass("share-menu-displayed"),setTimeout((function(){u.removeAttr("data-aos")}),e)):o()("body").removeClass("share-menu-displayed")},v=function(){T(),j(100),setTimeout((function(){O(),y()}),200)},y=function(){w||requestAnimationFrame(k),w=!0},k=function(){var e=p-f,t=Math.ceil(h/e*100);t<=100&&x(t),w=!1},T=function(){f=window.innerHeight,p=o()(document).height()},O=function(){var e=m.parent().width(),t=e/2,n=Object(d.isMobile)()?2:3;m.parent().attr("viewBox","0 0 ".concat(e," ").concat(e)),m.attr("stroke-width",n),m.attr("r",t-(n-1)),m.attr("cx",t),m.attr("cy",t),g=2*t*Math.PI,m[0].style.strokeDasharray="".concat(g," ").concat(g),m[0].style.strokeDashoffset=g},x=function(e){if(e<=100){var t=g-e/100*g;m[0].style.strokeDashoffset=t}};o()((function(){u=o()(".js-aos-wrapper");var e=o()(".js-scrolltop"),t=o()(".js-recommended-slider");if(s()(".js-post-content"),Object(d.adjustImageGallery)(),j(1e3),t.length>0){var n=new l.d(".js-recommended-slider",{type:"slider",rewind:!1,perView:3,swipeThreshold:!1,dragThreshold:!1,gap:0,direction:Object(d.isRTL)()?"rtl":"ltr",breakpoints:{1023:{type:"carousel",perView:2,swipeThreshold:80,dragThreshold:120},720:{type:"carousel",perView:2,swipeThreshold:80,dragThreshold:120},568:{type:"carousel",perView:1,swipeThreshold:80,dragThreshold:120}}});n.on("mount.after",(function(){Object(c.a)(".js-article-card-title",100),Object(c.a)(".js-article-card-title-no-image",250)})),n.on("length.change",(function(e){1===e&&(n.update({type:"slider"}),t.find(".js-controls").remove())})),n.mount({Controls:l.b,Swipe:l.c,Breakpoints:l.a,Length:function(e,t,n){return{mount:function(){n.emit("length.change",t.Sizes.length)}}}})}Object(c.a)(".js-article-card-title",100),Object(c.a)(".js-article-card-title-no-image",250),e.on("click",(function(){o()("html, body").animate({scrollTop:0},500)})),Object(d.managePostImages)(o.a),Object(d.makeImagesZoomable)(o.a,r.a),window.addEventListener("scroll",b,{passive:!0}),window.addEventListener("resize",v,{passive:!0})})),o()(window).on("load",(function(){m=o()(".js-progress"),T(),O(),k(),setTimeout((function(){m.parent().css("opacity",1)}),300)}))}},[[23,0,1]]]);
|
File diff suppressed because one or more lines are too long
3
assets/js/vendor/content-api.min.js
vendored
3
assets/js/vendor/content-api.min.js
vendored
File diff suppressed because one or more lines are too long
12
default.hbs
12
default.hbs
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{@site.lang}}">
|
<html lang="{{@site.locale}}">
|
||||||
<head>
|
<head>
|
||||||
{{!-- Document Settings --}}
|
{{!-- Document Settings --}}
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'),
|
src: local('SourceSansPro-Regular'),
|
||||||
url("{{asset 'fonts/source-sans-pro/latin/source-sans-pro-regular.woff2'}}") format('woff2'),
|
url("{{asset 'fonts/source-sans-pro/latin/source-sans-pro-regular.woff2'}}") format('woff2'),
|
||||||
url("{{asset 'fonts/source-sans-pro/latin/source-sans-pro-regular.woff'}}") format('woff');
|
url("{{asset 'fonts/source-sans-pro/latin/source-sans-pro-regular.woff'}}") format('woff');
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'),
|
src: local('SourceSansPro-SemiBold'),
|
||||||
url("{{asset 'fonts/source-sans-pro/latin/source-sans-pro-600.woff2'}}") format('woff2'),
|
url("{{asset 'fonts/source-sans-pro/latin/source-sans-pro-600.woff2'}}") format('woff2'),
|
||||||
url("{{asset 'fonts/source-sans-pro/latin/source-sans-pro-600.woff'}}") format('woff');
|
url("{{asset 'fonts/source-sans-pro/latin/source-sans-pro-600.woff'}}") format('woff');
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'),
|
src: local('SourceSansPro-Bold'),
|
||||||
url("{{asset 'fonts/source-sans-pro/latin/source-sans-pro-700.woff2'}}") format('woff2'),
|
url("{{asset 'fonts/source-sans-pro/latin/source-sans-pro-700.woff2'}}") format('woff2'),
|
||||||
url("{{asset 'fonts/source-sans-pro/latin/source-sans-pro-700.woff'}}") format('woff');
|
url("{{asset 'fonts/source-sans-pro/latin/source-sans-pro-700.woff'}}") format('woff');
|
||||||
}
|
}
|
||||||
|
@ -103,9 +103,7 @@
|
||||||
{{> footer}}
|
{{> footer}}
|
||||||
|
|
||||||
{{!-- Notifications alerts --}}
|
{{!-- Notifications alerts --}}
|
||||||
{{#if @labs.members}}
|
{{> "notifications"}}
|
||||||
{{> "notifications"}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{!-- Common scripts shared between pages --}}
|
{{!-- Common scripts shared between pages --}}
|
||||||
<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver%2CPromise%2CArray.prototype.includes%2CString.prototype.endsWith%2CString.prototype.startsWith%2CObject.assign%2CNodeList.prototype.forEach"></script>
|
<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver%2CPromise%2CArray.prototype.includes%2CString.prototype.endsWith%2CString.prototype.startsWith%2CObject.assign%2CNodeList.prototype.forEach"></script>
|
||||||
|
|
|
@ -31,12 +31,7 @@ into the {body} of the default.hbs template --}}
|
||||||
{{#if @site.description}}
|
{{#if @site.description}}
|
||||||
<p class="m-hero-description bigger">{{@site.description}}</p>
|
<p class="m-hero-description bigger">{{@site.description}}</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if @labs.subscribers}}
|
<a href="{{@site.url}}/newsletter" class="m-button filled js-newsletter">{{t "Subscribe"}}</a>
|
||||||
<a href="{{@site.url}}/subscribe" class="m-button filled">{{t "Subscribe"}}</a>
|
|
||||||
{{/if}}
|
|
||||||
{{#if @labs.members}}
|
|
||||||
<a href="{{@site.url}}/newsletter" class="m-button filled">{{t "Subscribe"}}</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="l-content">
|
<div class="l-content">
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
"demo": "https://liebling.eduardogomez.io",
|
"demo": "https://liebling.eduardogomez.io",
|
||||||
"description": "Beautiful and clean theme that is easy and comfortable to use.",
|
"description": "Beautiful and clean theme that is easy and comfortable to use.",
|
||||||
"engines": {
|
"engines": {
|
||||||
"ghost": ">=3.0.0",
|
"ghost": ">=4.0.0",
|
||||||
"ghost-api": "v3"
|
"ghost-api": "v4"
|
||||||
},
|
},
|
||||||
"gpm": {
|
"gpm": {
|
||||||
"type": "theme",
|
"type": "theme",
|
||||||
|
@ -54,5 +54,5 @@
|
||||||
"desktop": "assets/screenshot-desktop.jpg",
|
"desktop": "assets/screenshot-desktop.jpg",
|
||||||
"mobile": "assets/screenshot-mobile.jpg"
|
"mobile": "assets/screenshot-mobile.jpg"
|
||||||
},
|
},
|
||||||
"version": "0.9.4"
|
"version": "1.0.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{!-- The template below includes the markup for each post --}}
|
{{!-- The template below includes the markup for each post --}}
|
||||||
|
|
||||||
{{#foreach posts visibility="all"}}
|
{{#foreach posts}}
|
||||||
{{#is "post"}}
|
{{#is "post"}}
|
||||||
<div class="m-recommended-slider__item glide__slide">
|
<div class="m-recommended-slider__item glide__slide">
|
||||||
{{/is}}
|
{{/is}}
|
||||||
|
|
55
post.hbs
55
post.hbs
|
@ -36,7 +36,7 @@ into the {body} of the default.hbs template --}}
|
||||||
<div class="l-wrapper in-post {{#unless feature_image}}no-image{{/unless}} js-aos-wrapper" data-aos="fade-up"
|
<div class="l-wrapper in-post {{#unless feature_image}}no-image{{/unless}} js-aos-wrapper" data-aos="fade-up"
|
||||||
data-aos-delay="300">
|
data-aos-delay="300">
|
||||||
<div
|
<div
|
||||||
class="l-post-content {{#if @labs.subscribers}}has-subscribe-form{{/if}} {{#if @labs.members}}has-subscribe-form{{/if}} js-progress-content">
|
class="l-post-content js-progress-content">
|
||||||
<header class="m-heading">
|
<header class="m-heading">
|
||||||
<h1 class="m-heading__title in-post">{{title}}</h1>
|
<h1 class="m-heading__title in-post">{{title}}</h1>
|
||||||
<div class="m-heading__meta">
|
<div class="m-heading__meta">
|
||||||
|
@ -84,48 +84,21 @@ into the {body} of the default.hbs template --}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{!-- Email subscribe form at the bottom of the page --}}
|
{{!-- Email subscribe form at the bottom of the page --}}
|
||||||
{{#if @labs.subscribers}}
|
<section class="m-subscribe-section js-newsletter">
|
||||||
<section class="m-subscribe-section">
|
<div class="l-wrapper in-post">
|
||||||
<div class="l-wrapper in-post">
|
<div class="m-subscribe-section__content">
|
||||||
<div class="m-subscribe-section__content">
|
<div class="m-subscribe-section__text">
|
||||||
<div class="m-subscribe-section__text">
|
<h4 class="m-subscribe-section__title">{{t "Subscribe to our newsletter"}}</h4>
|
||||||
<h4 class="m-subscribe-section__title">{{t "Subscribe to our newsletter"}}</h4>
|
<p class="m-subscribe-section__description">
|
||||||
<p class="m-subscribe-section__description">
|
{{t "Get the latest posts delivered right to your inbox."}}
|
||||||
{{t "Get the latest posts delivered right to your inbox."}}
|
</p>
|
||||||
</p>
|
</div>
|
||||||
</div>
|
<div class="m-subscribe-section__form">
|
||||||
<div class="m-subscribe-section__form">
|
{{> "newsletter-form"}}
|
||||||
{{subscribe_form
|
|
||||||
form_id="subscribe-form"
|
|
||||||
form_class="m-subscribe-section__form"
|
|
||||||
input_id="subscribe_input"
|
|
||||||
input_class="m-input in-subscribe-section"
|
|
||||||
button_id="subscribe_button"
|
|
||||||
button_class="m-button primary block"
|
|
||||||
placeholder=(t "Your email address")
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</div>
|
||||||
{{/if}}
|
</section>
|
||||||
{{#if @labs.members}}
|
|
||||||
<section class="m-subscribe-section">
|
|
||||||
<div class="l-wrapper in-post">
|
|
||||||
<div class="m-subscribe-section__content">
|
|
||||||
<div class="m-subscribe-section__text">
|
|
||||||
<h4 class="m-subscribe-section__title">{{t "Subscribe to our newsletter"}}</h4>
|
|
||||||
<p class="m-subscribe-section__description">
|
|
||||||
{{t "Get the latest posts delivered right to your inbox."}}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="m-subscribe-section__form">
|
|
||||||
{{> "newsletter-form"}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
{{/if}}
|
|
||||||
<section class="m-author">
|
<section class="m-author">
|
||||||
<div class="m-author__content">
|
<div class="m-author__content">
|
||||||
<div class="m-author__picture">
|
<div class="m-author__picture">
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
ghost:
|
ghost:
|
||||||
image: ghost:3.32.1
|
image: ghost:4.1.0
|
||||||
container_name: ghost
|
container_name: ghost
|
||||||
volumes:
|
volumes:
|
||||||
- ./..:/var/lib/ghost/content/themes/liebling:Z
|
- ./..:/var/lib/ghost/content/themes/liebling:Z
|
||||||
|
|
|
@ -4,7 +4,8 @@ import Glide, {
|
||||||
Swipe,
|
Swipe,
|
||||||
Breakpoints
|
Breakpoints
|
||||||
} from '@glidejs/glide/dist/glide.modular.esm'
|
} from '@glidejs/glide/dist/glide.modular.esm'
|
||||||
import tippy from 'tippy.js'
|
import tippy from 'tippy.js';
|
||||||
|
import 'tippy.js/dist/tippy.css';
|
||||||
import shave from 'shave'
|
import shave from 'shave'
|
||||||
import AOS from 'aos'
|
import AOS from 'aos'
|
||||||
import Fuse from 'fuse.js/dist/fuse.basic.esm.min.js'
|
import Fuse from 'fuse.js/dist/fuse.basic.esm.min.js'
|
||||||
|
@ -16,7 +17,7 @@ import {
|
||||||
getParameterByName
|
getParameterByName
|
||||||
} from './helpers'
|
} from './helpers'
|
||||||
|
|
||||||
$(document).ready(() => {
|
$(() => {
|
||||||
if (isRTL()) {
|
if (isRTL()) {
|
||||||
$('html').attr('dir', 'rtl').addClass('rtl')
|
$('html').attr('dir', 'rtl').addClass('rtl')
|
||||||
}
|
}
|
||||||
|
@ -41,6 +42,7 @@ $(document).ready(() => {
|
||||||
const $closeNotification = $('.js-notification-close')
|
const $closeNotification = $('.js-notification-close')
|
||||||
const $mainNav = $('.js-main-nav')
|
const $mainNav = $('.js-main-nav')
|
||||||
const $mainNavLeft = $('.js-main-nav-left')
|
const $mainNavLeft = $('.js-main-nav-left')
|
||||||
|
const $newsletterElements = $('.js-newsletter')
|
||||||
const currentSavedTheme = localStorage.getItem('theme')
|
const currentSavedTheme = localStorage.getItem('theme')
|
||||||
|
|
||||||
let fuse = null
|
let fuse = null
|
||||||
|
@ -63,6 +65,12 @@ $(document).ready(() => {
|
||||||
$body.toggleClass('no-scroll-y')
|
$body.toggleClass('no-scroll-y')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const tryToRemoveNewsletter = () => {
|
||||||
|
if (typeof disableNewsletter !== 'undefined' && disableNewsletter) {
|
||||||
|
$newsletterElements.remove()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const trySearchFeature = () => {
|
const trySearchFeature = () => {
|
||||||
if (typeof ghostSearchApiKey !== 'undefined') {
|
if (typeof ghostSearchApiKey !== 'undefined') {
|
||||||
getAllPosts(ghostHost, ghostSearchApiKey)
|
getAllPosts(ghostHost, ghostSearchApiKey)
|
||||||
|
@ -161,19 +169,19 @@ $(document).ready(() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$openMenu.click(() => {
|
$openMenu.on('click', () => {
|
||||||
$header.addClass('mobile-menu-opened')
|
$header.addClass('mobile-menu-opened')
|
||||||
$menu.addClass('opened')
|
$menu.addClass('opened')
|
||||||
toggleScrollVertical()
|
toggleScrollVertical()
|
||||||
})
|
})
|
||||||
|
|
||||||
$closeMenu.click(() => {
|
$closeMenu.on('click', () => {
|
||||||
$header.removeClass('mobile-menu-opened')
|
$header.removeClass('mobile-menu-opened')
|
||||||
$menu.removeClass('opened')
|
$menu.removeClass('opened')
|
||||||
toggleScrollVertical()
|
toggleScrollVertical()
|
||||||
})
|
})
|
||||||
|
|
||||||
$toggleSubmenu.click(() => {
|
$toggleSubmenu.on('click', () => {
|
||||||
submenuIsOpen = !submenuIsOpen
|
submenuIsOpen = !submenuIsOpen
|
||||||
|
|
||||||
if (submenuIsOpen) {
|
if (submenuIsOpen) {
|
||||||
|
@ -183,21 +191,21 @@ $(document).ready(() => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
$openSearch.click(() => {
|
$openSearch.on('click', () => {
|
||||||
$search.addClass('opened')
|
$search.addClass('opened')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
$inputSearch.focus()
|
$inputSearch.trigger('focus')
|
||||||
}, 400);
|
}, 400);
|
||||||
toggleScrollVertical()
|
toggleScrollVertical()
|
||||||
})
|
})
|
||||||
|
|
||||||
$closeSearch.click(() => {
|
$closeSearch.on('click', () => {
|
||||||
$inputSearch.blur()
|
$inputSearch.trigger('blur')
|
||||||
$search.removeClass('opened')
|
$search.removeClass('opened')
|
||||||
toggleScrollVertical()
|
toggleScrollVertical()
|
||||||
})
|
})
|
||||||
|
|
||||||
$inputSearch.keyup(() => {
|
$inputSearch.on('keyup', () => {
|
||||||
if ($inputSearch.val().length > 0 && fuse) {
|
if ($inputSearch.val().length > 0 && fuse) {
|
||||||
const results = fuse.search($inputSearch.val())
|
const results = fuse.search($inputSearch.val())
|
||||||
const bestResults = results.filter((result) => {
|
const bestResults = results.filter((result) => {
|
||||||
|
@ -234,7 +242,7 @@ $(document).ready(() => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
$toggleDarkMode.change(() => {
|
$toggleDarkMode.on('change', () => {
|
||||||
if ($toggleDarkMode.is(':checked')) {
|
if ($toggleDarkMode.is(':checked')) {
|
||||||
$('html').attr('data-theme', 'dark')
|
$('html').attr('data-theme', 'dark')
|
||||||
localStorage.setItem('theme', 'dark')
|
localStorage.setItem('theme', 'dark')
|
||||||
|
@ -244,17 +252,17 @@ $(document).ready(() => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
$toggleDarkMode.hover(() => {
|
$toggleDarkMode.on('hover', () => {
|
||||||
toggleDesktopTopbarOverflow(true)
|
toggleDesktopTopbarOverflow(true)
|
||||||
}, () => {
|
}, () => {
|
||||||
toggleDesktopTopbarOverflow(false)
|
toggleDesktopTopbarOverflow(false)
|
||||||
})
|
})
|
||||||
|
|
||||||
$closeNotification.click(function () {
|
$closeNotification.on('click', function () {
|
||||||
closeNotification($(this).parent())
|
closeNotification($(this).parent())
|
||||||
})
|
})
|
||||||
|
|
||||||
$(window).click((e) => {
|
$(window).on('click', (e) => {
|
||||||
if (submenuIsOpen) {
|
if (submenuIsOpen) {
|
||||||
if ($submenuOption && !$submenuOption.contains(e.target)) {
|
if ($submenuOption && !$submenuOption.contains(e.target)) {
|
||||||
submenuIsOpen = false
|
submenuIsOpen = false
|
||||||
|
@ -263,7 +271,7 @@ $(document).ready(() => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
$(document).keyup((e) => {
|
$(document).on('keyup', (e) => {
|
||||||
if (e.key === 'Escape' && $search.hasClass('opened')) {
|
if (e.key === 'Escape' && $search.hasClass('opened')) {
|
||||||
$closeSearch.click()
|
$closeSearch.click()
|
||||||
}
|
}
|
||||||
|
@ -353,6 +361,7 @@ $(document).ready(() => {
|
||||||
const template = document.getElementById('secondary-navigation-template')
|
const template = document.getElementById('secondary-navigation-template')
|
||||||
|
|
||||||
secondaryMenuTippy = tippy('.js-open-secondary-menu', {
|
secondaryMenuTippy = tippy('.js-open-secondary-menu', {
|
||||||
|
appendTo: document.body,
|
||||||
content: template.innerHTML,
|
content: template.innerHTML,
|
||||||
allowHTML: true,
|
allowHTML: true,
|
||||||
arrow: true,
|
arrow: true,
|
||||||
|
@ -373,5 +382,6 @@ $(document).ready(() => {
|
||||||
shave('.js-article-card-title-no-image', 250)
|
shave('.js-article-card-title-no-image', 250)
|
||||||
|
|
||||||
checkForActionParameter()
|
checkForActionParameter()
|
||||||
|
tryToRemoveNewsletter()
|
||||||
trySearchFeature()
|
trySearchFeature()
|
||||||
})
|
})
|
||||||
|
|
|
@ -7,7 +7,7 @@ import Glide, {
|
||||||
} from '@glidejs/glide/dist/glide.modular.esm'
|
} from '@glidejs/glide/dist/glide.modular.esm'
|
||||||
import { isRTL } from './helpers'
|
import { isRTL } from './helpers'
|
||||||
|
|
||||||
$(document).ready(() => {
|
$(() => {
|
||||||
const $featuredSlider = $('.js-featured-slider')
|
const $featuredSlider = $('.js-featured-slider')
|
||||||
|
|
||||||
if ($featuredSlider.length > 0) {
|
if ($featuredSlider.length > 0) {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import {
|
||||||
makeImagesZoomable
|
makeImagesZoomable
|
||||||
} from './helpers'
|
} from './helpers'
|
||||||
|
|
||||||
$(document).ready(() => {
|
$(() => {
|
||||||
fitvids('.js-post-content')
|
fitvids('.js-post-content')
|
||||||
|
|
||||||
adjustImageGallery()
|
adjustImageGallery()
|
||||||
|
|
|
@ -109,7 +109,7 @@ const prepareProgressCircle = () => {
|
||||||
}, 300)
|
}, 300)
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(() => {
|
$(() => {
|
||||||
$aosWrapper = $('.js-aos-wrapper')
|
$aosWrapper = $('.js-aos-wrapper')
|
||||||
const $scrollButton = $('.js-scrolltop')
|
const $scrollButton = $('.js-scrolltop')
|
||||||
const $recommendedSlider = $('.js-recommended-slider')
|
const $recommendedSlider = $('.js-recommended-slider')
|
||||||
|
@ -176,7 +176,7 @@ $(document).ready(() => {
|
||||||
shave('.js-article-card-title', 100)
|
shave('.js-article-card-title', 100)
|
||||||
shave('.js-article-card-title-no-image', 250)
|
shave('.js-article-card-title-no-image', 250)
|
||||||
|
|
||||||
$scrollButton.click(() => {
|
$scrollButton.on('click', () => {
|
||||||
$('html, body').animate({
|
$('html, body').animate({
|
||||||
scrollTop: 0
|
scrollTop: 0
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|
3
src/js/vendor/content-api.min.js
vendored
3
src/js/vendor/content-api.min.js
vendored
File diff suppressed because one or more lines are too long
9850
src/package-lock.json
generated
9850
src/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -29,32 +29,32 @@
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"7zip": "0.0.6",
|
"7zip": "0.0.6",
|
||||||
"@tryghost/admin-api": "^1.0.1",
|
"@tryghost/admin-api": "^1.4.0",
|
||||||
"browser-sync": "^2.26.7",
|
"browser-sync": "^2.26.14",
|
||||||
"browser-sync-webpack-plugin": "^2.0.1",
|
"browser-sync-webpack-plugin": "^2.3.0",
|
||||||
"concurrently": "^5.3.0",
|
"concurrently": "^6.0.0",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"fs": "0.0.1-security",
|
"fs": "0.0.1-security",
|
||||||
"ghost-cli": "^1.12.0",
|
"ghost-cli": "^1.16.3",
|
||||||
"husky": "^4.2.3",
|
"husky": "^4.2.3",
|
||||||
"laravel-mix": "^4.0.0-beta.2",
|
"laravel-mix": "^5.0.0",
|
||||||
"path": "^0.12.7",
|
"path": "^0.12.7",
|
||||||
"resolve-url-loader": "3.1.0",
|
"resolve-url-loader": "3.1.2",
|
||||||
"run-script-os": "^1.0.7",
|
"run-script-os": "^1.1.5",
|
||||||
"sass": "^1.22.9",
|
"sass": "^1.22.9",
|
||||||
"sass-loader": "7.*",
|
"sass-loader": "8.*",
|
||||||
"vue-template-compiler": "^2.6.10"
|
"vue-template-compiler": "^2.6.10"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@glidejs/glide": "^3.4.1",
|
"@glidejs/glide": "^3.4.1",
|
||||||
"aos": "eddiesigner/aos.git#v2",
|
"aos": "2.3.4",
|
||||||
"fitvids": "^2.0.0",
|
"fitvids": "^2.0.0",
|
||||||
"fuse.js": "^6.3.0",
|
"fuse.js": "^6.4.6",
|
||||||
"headroom.js": "^0.10.3",
|
"headroom.js": "^0.12.0",
|
||||||
"jquery": "^3.3.1",
|
"jquery": "^3.6.0",
|
||||||
"medium-zoom": "^1.0.3",
|
"medium-zoom": "^1.0.6",
|
||||||
"shave": "^2.5.6",
|
"shave": "^2.5.10",
|
||||||
"tippy.js": "^4.0.1"
|
"tippy.js": "^5.2.1"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"win-node-env": "^0.4.0"
|
"win-node-env": "^0.4.0"
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul:not(.m-secondary-menu) {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,11 @@
|
||||||
li {
|
li {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
|
||||||
|
@include respond-to('medium') {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
&.nav-current {
|
&.nav-current {
|
||||||
a {
|
a {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
let mix = require('laravel-mix');
|
let mix = require('laravel-mix');
|
||||||
|
|
||||||
|
mix.options({
|
||||||
|
terser: {
|
||||||
|
extractComments: false,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
mix.webpackConfig({
|
mix.webpackConfig({
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
|
Loading…
Reference in a new issue