Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
LITUATUI committed Mar 28, 2024
1 parent 3d7d5c7 commit a9424d6
Show file tree
Hide file tree
Showing 12 changed files with 91 additions and 13 deletions.
33 changes: 33 additions & 0 deletions assets/hb/modules/custom/scss/index.scss
Expand Up @@ -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;
Expand All @@ -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;
}
Expand All @@ -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;
Expand Down
7 changes: 5 additions & 2 deletions config/_default/params.yaml
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion go.mod
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Expand Up @@ -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=
Expand Down
23 changes: 23 additions & 0 deletions layouts/partials/hugopress/modules/hb-custom/hooks/body-begin.html
@@ -0,0 +1,23 @@
{{/* Put custom HTML markup before the end of <body>. */}}

<div class="sponsor-left-sidebar">
<center>
<a href="https://pushevs.com/wulills" target="_blank" rel="noopener">
<picture>
<source srcSet="/sponsor-images/wulills/Wulills_300x1050.avif" type="image/avif" />
<img src="/sponsor-images/wulills/Wulills_300x1050.jpg" decoding="async" loading="lazy" alt="Wulills" />
</picture>
</a>
</center>
</div>

<div class="sponsor-right-sidebar">
<center>
<a href="https://pushevs.com/shengmilo" target="_blank" rel="noopener">
<picture>
<source srcSet="/sponsor-images/shengmilo/Shengmilo_300x1050.avif" type="image/avif" />
<img src="/sponsor-images/shengmilo/Shengmilo_300x1050.jpg" decoding="async" loading="lazy" alt="Shengmilo" />
</picture>
</a>
</center>
</div>
15 changes: 13 additions & 2 deletions layouts/partials/hugopress/modules/hb-custom/hooks/body-end.html
Expand Up @@ -10,6 +10,17 @@
});
</script>

<div class="sponsor-big-desktop sponsor-footer">
<center>
<a href="https://pushevs.com/evb" target="_blank" rel="noopener">
<picture>
<source srcSet="/sponsor-images/evb/EVB_1280x120.avifs" type="image/avif" />
<img src="/sponsor-images/evb/EVB_1280x120.gif" decoding="async" loading="lazy" alt="EVB" />
</picture>
</a>
</center>
</div>

<div class="sponsor-desktop sponsor-footer">
<center>
<a href="https://pushevs.com/evb" target="_blank" rel="noopener">
Expand All @@ -20,12 +31,12 @@
</a>
</center>
</div>

<div class="sponsor-mobile sponsor-footer">
<center>
<a href="https://pushevs.com/evb" target="_blank" rel="noopener">
<picture>
<source srcSet="/sponsor-images/evb/EVB_900X200.avifs" type="image/avif" />
<source srcSet="/sponsor-images/evb/EVB_900x200.avifs" type="image/avif" />
<img src="/sponsor-images/evb/EVB_900X200.gif" width="100%" decoding="async" loading="lazy" alt="EVB" />
</picture>
</a>
Expand Down
17 changes: 14 additions & 3 deletions layouts/partials/hugopress/modules/hb-custom/hooks/head-end.html
@@ -1,5 +1,16 @@
{{/* Put custom HTML markup before the end of <head>. */}}


<div class="sponsor-big-desktop sponsor-header">
<center>
<a href="https://pushevs.com/evb" target="_blank" rel="noopener">
<picture>
<source srcSet="/sponsor-images/evb/EVB_1280x120.avifs" type="image/avif" />
<img src="/sponsor-images/evb/EVB_1280x120.gif" decoding="async" loading="lazy" alt="EVB" />
</picture>
</a>
</center>
</div>

<div class="sponsor-desktop sponsor-header">
<center>
<a href="https://pushevs.com/evb" target="_blank" rel="noopener">
Expand All @@ -15,8 +26,8 @@
<center>
<a href="https://pushevs.com/evb" target="_blank" rel="noopener">
<picture>
<source srcSet="/sponsor-images/evb/EVB_900X200.avifs" type="image/avif" />
<img src="/sponsor-images/evb/EVB_900X200.gif" width="100%" decoding="async" loading="lazy" alt="EVB" />
<source srcSet="/sponsor-images/evb/EVB_900x200.avifs" type="image/avif" />
<img src="/sponsor-images/evb/EVB_900x200.gif" width="100%" decoding="async" loading="lazy" alt="EVB" />
</picture>
</a>
</center>
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a9424d6

Please sign in to comment.