From 758bc53106bd0622341aff9bee80468271cb7704 Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Sun, 6 Aug 2023 08:19:16 +0600 Subject: [PATCH] update contact form and hugo modules --- assets/plugins/maps/google-map.js | 2 +- assets/plugins/swiper/swiper-bundle.css | 12 +- assets/plugins/swiper/swiper-bundle.js | 366 +++++++++--------- .../content/english/authors/john-doe.md | 18 +- .../content/english/authors/sam-wilson.md | 18 +- .../content/english/authors/william-jacob.md | 18 +- exampleSite/go.mod | 46 +-- layouts/_default/baseof.html | 2 +- layouts/contact/list.html | 9 +- package.json | 2 +- scripts/projectSetup.js | 6 +- scripts/themeSetup.js | 4 +- 12 files changed, 259 insertions(+), 244 deletions(-) diff --git a/assets/plugins/maps/google-map.js b/assets/plugins/maps/google-map.js index 280edea..884b5b1 100644 --- a/assets/plugins/maps/google-map.js +++ b/assets/plugins/maps/google-map.js @@ -164,7 +164,7 @@ function initialize() { null, null, null, - new google.maps.Size(30, 50) + new google.maps.Size(30, 50), ); marker = new google.maps.Marker({ position: nottingham, diff --git a/assets/plugins/swiper/swiper-bundle.css b/assets/plugins/swiper/swiper-bundle.css index 57690f9..6f0c194 100644 --- a/assets/plugins/swiper/swiper-bundle.css +++ b/assets/plugins/swiper/swiper-bundle.css @@ -371,7 +371,9 @@ button.swiper-pagination-bullet { .swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet { display: inline-block; - transition: 200ms transform, 200ms top; + transition: + 200ms transform, + 200ms top; } .swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet, .swiper-pagination-horizontal.swiper-pagination-bullets @@ -390,12 +392,16 @@ button.swiper-pagination-bullet { .swiper-pagination-bullet, .swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet { - transition: 200ms transform, 200ms left; + transition: + 200ms transform, + 200ms left; } .swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet { - transition: 200ms transform, 200ms right; + transition: + 200ms transform, + 200ms right; } /* Progress */ .swiper-pagination-progressbar { diff --git a/assets/plugins/swiper/swiper-bundle.js b/assets/plugins/swiper/swiper-bundle.js index e5e1890..9c90ea5 100644 --- a/assets/plugins/swiper/swiper-bundle.js +++ b/assets/plugins/swiper/swiper-bundle.js @@ -1198,7 +1198,7 @@ // empty string instead in this case transformMatrix = new window.WebKitCSSMatrix( - curTransform === "none" ? "" : curTransform + curTransform === "none" ? "" : curTransform, ); } else { transformMatrix = @@ -1269,7 +1269,7 @@ !isNode(nextSource) ) { const keysArray = Object.keys(Object(nextSource)).filter( - (key) => noExtend.indexOf(key) < 0 + (key) => noExtend.indexOf(key) < 0, ); for ( @@ -1504,7 +1504,7 @@ return { isSafari: isSafari(), isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test( - window.navigator.userAgent + window.navigator.userAgent, ), }; } @@ -1986,19 +1986,19 @@ const width = getDirectionPropertyValue(slideStyles, "width"); const paddingLeft = getDirectionPropertyValue( slideStyles, - "padding-left" + "padding-left", ); const paddingRight = getDirectionPropertyValue( slideStyles, - "padding-right" + "padding-right", ); const marginLeft = getDirectionPropertyValue( slideStyles, - "margin-left" + "margin-left", ); const marginRight = getDirectionPropertyValue( slideStyles, - "margin-right" + "margin-right", ); const boxSizing = slideStyles.getPropertyValue("box-sizing"); @@ -2188,12 +2188,14 @@ setCSSProperty( swiper.wrapperEl, "--swiper-centered-offset-before", - `${-snapGrid[0]}px` + `${-snapGrid[0]}px`, ); setCSSProperty( swiper.wrapperEl, "--swiper-centered-offset-after", - `${swiper.size / 2 - slidesSizesGrid[slidesSizesGrid.length - 1] / 2}px` + `${ + swiper.size / 2 - slidesSizesGrid[slidesSizesGrid.length - 1] / 2 + }px`, ); const addToSnapGrid = -swiper.snapGrid[0]; const addToSlidesGrid = -swiper.slidesGrid[0]; @@ -2253,7 +2255,7 @@ if (isVirtual) { return swiper.slides.filter( (el) => - parseInt(el.getAttribute("data-swiper-slide-index"), 10) === index + parseInt(el.getAttribute("data-swiper-slide-index"), 10) === index, )[0]; } @@ -2417,13 +2419,13 @@ const { slides, params, $wrapperEl, activeIndex, realIndex } = swiper; const isVirtual = swiper.virtual && params.virtual.enabled; slides.removeClass( - `${params.slideActiveClass} ${params.slideNextClass} ${params.slidePrevClass} ${params.slideDuplicateActiveClass} ${params.slideDuplicateNextClass} ${params.slideDuplicatePrevClass}` + `${params.slideActiveClass} ${params.slideNextClass} ${params.slidePrevClass} ${params.slideDuplicateActiveClass} ${params.slideDuplicateNextClass} ${params.slideDuplicatePrevClass}`, ); let activeSlide; if (isVirtual) { activeSlide = swiper.$wrapperEl.find( - `.${params.slideClass}[data-swiper-slide-index="${activeIndex}"]` + `.${params.slideClass}[data-swiper-slide-index="${activeIndex}"]`, ); } else { activeSlide = slides.eq(activeIndex); @@ -2436,13 +2438,13 @@ if (activeSlide.hasClass(params.slideDuplicateClass)) { $wrapperEl .children( - `.${params.slideClass}:not(.${params.slideDuplicateClass})[data-swiper-slide-index="${realIndex}"]` + `.${params.slideClass}:not(.${params.slideDuplicateClass})[data-swiper-slide-index="${realIndex}"]`, ) .addClass(params.slideDuplicateActiveClass); } else { $wrapperEl .children( - `.${params.slideClass}.${params.slideDuplicateClass}[data-swiper-slide-index="${realIndex}"]` + `.${params.slideClass}.${params.slideDuplicateClass}[data-swiper-slide-index="${realIndex}"]`, ) .addClass(params.slideDuplicateActiveClass); } @@ -2476,8 +2478,8 @@ `.${params.slideClass}:not(.${ params.slideDuplicateClass })[data-swiper-slide-index="${nextSlide.attr( - "data-swiper-slide-index" - )}"]` + "data-swiper-slide-index", + )}"]`, ) .addClass(params.slideDuplicateNextClass); } else { @@ -2486,8 +2488,8 @@ `.${params.slideClass}.${ params.slideDuplicateClass }[data-swiper-slide-index="${nextSlide.attr( - "data-swiper-slide-index" - )}"]` + "data-swiper-slide-index", + )}"]`, ) .addClass(params.slideDuplicateNextClass); } @@ -2498,8 +2500,8 @@ `.${params.slideClass}:not(.${ params.slideDuplicateClass })[data-swiper-slide-index="${prevSlide.attr( - "data-swiper-slide-index" - )}"]` + "data-swiper-slide-index", + )}"]`, ) .addClass(params.slideDuplicatePrevClass); } else { @@ -2508,8 +2510,8 @@ `.${params.slideClass}.${ params.slideDuplicateClass }[data-swiper-slide-index="${prevSlide.attr( - "data-swiper-slide-index" - )}"]` + "data-swiper-slide-index", + )}"]`, ) .addClass(params.slideDuplicatePrevClass); } @@ -2582,7 +2584,7 @@ const realIndex = parseInt( swiper.slides.eq(activeIndex).attr("data-swiper-slide-index") || activeIndex, - 10 + 10, ); Object.assign(swiper, { snapIndex, @@ -2625,7 +2627,7 @@ if (swiper.virtual && swiper.params.virtual.enabled) { swiper.clickedIndex = parseInt( $(slide).attr("data-swiper-slide-index"), - 10 + 10, ); } else { swiper.clickedIndex = slideIndex; @@ -2741,7 +2743,7 @@ speed, runCallbacks, translateBounds, - internal + internal, ) { if (translate === void 0) { translate = 0; @@ -2827,11 +2829,11 @@ if (e.target !== this) return; swiper.$wrapperEl[0].removeEventListener( "transitionend", - swiper.onTranslateToWrapperTransitionEnd + swiper.onTranslateToWrapperTransitionEnd, ); swiper.$wrapperEl[0].removeEventListener( "webkitTransitionEnd", - swiper.onTranslateToWrapperTransitionEnd + swiper.onTranslateToWrapperTransitionEnd, ); swiper.onTranslateToWrapperTransitionEnd = null; delete swiper.onTranslateToWrapperTransitionEnd; @@ -2844,11 +2846,11 @@ swiper.$wrapperEl[0].addEventListener( "transitionend", - swiper.onTranslateToWrapperTransitionEnd + swiper.onTranslateToWrapperTransitionEnd, ); swiper.$wrapperEl[0].addEventListener( "webkitTransitionEnd", - swiper.onTranslateToWrapperTransitionEnd + swiper.onTranslateToWrapperTransitionEnd, ); } } @@ -2963,7 +2965,7 @@ if (typeof index !== "number" && typeof index !== "string") { throw new Error( - `The 'index' argument cannot have type other than 'number' or 'string'. [${typeof index}] given.` + `The 'index' argument cannot have type other than 'number' or 'string'. [${typeof index}] given.`, ); } @@ -2983,7 +2985,7 @@ if (!isValidNumber) { throw new Error( - `The passed-in 'index' (string) couldn't be converted to 'number'. [${index}] given.` + `The passed-in 'index' (string) couldn't be converted to 'number'. [${index}] given.`, ); } // Knowing that the converted `index` is a valid number, // we can update the original argument's value. @@ -3157,11 +3159,11 @@ if (e.target !== this) return; swiper.$wrapperEl[0].removeEventListener( "transitionend", - swiper.onSlideToWrapperTransitionEnd + swiper.onSlideToWrapperTransitionEnd, ); swiper.$wrapperEl[0].removeEventListener( "webkitTransitionEnd", - swiper.onSlideToWrapperTransitionEnd + swiper.onSlideToWrapperTransitionEnd, ); swiper.onSlideToWrapperTransitionEnd = null; delete swiper.onSlideToWrapperTransitionEnd; @@ -3171,11 +3173,11 @@ swiper.$wrapperEl[0].addEventListener( "transitionend", - swiper.onSlideToWrapperTransitionEnd + swiper.onSlideToWrapperTransitionEnd, ); swiper.$wrapperEl[0].addEventListener( "webkitTransitionEnd", - swiper.onSlideToWrapperTransitionEnd + swiper.onSlideToWrapperTransitionEnd, ); } @@ -3246,7 +3248,7 @@ swiper.activeIndex + increment, speed, runCallbacks, - internal + internal, ); } @@ -3403,7 +3405,7 @@ if (swiper.animating) return; realIndex = parseInt( $(swiper.clickedSlide).attr("data-swiper-slide-index"), - 10 + 10, ); if (params.centeredSlides) { @@ -3415,7 +3417,7 @@ swiper.loopFix(); slideToIndex = $wrapperEl .children( - `.${params.slideClass}[data-swiper-slide-index="${realIndex}"]:not(.${params.slideDuplicateClass})` + `.${params.slideClass}[data-swiper-slide-index="${realIndex}"]:not(.${params.slideDuplicateClass})`, ) .eq(0) .index(); @@ -3429,7 +3431,7 @@ swiper.loopFix(); slideToIndex = $wrapperEl .children( - `.${params.slideClass}[data-swiper-slide-index="${realIndex}"]:not(.${params.slideDuplicateClass})` + `.${params.slideClass}[data-swiper-slide-index="${realIndex}"]:not(.${params.slideDuplicateClass})`, ) .eq(0) .index(); @@ -3475,7 +3477,7 @@ if (blankSlidesNum !== params.slidesPerGroup) { for (let i = 0; i < blankSlidesNum; i += 1) { const blankNode = $(document.createElement("div")).addClass( - `${params.slideClass} ${params.slideBlankClass}` + `${params.slideClass} ${params.slideBlankClass}`, ); $selector.append(blankNode); } @@ -3487,7 +3489,7 @@ if (params.slidesPerView === "auto" && !params.loopedSlides) params.loopedSlides = slides.length; swiper.loopedSlides = Math.ceil( - parseFloat(params.loopedSlides || params.slidesPerView, 10) + parseFloat(params.loopedSlides || params.slidesPerView, 10), ); swiper.loopedSlides += params.loopAdditionalSlides; @@ -3516,13 +3518,15 @@ for (let i = 0; i < appendSlides.length; i += 1) { $selector.append( - $(appendSlides[i].cloneNode(true)).addClass(params.slideDuplicateClass) + $(appendSlides[i].cloneNode(true)).addClass(params.slideDuplicateClass), ); } for (let i = prependSlides.length - 1; i >= 0; i -= 1) { $selector.prepend( - $(prependSlides[i].cloneNode(true)).addClass(params.slideDuplicateClass) + $(prependSlides[i].cloneNode(true)).addClass( + params.slideDuplicateClass, + ), ); } } @@ -3552,7 +3556,7 @@ if (slideChanged && diff !== 0) { swiper.setTranslate( - (rtl ? -swiper.translate : swiper.translate) - diff + (rtl ? -swiper.translate : swiper.translate) - diff, ); } } else if (activeIndex >= slides.length - loopedSlides) { @@ -3563,7 +3567,7 @@ if (slideChanged && diff !== 0) { swiper.setTranslate( - (rtl ? -swiper.translate : swiper.translate) - diff + (rtl ? -swiper.translate : swiper.translate) - diff, ); } } @@ -3578,7 +3582,7 @@ const { $wrapperEl, params, slides } = swiper; $wrapperEl .children( - `.${params.slideClass}.${params.slideDuplicateClass},.${params.slideClass}.${params.slideBlankClass}` + `.${params.slideClass}.${params.slideDuplicateClass},.${params.slideClass}.${params.slideBlankClass}`, ) .remove(); slides.removeAttr("data-swiper-slide-index"); @@ -4199,7 +4203,7 @@ swiper.slideTo( params.rewind && swiper.isEnd ? rewindFirstIndex - : stopIndex + increment + : stopIndex + increment, ); else swiper.slideTo(stopIndex); } @@ -4232,13 +4236,15 @@ if (!isNavButtonTarget) { if (swiper.swipeDirection === "next") { swiper.slideTo( - rewindFirstIndex !== null ? rewindFirstIndex : stopIndex + increment + rewindFirstIndex !== null + ? rewindFirstIndex + : stopIndex + increment, ); } if (swiper.swipeDirection === "prev") { swiper.slideTo( - rewindLastIndex !== null ? rewindLastIndex : stopIndex + rewindLastIndex !== null ? rewindLastIndex : stopIndex, ); } } else if (e.target === swiper.navigation.nextEl) { @@ -4329,7 +4335,7 @@ if (newProgress !== swiper.progress) { swiper.updateProgress( - rtlTranslate ? -swiper.translate : swiper.translate + rtlTranslate ? -swiper.translate : swiper.translate, ); } @@ -4371,7 +4377,7 @@ passive: false, capture, } - : capture + : capture, ); el[domMethod](touchEvents.end, swiper.onTouchEnd, passiveListener); @@ -4394,7 +4400,7 @@ ? "resize orientationchange observerUpdate" : "resize observerUpdate", onResize, - true + true, ); } else { swiper[swiperMethod]("observerUpdate", onResize, true); @@ -4447,7 +4453,7 @@ const breakpoint = swiper.getBreakpoint( breakpoints, swiper.params.breakpointsBase, - swiper.el + swiper.el, ); if (!breakpoint || swiper.currentBreakpoint === breakpoint) return; const breakpointOnlyParams = @@ -4459,7 +4465,7 @@ if (wasMultiRow && !isMultiRow) { $el.removeClass( - `${params.containerModifierClass}grid ${params.containerModifierClass}grid-column` + `${params.containerModifierClass}grid ${params.containerModifierClass}grid-column`, ); swiper.emitContainerClasses(); } else if (!wasMultiRow && isMultiRow) { @@ -4512,7 +4518,7 @@ swiper.slideTo( activeIndex - loopedSlides + swiper.loopedSlides, 0, - false + false, ); } @@ -4632,7 +4638,7 @@ centered: params.cssMode && params.centeredSlides, }, ], - params.containerModifierClass + params.containerModifierClass, ); classNames.push(...suffixes); $el.addClass([...classNames].join(" ")); @@ -4715,7 +4721,7 @@ imageEl.srcset || imageEl.getAttribute("srcset"), imageEl.sizes || imageEl.getAttribute("sizes"), true, - onReady + onReady, ); } } @@ -5297,7 +5303,7 @@ : swiper.translate; const newTranslate = Math.min( Math.max(translateValue, swiper.maxTranslate()), - swiper.minTranslate() + swiper.minTranslate(), ); swiper.setTranslate(newTranslate); swiper.updateActiveIndex(); @@ -5359,7 +5365,7 @@ swiper.$el .removeClass( - `${swiper.params.containerModifierClass}${currentDirection}` + `${swiper.params.containerModifierClass}${currentDirection}`, ) .addClass(`${swiper.params.containerModifierClass}${newDirection}`); swiper.emitContainerClasses(); @@ -5476,7 +5482,7 @@ 0, swiper.params.runCallbacksOnInit, false, - true + true, ); } else { swiper.slideTo( @@ -5484,7 +5490,7 @@ 0, swiper.params.runCallbacksOnInit, false, - true + true, ); } // Attach events @@ -5536,7 +5542,7 @@ params.slideActiveClass, params.slideNextClass, params.slidePrevClass, - ].join(" ") + ].join(" "), ) .removeAttr("style") .removeAttr("data-swiper-slide-index"); @@ -5631,7 +5637,7 @@ const $slideEl = params.renderSlide ? $(params.renderSlide.call(swiper, slide, index)) : $( - `
${slide}
` + `
${slide}
`, ); if (!$slideEl.attr("data-swiper-slide-index")) $slideEl.attr("data-swiper-slide-index", index); @@ -5742,7 +5748,7 @@ if (i < from || i > to) { swiper.$wrapperEl .find( - `.${swiper.params.slideClass}[data-swiper-slide-index="${i}"]` + `.${swiper.params.slideClass}[data-swiper-slide-index="${i}"]`, ) .remove(); } @@ -5812,7 +5818,7 @@ if (cachedElIndex) { $cachedEl.attr( "data-swiper-slide-index", - parseInt(cachedElIndex, 10) + numberOfNewSlides + parseInt(cachedElIndex, 10) + numberOfNewSlides, ); } @@ -5897,7 +5903,7 @@ setCSSProperty( swiper.wrapperEl, "--swiper-virtual-size", - `${swiper.virtualSize}px` + `${swiper.virtualSize}px`, ); } }); @@ -6464,7 +6470,7 @@ swiper.params.speed, true, undefined, - snapToThreshold + snapToThreshold, ); }, 0); // no delay; move on next tick } @@ -6481,7 +6487,7 @@ swiper.params.speed, true, undefined, - snapToThreshold + snapToThreshold, ); }, 500); } @@ -6568,7 +6574,7 @@ swiper, originalParams, params, - checkProps + checkProps, ) { const document = getDocument(); @@ -6673,7 +6679,7 @@ { nextEl: "swiper-button-next", prevEl: "swiper-button-prev", - } + }, ); if (!(params.nextEl || params.prevEl)) return; const $nextEl = getEl(params.nextEl); @@ -6729,13 +6735,13 @@ if ($nextEl) { $nextEl[swiper.enabled ? "removeClass" : "addClass"]( - swiper.params.navigation.lockClass + swiper.params.navigation.lockClass, ); } if ($prevEl) { $prevEl[swiper.enabled ? "removeClass" : "addClass"]( - swiper.params.navigation.lockClass + swiper.params.navigation.lockClass, ); } }); @@ -6871,14 +6877,14 @@ const total = swiper.params.loop ? Math.ceil( (slidesLength - swiper.loopedSlides * 2) / - swiper.params.slidesPerGroup + swiper.params.slidesPerGroup, ) : swiper.snapGrid.length; if (swiper.params.loop) { current = Math.ceil( (swiper.activeIndex - swiper.loopedSlides) / - swiper.params.slidesPerGroup + swiper.params.slidesPerGroup, ); if (current > slidesLength - 1 - swiper.loopedSlides * 2) { @@ -6910,7 +6916,7 @@ [swiper.isHorizontal() ? "outerWidth" : "outerHeight"](true); $el.css( swiper.isHorizontal() ? "width" : "height", - `${bulletSize * (params.dynamicMainBullets + 4)}px` + `${bulletSize * (params.dynamicMainBullets + 4)}px`, ); if ( @@ -6937,7 +6943,7 @@ bullets.removeClass( ["", "-next", "-next-next", "-prev", "-prev-prev", "-main"] .map((suffix) => `${params.bulletActiveClass}${suffix}`) - .join(" ") + .join(" "), ); if ($el.length > 1) { @@ -7001,7 +7007,7 @@ if (params.dynamicBullets) { const dynamicBulletsLength = Math.min( bullets.length, - params.dynamicMainBullets + 4 + params.dynamicMainBullets + 4, ); const bulletsOffset = (bulletSize * dynamicBulletsLength - bulletSize) / 2 - @@ -7009,7 +7015,7 @@ const offsetProp = rtl ? "right" : "left"; bullets.css( swiper.isHorizontal() ? offsetProp : "top", - `${bulletsOffset}px` + `${bulletsOffset}px`, ); } } @@ -7079,7 +7085,7 @@ let numberOfBullets = swiper.params.loop ? Math.ceil( (slidesLength - swiper.loopedSlides * 2) / - swiper.params.slidesPerGroup + swiper.params.slidesPerGroup, ) : swiper.snapGrid.length; @@ -7097,7 +7103,7 @@ paginationHTML += params.renderBullet.call( swiper, i, - params.bulletClass + params.bulletClass, ); } else { paginationHTML += `<${params.bulletElement} class="${params.bulletClass}">`; @@ -7106,7 +7112,7 @@ $el.html(paginationHTML); swiper.pagination.bullets = $el.find( - classesToSelector(params.bulletClass) + classesToSelector(params.bulletClass), ); } @@ -7115,7 +7121,7 @@ paginationHTML = params.renderFraction.call( swiper, params.currentClass, - params.totalClass + params.totalClass, ); } else { paginationHTML = @@ -7131,7 +7137,7 @@ if (params.renderProgressbar) { paginationHTML = params.renderProgressbar.call( swiper, - params.progressbarFillClass + params.progressbarFillClass, ); } else { paginationHTML = ``; @@ -7152,7 +7158,7 @@ swiper.params.pagination, { el: "swiper-pagination", - } + }, ); const params = swiper.params.pagination; if (!params.el) return; @@ -7180,7 +7186,7 @@ $el.addClass(params.modifierClass + params.type); $el.addClass( - swiper.isHorizontal() ? params.horizontalClass : params.verticalClass + swiper.isHorizontal() ? params.horizontalClass : params.verticalClass, ); if (params.type === "bullets" && params.dynamicBullets) { @@ -7205,7 +7211,7 @@ let index = $(this).index() * swiper.params.slidesPerGroup; if (swiper.params.loop) index += swiper.loopedSlides; swiper.slideTo(index); - } + }, ); } @@ -7226,7 +7232,7 @@ $el.removeClass(params.hiddenClass); $el.removeClass(params.modifierClass + params.type); $el.removeClass( - swiper.isHorizontal() ? params.horizontalClass : params.verticalClass + swiper.isHorizontal() ? params.horizontalClass : params.verticalClass, ); if (swiper.pagination.bullets && swiper.pagination.bullets.removeClass) swiper.pagination.bullets.removeClass(params.bulletActiveClass); @@ -7273,7 +7279,7 @@ if ($el) { $el[swiper.enabled ? "removeClass" : "addClass"]( - swiper.params.pagination.lockClass + swiper.params.pagination.lockClass, ); } }); @@ -7430,7 +7436,7 @@ if (swiper.params.watchOverflow && swiper.enabled) { scrollbar.$el[swiper.isLocked ? "addClass" : "removeClass"]( - swiper.params.scrollbar.lockClass + swiper.params.scrollbar.lockClass, ); } } @@ -7574,23 +7580,23 @@ target[eventMethod]( touchEventsDesktop.start, onDragStart, - activeListener + activeListener, ); document[eventMethod]( touchEventsDesktop.move, onDragMove, - activeListener + activeListener, ); document[eventMethod]( touchEventsDesktop.end, onDragEnd, - passiveListener + passiveListener, ); } else { target[eventMethod]( touchEventsTouch.start, onDragStart, - activeListener + activeListener, ); target[eventMethod](touchEventsTouch.move, onDragMove, activeListener); target[eventMethod](touchEventsTouch.end, onDragEnd, passiveListener); @@ -7615,7 +7621,7 @@ swiper.params.scrollbar, { el: "swiper-scrollbar", - } + }, ); const params = swiper.params.scrollbar; if (!params.el) return; @@ -7650,7 +7656,7 @@ if ($el) { $el[swiper.enabled ? "removeClass" : "addClass"]( - swiper.params.scrollbar.lockClass + swiper.params.scrollbar.lockClass, ); } } @@ -7678,7 +7684,7 @@ if ($el) { $el[swiper.enabled ? "removeClass" : "addClass"]( - swiper.params.scrollbar.lockClass + swiper.params.scrollbar.lockClass, ); } }); @@ -7752,7 +7758,7 @@ const { $el, slides, progress, snapGrid } = swiper; $el .children( - "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]" + "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]", ) .each((el) => { setTransform(el, progress); @@ -7771,7 +7777,7 @@ slideProgress = Math.min(Math.max(slideProgress, -1), 1); $(slideEl) .find( - "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]" + "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]", ) .each((el) => { setTransform(el, slideProgress); @@ -7787,7 +7793,7 @@ const { $el } = swiper; $el .find( - "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]" + "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]", ) .each((parallaxEl) => { const $parallaxEl = $(parallaxEl); @@ -7925,7 +7931,7 @@ .find("picture, img, svg, canvas, .swiper-zoom-target") .eq(0); gesture.$imageWrapEl = gesture.$imageEl.parent( - `.${params.containerClass}` + `.${params.containerClass}`, ); gesture.maxRatio = gesture.$imageWrapEl.attr("data-swiper-zoom") || params.maxRatio; @@ -8011,7 +8017,7 @@ if (!gesture.$imageEl || gesture.$imageEl.length === 0) return; zoom.scale = Math.max( Math.min(zoom.scale, gesture.maxRatio), - params.minRatio + params.minRatio, ); gesture.$imageEl .transition(swiper.params.speed) @@ -8141,7 +8147,7 @@ velocity.prevPositionY = image.touchesCurrent.y; velocity.prevTime = Date.now(); gesture.$imageWrapEl.transform( - `translate3d(${image.currentX}px, ${image.currentY}px,0)` + `translate3d(${image.currentX}px, ${image.currentY}px,0)`, ); } @@ -8166,11 +8172,11 @@ if (velocity.x !== 0) momentumDurationX = Math.abs( - (newPositionX - image.currentX) / velocity.x + (newPositionX - image.currentX) / velocity.x, ); if (velocity.y !== 0) momentumDurationY = Math.abs( - (newPositionY - image.currentY) / velocity.y + (newPositionY - image.currentY) / velocity.y, ); const momentumDuration = Math.max(momentumDurationX, momentumDurationY); image.currentX = newPositionX; @@ -8184,11 +8190,11 @@ image.maxY = -image.minY; image.currentX = Math.max( Math.min(image.currentX, image.maxX), - image.minX + image.minX, ); image.currentY = Math.max( Math.min(image.currentY, image.maxY), - image.minY + image.minY, ); gesture.$imageWrapEl .transition(momentumDuration) @@ -8222,7 +8228,7 @@ if (!gesture.$slideEl) { if (e && e.target) { gesture.$slideEl = $(e.target).closest( - `.${swiper.params.slideClass}` + `.${swiper.params.slideClass}`, ); } @@ -8233,7 +8239,7 @@ swiper.virtual ) { gesture.$slideEl = swiper.$wrapperEl.children( - `.${swiper.params.slideActiveClass}` + `.${swiper.params.slideActiveClass}`, ); } else { gesture.$slideEl = swiper.slides.eq(swiper.activeIndex); @@ -8246,7 +8252,7 @@ .find("picture, img, svg, canvas, .swiper-zoom-target") .eq(0); gesture.$imageWrapEl = gesture.$imageEl.parent( - `.${params.containerClass}` + `.${params.containerClass}`, ); } @@ -8353,7 +8359,7 @@ swiper.virtual ) { gesture.$slideEl = swiper.$wrapperEl.children( - `.${swiper.params.slideActiveClass}` + `.${swiper.params.slideActiveClass}`, ); } else { gesture.$slideEl = swiper.slides.eq(swiper.activeIndex); @@ -8365,7 +8371,7 @@ .find("picture, img, svg, canvas, .swiper-zoom-target") .eq(0); gesture.$imageWrapEl = gesture.$imageEl.parent( - `.${params.containerClass}` + `.${params.containerClass}`, ); } @@ -8436,19 +8442,19 @@ "gesturestart", slideSelector, onGestureStart, - passiveListener + passiveListener, ); swiper.$wrapperEl[method]( "gesturechange", slideSelector, onGestureChange, - passiveListener + passiveListener, ); swiper.$wrapperEl[method]( "gestureend", slideSelector, onGestureEnd, - passiveListener + passiveListener, ); } @@ -8476,31 +8482,31 @@ swiper.$wrapperEl.on( swiper.touchEvents.start, enableGestures, - passiveListener + passiveListener, ); swiper.$wrapperEl.on( swiper.touchEvents.end, disableGestures, - passiveListener + passiveListener, ); } else if (swiper.touchEvents.start === "touchstart") { swiper.$wrapperEl.on( swiper.touchEvents.start, slideSelector, onGestureStart, - passiveListener + passiveListener, ); swiper.$wrapperEl.on( swiper.touchEvents.move, slideSelector, onGestureChange, - activeListenerWithCapture + activeListenerWithCapture, ); swiper.$wrapperEl.on( swiper.touchEvents.end, slideSelector, onGestureEnd, - passiveListener + passiveListener, ); if (swiper.touchEvents.cancel) { @@ -8508,7 +8514,7 @@ swiper.touchEvents.cancel, slideSelector, onGestureEnd, - passiveListener + passiveListener, ); } } // Move image @@ -8517,7 +8523,7 @@ swiper.touchEvents.move, `.${swiper.params.zoom.containerClass}`, onTouchMove, - activeListenerWithCapture + activeListenerWithCapture, ); } @@ -8533,31 +8539,31 @@ swiper.$wrapperEl.off( swiper.touchEvents.start, enableGestures, - passiveListener + passiveListener, ); swiper.$wrapperEl.off( swiper.touchEvents.end, disableGestures, - passiveListener + passiveListener, ); } else if (swiper.touchEvents.start === "touchstart") { swiper.$wrapperEl.off( swiper.touchEvents.start, slideSelector, onGestureStart, - passiveListener + passiveListener, ); swiper.$wrapperEl.off( swiper.touchEvents.move, slideSelector, onGestureChange, - activeListenerWithCapture + activeListenerWithCapture, ); swiper.$wrapperEl.off( swiper.touchEvents.end, slideSelector, onGestureEnd, - passiveListener + passiveListener, ); if (swiper.touchEvents.cancel) { @@ -8565,7 +8571,7 @@ swiper.touchEvents.cancel, slideSelector, onGestureEnd, - passiveListener + passiveListener, ); } } // Move image @@ -8574,7 +8580,7 @@ swiper.touchEvents.move, `.${swiper.params.zoom.containerClass}`, onTouchMove, - activeListenerWithCapture + activeListenerWithCapture, ); } @@ -8658,11 +8664,11 @@ const isVirtual = swiper.virtual && swiper.params.virtual.enabled; const $slideEl = isVirtual ? swiper.$wrapperEl.children( - `.${swiper.params.slideClass}[data-swiper-slide-index="${index}"]` + `.${swiper.params.slideClass}[data-swiper-slide-index="${index}"]`, ) : swiper.slides.eq(index); const $images = $slideEl.find( - `.${params.elementClass}:not(.${params.loadedClass}):not(.${params.loadingClass})` + `.${params.elementClass}:not(.${params.loadedClass}):not(.${params.loadingClass})`, ); if ( @@ -8736,17 +8742,17 @@ if (swiper.params.loop && loadInDuplicate) { const slideOriginalIndex = $slideEl.attr( - "data-swiper-slide-index" + "data-swiper-slide-index", ); if ($slideEl.hasClass(swiper.params.slideDuplicateClass)) { const originalSlide = swiper.$wrapperEl.children( - `[data-swiper-slide-index="${slideOriginalIndex}"]:not(.${swiper.params.slideDuplicateClass})` + `[data-swiper-slide-index="${slideOriginalIndex}"]:not(.${swiper.params.slideDuplicateClass})`, ); loadInSlide(originalSlide.index(), false); } else { const duplicatedSlide = swiper.$wrapperEl.children( - `.${swiper.params.slideDuplicateClass}[data-swiper-slide-index="${slideOriginalIndex}"]` + `.${swiper.params.slideDuplicateClass}[data-swiper-slide-index="${slideOriginalIndex}"]`, ); loadInSlide(duplicatedSlide.index(), false); } @@ -8757,7 +8763,7 @@ if (swiper.params.autoHeight) { swiper.updateAutoHeight(); } - } + }, ); emit("lazyImageLoad", $slideEl[0], $imageEl[0]); }); @@ -8777,7 +8783,7 @@ if (isVirtual) { if ( $wrapperEl.children( - `.${swiperParams.slideClass}[data-swiper-slide-index="${index}"]` + `.${swiperParams.slideClass}[data-swiper-slide-index="${index}"]`, ).length ) { return true; @@ -8823,7 +8829,7 @@ const spv = slidesPerView; const maxIndex = Math.min( activeIndex + spv + Math.max(amount, spv), - slides.length + slides.length, ); const minIndex = Math.max(activeIndex - Math.max(spv, amount), 0); // Next Slides @@ -8836,11 +8842,11 @@ } } else { const nextSlide = $wrapperEl.children( - `.${swiperParams.slideNextClass}` + `.${swiperParams.slideNextClass}`, ); if (nextSlide.length > 0) loadInSlide(slideIndex(nextSlide)); const prevSlide = $wrapperEl.children( - `.${swiperParams.slidePrevClass}` + `.${swiperParams.slidePrevClass}`, ); if (prevSlide.length > 0) loadInSlide(slideIndex(prevSlide)); } @@ -9078,7 +9084,7 @@ // but it did not work out controlledTranslate = -swiper.controller.spline.interpolate( - -translate + -translate, ); } @@ -9370,8 +9376,8 @@ $bulletEl, params.paginationBulletMessage.replace( /\{\{index\}\}/, - $bulletEl.index() + 1 - ) + $bulletEl.index() + 1, + ), ); } } @@ -9417,7 +9423,7 @@ if (params.containerRoleDescriptionMessage) { addElRoleDescription( $containerEl, - params.containerRoleDescriptionMessage + params.containerRoleDescriptionMessage, ); } @@ -9438,14 +9444,14 @@ if (params.itemRoleDescriptionMessage) { addElRoleDescription( $(swiper.slides), - params.itemRoleDescriptionMessage + params.itemRoleDescriptionMessage, ); } addElRole($(swiper.slides), params.slideRole); const slidesLength = swiper.params.loop ? swiper.slides.filter( - (el) => !el.classList.contains(swiper.params.slideDuplicateClass) + (el) => !el.classList.contains(swiper.params.slideDuplicateClass), ).length : swiper.slides.length; swiper.slides.each((slideEl, index) => { @@ -9482,7 +9488,7 @@ swiper.pagination.$el.on( "keydown", classesToSelector(swiper.params.pagination.bulletClass), - onEnterOrSpaceKey + onEnterOrSpaceKey, ); } // Tab focus @@ -9514,7 +9520,7 @@ swiper.pagination.$el.off( "keydown", classesToSelector(swiper.params.pagination.bulletClass), - onEnterOrSpaceKey + onEnterOrSpaceKey, ); } // Tab focus @@ -9523,7 +9529,7 @@ on("beforeInit", () => { liveRegion = $( - `` + ``, ); }); on("afterInit", () => { @@ -9625,7 +9631,7 @@ value, }, null, - value + value, ); } else { window.history.pushState( @@ -9633,7 +9639,7 @@ value, }, null, - value + value, ); } }; @@ -9752,7 +9758,7 @@ window.history.replaceState( null, null, - `#${swiper.slides.eq(swiper.activeIndex).attr("data-hash")}` || "" + `#${swiper.slides.eq(swiper.activeIndex).attr("data-hash")}` || "", ); emit("hashSet"); } else { @@ -9789,7 +9795,7 @@ index, speed, swiper.params.runCallbacksOnInit, - true + true, ); } } @@ -9875,7 +9881,7 @@ swiper.slides.length - 1, swiper.params.speed, true, - true + true, ); emit("autoplay"); } else { @@ -10090,7 +10096,7 @@ if (thumbsSwiper.params.loop) { slideToIndex = parseInt( $(thumbsSwiper.clickedSlide).attr("data-swiper-slide-index"), - 10 + 10, ); } else { slideToIndex = clickedIndex; @@ -10157,7 +10163,7 @@ } swiper.thumbs.swiper.$el.addClass( - swiper.params.thumbs.thumbsContainerClass + swiper.params.thumbs.thumbsContainerClass, ); swiper.thumbs.swiper.on("tap", onThumbClick); return true; @@ -10478,11 +10484,11 @@ if (swiper.velocity !== 0) { if (rtl) { momentumDuration = Math.abs( - (-newPosition - swiper.translate) / swiper.velocity + (-newPosition - swiper.translate) / swiper.velocity, ); } else { momentumDuration = Math.abs( - (newPosition - swiper.translate) / swiper.velocity + (newPosition - swiper.translate) / swiper.velocity, ); } @@ -10495,7 +10501,7 @@ // lifting finger or mouse vs. moving slowly before lifting the finger/mouse. // For faster swipes, also apply limits (albeit higher ones). const moveDistance = Math.abs( - (rtl ? -newPosition : newPosition) - swiper.translate + (rtl ? -newPosition : newPosition) - swiper.translate, ); const currentSlideSize = swiper.slidesSizesGrid[swiper.activeIndex]; @@ -10601,7 +10607,7 @@ if (slidesPerView !== "auto" && fill === "row") { slidesNumberEvenToRows = Math.max( slidesNumberEvenToRows, - slidesPerView * rows + slidesPerView * rows, ); } }; @@ -10622,9 +10628,9 @@ ? slidesPerGroup : Math.min( Math.ceil( - (slidesLength - groupIndex * rows * slidesPerGroup) / rows + (slidesLength - groupIndex * rows * slidesPerGroup) / rows, ), - slidesPerGroup + slidesPerGroup, ); row = Math.floor(slideIndexInGroup / columnsInGroup); column = @@ -10658,7 +10664,7 @@ slide.css( getDirectionLabel("margin-top"), - row !== 0 ? spaceBetween && `${spaceBetween}px` : "" + row !== 0 ? spaceBetween && `${spaceBetween}px` : "", ); }; @@ -10895,7 +10901,7 @@ on("beforeInit", () => { if (swiper.params.effect !== effect) return; swiper.classNames.push( - `${swiper.params.containerModifierClass}${effect}` + `${swiper.params.containerModifierClass}${effect}`, ); if (perspective && perspective()) { @@ -11157,7 +11163,7 @@ shadowBefore = $( `
` + }">`, ); $slideEl.append(shadowBefore); } @@ -11166,7 +11172,7 @@ shadowAfter = $( `
` + }">`, ); $slideEl.append(shadowAfter); } @@ -11188,7 +11194,7 @@ $cubeShadowEl.transform( `translate3d(0px, ${swiperWidth / 2 + params.shadowOffset}px, ${ -swiperWidth / 2 - }px) rotateX(90deg) rotateZ(0deg) scale(${params.shadowScale})` + }px) rotateX(90deg) rotateZ(0deg) scale(${params.shadowScale})`, ); } else { const shadowAngle = @@ -11204,7 +11210,7 @@ $cubeShadowEl.transform( `scale3d(${scale1}, 1, ${scale2}) translate3d(0px, ${ swiperHeight / 2 + offset - }px, ${-swiperHeight / 2 / scale2}px) rotateX(-90deg)` + }px, ${-swiperHeight / 2 / scale2}px) rotateX(-90deg)`, ); } } @@ -11214,7 +11220,7 @@ $wrapperEl.transform( `translate3d(0px,0,${zFactor}px) rotateX(${ swiper.isHorizontal() ? 0 : wrapperRotate - }deg) rotateY(${swiper.isHorizontal() ? -wrapperRotate : 0}deg)` + }deg) rotateY(${swiper.isHorizontal() ? -wrapperRotate : 0}deg)`, ); }; @@ -11223,7 +11229,7 @@ slides .transition(duration) .find( - ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left" + ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left", ) .transition(duration); @@ -11260,7 +11266,7 @@ if (!$shadowEl.length) { $shadowEl = $( - `
` + `
`, ); $shadowContainer.append($shadowEl); } @@ -11322,7 +11328,7 @@ shadowBefore = createShadow( params, $slideEl, - swiper.isHorizontal() ? "left" : "top" + swiper.isHorizontal() ? "left" : "top", ); } @@ -11330,7 +11336,7 @@ shadowAfter = createShadow( params, $slideEl, - swiper.isHorizontal() ? "right" : "bottom" + swiper.isHorizontal() ? "right" : "bottom", ); } @@ -11354,7 +11360,7 @@ $transitionElements .transition(duration) .find( - ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left" + ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left", ) .transition(duration); effectVirtualTransitionEnd({ @@ -11458,7 +11464,7 @@ $shadowBeforeEl = createShadow( params, $slideEl, - isHorizontal ? "left" : "top" + isHorizontal ? "left" : "top", ); } @@ -11466,7 +11472,7 @@ $shadowAfterEl = createShadow( params, $slideEl, - isHorizontal ? "right" : "bottom" + isHorizontal ? "right" : "bottom", ); } @@ -11488,7 +11494,7 @@ $transitionElements .transition(duration) .find( - ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left" + ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left", ) .transition(duration); }; @@ -11552,14 +11558,14 @@ const slideProgress = $slideEl[0].progress; const progress = Math.min( Math.max($slideEl[0].progress, -params.limitProgress), - params.limitProgress + params.limitProgress, ); let originalProgress = progress; if (!isCenteredSlides) { originalProgress = Math.min( Math.max($slideEl[0].originalProgress, -params.limitProgress), - params.limitProgress + params.limitProgress, ); } @@ -11594,7 +11600,7 @@ t.forEach((value, index) => { t[index] = `calc(${value}px + (${getTranslateValue( - data.translate[index] + data.translate[index], )} * ${Math.abs(progress * multiplier)}))`; }); // set rotates @@ -11628,7 +11634,7 @@ : progress; $shadowEl[0].style.opacity = Math.min( Math.max(Math.abs(shadowOpacity), 0), - 1 + 1, ); } } @@ -11773,7 +11779,7 @@ if ($shadowEl.length) $shadowEl[0].style.opacity = Math.min( Math.max((Math.abs(progress) - 0.5) / 0.5, 0), - 1 + 1, ); } diff --git a/exampleSite/content/english/authors/john-doe.md b/exampleSite/content/english/authors/john-doe.md index 1a385a6..3b55050 100644 --- a/exampleSite/content/english/authors/john-doe.md +++ b/exampleSite/content/english/authors/john-doe.md @@ -4,17 +4,17 @@ email: johndoe@email.com image: "/images/avatar.png" description: this is meta description social: -- name: github - icon: fa-brands fa-github - link: https://github.com + - name: github + icon: fa-brands fa-github + link: https://github.com -- name: twitter - icon: fa-brands fa-twitter - link: https://twitter.com + - name: twitter + icon: fa-brands fa-twitter + link: https://twitter.com -- name: linkedin - icon: fa-brands fa-linkedin - link: https://linkedin.com + - name: linkedin + icon: fa-brands fa-linkedin + link: https://linkedin.com --- lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostr navigation et dolore magna aliqua. diff --git a/exampleSite/content/english/authors/sam-wilson.md b/exampleSite/content/english/authors/sam-wilson.md index 198f319..beccae6 100644 --- a/exampleSite/content/english/authors/sam-wilson.md +++ b/exampleSite/content/english/authors/sam-wilson.md @@ -4,17 +4,17 @@ email: samwilson@email.com image: "/images/avatar.png" description: this is meta description social: -- name: github - icon: fa-brands fa-github - link: https://github.com + - name: github + icon: fa-brands fa-github + link: https://github.com -- name: twitter - icon: fa-brands fa-twitter - link: https://twitter.com + - name: twitter + icon: fa-brands fa-twitter + link: https://twitter.com -- name: linkedin - icon: fa-brands fa-linkedin - link: https://linkedin.com + - name: linkedin + icon: fa-brands fa-linkedin + link: https://linkedin.com --- lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostr navigation et dolore magna aliqua. diff --git a/exampleSite/content/english/authors/william-jacob.md b/exampleSite/content/english/authors/william-jacob.md index a557bbc..3e15e0b 100644 --- a/exampleSite/content/english/authors/william-jacob.md +++ b/exampleSite/content/english/authors/william-jacob.md @@ -4,17 +4,17 @@ email: williamjacob@email.com image: "/images/avatar.png" description: this is meta description social: -- name: github - icon: fa-brands fa-github - link: https://github.com + - name: github + icon: fa-brands fa-github + link: https://github.com -- name: twitter - icon: fa-brands fa-twitter - link: https://twitter.com + - name: twitter + icon: fa-brands fa-twitter + link: https://twitter.com -- name: linkedin - icon: fa-brands fa-linkedin - link: https://linkedin.com + - name: linkedin + icon: fa-brands fa-linkedin + link: https://linkedin.com --- lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostr navigation et dolore magna aliqua. diff --git a/exampleSite/go.mod b/exampleSite/go.mod index 4c5623f..32a5a3e 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -3,27 +3,27 @@ module hugoplate.netlify.app go 1.20 require ( - github.com/gethugothemes/hugo-modules/accordion v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/adsense v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/images v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/modal v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/pwa v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/search v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/tab v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20230731024856-cab17e406beb // indirect - github.com/gethugothemes/hugo-modules/videos v0.0.0-20230731024856-cab17e406beb // indirect - github.com/zeon-studio/hugoplate v0.0.0-20230731041653-56544f9e8606 // indirect + github.com/gethugothemes/hugo-modules/accordion v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/adsense v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/images v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/modal v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/pwa v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/search v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/tab v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/gethugothemes/hugo-modules/videos v0.0.0-20230731033118-be0c1c964f76 // indirect + github.com/zeon-studio/hugoplate v0.0.0-20230805040115-3e2ac9f85227 // indirect ) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e7bc9a3..3460451 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,4 +1,4 @@ - +
-
diff --git a/package.json b/package.json index 682f75e..151b820 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.7.1", + "version": "1.7.2", "license": "MIT", "author": "zeon.studio", "scripts": { diff --git a/scripts/projectSetup.js b/scripts/projectSetup.js index d87a67f..3ab7306 100644 --- a/scripts/projectSetup.js +++ b/scripts/projectSetup.js @@ -11,7 +11,7 @@ const toggleComment = ({ filepath, regex }) => { if (hasComment) { updatedContent = updatedContent.replace( regex, - matchedContent.replace("# ", "") + matchedContent.replace("# ", ""), ); fs.writeFileSync(filepath, updatedContent, "utf8"); } else { @@ -81,7 +81,7 @@ const setupProject = () => { { filepath: path.join( rootfolder, - "exampleSite/config/_default/module.toml" + "exampleSite/config/_default/module.toml", ), regex: /\[\[imports\]\]\s*\r?\npath = "([^"]+)"/, }, @@ -91,7 +91,7 @@ const setupProject = () => { const folderName = getFolderName(rootfolder); const newfolderName = createNewfolder( path.join(rootfolder, "themes"), - folderName + folderName, ); folderList.forEach((folder) => { diff --git a/scripts/themeSetup.js b/scripts/themeSetup.js index 1e90483..0d21aad 100644 --- a/scripts/themeSetup.js +++ b/scripts/themeSetup.js @@ -13,7 +13,7 @@ const toggleComment = ({ filepath, regex }) => { if (hasBreakline) { updatedContent = updatedContent.replace( regex, - matchedContent.replace(/# /gm, "") + matchedContent.replace(/# /gm, ""), ); fs.writeFileSync(filepath, updatedContent, "utf8"); } @@ -108,7 +108,7 @@ const setupTheme = () => { } else { fs.renameSync( path.join(rootFolder, file.name), - path.join(folder, file.name) + path.join(folder, file.name), ); } }