From a9424d6ea8d8cb7fd510486a39fb321f94431d64 Mon Sep 17 00:00:00 2001 From: LITUATUI <49299328+LITUATUI@users.noreply.github.com> Date: Thu, 28 Mar 2024 15:16:00 +0000 Subject: [PATCH] Updates --- assets/hb/modules/custom/scss/index.scss | 33 ++++++++++++++++++ config/_default/params.yaml | 7 ++-- go.mod | 1 - go.sum | 2 -- .../modules/hb-custom/hooks/body-begin.html | 23 ++++++++++++ .../modules/hb-custom/hooks/body-end.html | 15 ++++++-- .../modules/hb-custom/hooks/head-end.html | 17 +++++++-- package-lock.json | 6 ++-- .../shengmilo/Shengmilo_300x1050.avif | Bin 0 -> 47642 bytes .../shengmilo/Shengmilo_300x1050.jpg | Bin 0 -> 156301 bytes .../wulills/Wulills_300x1050.avif | Bin 0 -> 13417 bytes .../wulills/Wulills_300x1050.jpg | Bin 0 -> 76655 bytes 12 files changed, 91 insertions(+), 13 deletions(-) create mode 100644 layouts/partials/hugopress/modules/hb-custom/hooks/body-begin.html create mode 100644 static/sponsor-images/shengmilo/Shengmilo_300x1050.avif create mode 100644 static/sponsor-images/shengmilo/Shengmilo_300x1050.jpg create mode 100644 static/sponsor-images/wulills/Wulills_300x1050.avif create mode 100644 static/sponsor-images/wulills/Wulills_300x1050.jpg diff --git a/assets/hb/modules/custom/scss/index.scss b/assets/hb/modules/custom/scss/index.scss index ff63834..c0f9b09 100644 --- a/assets/hb/modules/custom/scss/index.scss +++ b/assets/hb/modules/custom/scss/index.scss @@ -2,6 +2,18 @@ /*! purgecss start ignore */ +@media (max-width: 1900px) { + .sponsor-big-desktop { + display: none; + } +} + +@media (min-width: 1901px) { + .sponsor-desktop { + display: none; + } +} + @media (max-width: 480px) { .sponsor-desktop { display: none; @@ -14,6 +26,18 @@ } } +@media (max-width: 1900px) { + .sponsor-left-sidebar { + display: none; + } +} + +@media (max-width: 1900px) { + .sponsor-right-sidebar { + display: none; + } +} + .sponsor-header { padding-top: 55px; } @@ -22,8 +46,17 @@ position: -webkit-sticky; position: sticky; bottom: 0; + z-index: 9995; } +.sponsor-left-sidebar { + padding-top: 55px; position: fixed; left: 0; top: 50%; transform: translate(0, -50%); max-height: 100vh; +} + +.sponsor-right-sidebar { + padding-top: 55px; position: fixed; right: 0; top: 50%; transform: translate(0, -50%); max-height: 100vh; +} + .video-shortcode { max-width: 100%; height: auto; diff --git a/config/_default/params.yaml b/config/_default/params.yaml index 59ab380..e45cfee 100644 --- a/config/_default/params.yaml +++ b/config/_default/params.yaml @@ -176,12 +176,15 @@ hugopress: # see layouts/partials/hugopress/modules/hb-custom/hooks/head-end.html. head-end: cacheable: true + # see layouts/partials/hugopress/modules/hb-custom/hooks/body-begin.html. + body-begin: + cacheable: true # see layouts/partials/hugopress/modules/hb-custom/hooks/hb-blog-post-content-end.html. hb-blog-post-content-end: cacheable: true - # see layouts/partials/hugopress/modules/hb-custom/hooks/body-end.html. + # see layouts/partials/hugopress/modules/hb-custom/hooks/hb-blog-post-content-end.html. body-end: - cacheable: true + cacheable: true # see layouts/partials/hugopress/modules/hb-custom/hooks/hb-blog-sidebar.html. hb-blog-sidebar: cacheable: true diff --git a/go.mod b/go.mod index 998ed46..e11bf2f 100644 --- a/go.mod +++ b/go.mod @@ -59,7 +59,6 @@ require ( github.com/hugomods/font-awesome v6.5.1+incompatible // indirect github.com/hugomods/fuse-js v0.1.0 // indirect github.com/hugomods/giscus v0.1.1 // indirect - github.com/hugomods/google-adsense v0.1.0 // indirect github.com/hugomods/google-analytics v0.2.0 // indirect github.com/hugomods/gravatar v0.2.0 // indirect github.com/hugomods/hugopress v0.2.3 // indirect diff --git a/go.sum b/go.sum index 8c3527e..b1b3f37 100644 --- a/go.sum +++ b/go.sum @@ -110,8 +110,6 @@ github.com/hugomods/fuse-js v0.1.0 h1:CmWHBZANvjOP44RDNQNLntqlLf9GLqeM29jekxTNcP github.com/hugomods/fuse-js v0.1.0/go.mod h1:srCqvtBQR02HS/abTraDU4oINv1D3PljNPdexdoHhpo= github.com/hugomods/giscus v0.1.1 h1:Kb8137Cp2nQJPFb6e+CdXy8nyIAJ2dFIymG4bDdaXWI= github.com/hugomods/giscus v0.1.1/go.mod h1:tCRkqNi/sMsLh3kjDesXZNzf4R/w+b5oc5boS/l8Jtw= -github.com/hugomods/google-adsense v0.1.0 h1:eykHVCF+JjJRpEQ/b+EkH9aQLQxIdGI8m06qsq1iybA= -github.com/hugomods/google-adsense v0.1.0/go.mod h1:zXQIuUr9pIqlNdCzOLY04Rx7oeUm5R+OhUmscNPiI0w= github.com/hugomods/google-analytics v0.2.0 h1:ziRPsDMYKAmvfl6ofthJdmXq0w10yxNKI/dF0vbcX0k= github.com/hugomods/google-analytics v0.2.0/go.mod h1:Q89C3HmPHn2m2VT1INfnLwkpDyyYRLRIPitLA/aFIy8= github.com/hugomods/gravatar v0.2.0 h1:642HNhGN7Mw7qefNcUFJKzLoT2zJKt4IQkrS53mIUfA= diff --git a/layouts/partials/hugopress/modules/hb-custom/hooks/body-begin.html b/layouts/partials/hugopress/modules/hb-custom/hooks/body-begin.html new file mode 100644 index 0000000..00fd85f --- /dev/null +++ b/layouts/partials/hugopress/modules/hb-custom/hooks/body-begin.html @@ -0,0 +1,23 @@ +{{/* Put custom HTML markup before the end of . */}} + + + + \ No newline at end of file diff --git a/layouts/partials/hugopress/modules/hb-custom/hooks/body-end.html b/layouts/partials/hugopress/modules/hb-custom/hooks/body-end.html index 46bc2af..f79b627 100644 --- a/layouts/partials/hugopress/modules/hb-custom/hooks/body-end.html +++ b/layouts/partials/hugopress/modules/hb-custom/hooks/body-end.html @@ -10,6 +10,17 @@ }); + + - +