diff --git a/assets/hb/modules/blog/scss/_authors.scss b/assets/hb/modules/blog/scss/_authors.scss new file mode 100644 index 00000000..b43bf797 --- /dev/null +++ b/assets/hb/modules/blog/scss/_authors.scss @@ -0,0 +1,15 @@ +.hb-blog-term-profile, +.hb-blog-term-author { + .hb-social { + color: var(--#{$prefix}body-color); + + &:hover { + color: var(--#{$prefix}primary); + } + } +} + +.hb-blog-term-img { + height: 100px; + width: 100px; +} diff --git a/assets/hb/modules/blog/scss/_sidebar.scss b/assets/hb/modules/blog/scss/_sidebar.scss index f753f8f7..e82d9a0f 100644 --- a/assets/hb/modules/blog/scss/_sidebar.scss +++ b/assets/hb/modules/blog/scss/_sidebar.scss @@ -25,6 +25,12 @@ @include top-offset(sticky); } + + .hb-module { + &:last-child { + margin-bottom: 0 !important; + } + } } .hb-blog-main { diff --git a/assets/hb/modules/blog/scss/_terms.scss b/assets/hb/modules/blog/scss/_terms.scss index 91989927..be7ace2a 100644 --- a/assets/hb/modules/blog/scss/_terms.scss +++ b/assets/hb/modules/blog/scss/_terms.scss @@ -42,19 +42,3 @@ $hb-terms-colors: ($warning, $success, $danger); } } } - -.hb-blog-term-profile, -.hb-blog-term-author { - .hb-social { - color: var(--#{$prefix}body-color); - - &:hover { - color: var(--#{$prefix}primary); - } - } -} - -.hb-blog-term-img { - height: 100px; - width: 100px; -} diff --git a/assets/hb/modules/blog/scss/index.scss b/assets/hb/modules/blog/scss/index.scss index 33fe5ec1..1d9c7b89 100644 --- a/assets/hb/modules/blog/scss/index.scss +++ b/assets/hb/modules/blog/scss/index.scss @@ -1,4 +1,5 @@ @import "archives"; +@import "authors"; @import "home"; @import "post"; @import "sidebar"; diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 4d617445..161289cc 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -18,7 +18,7 @@ {{ partial "hb/modules/pagination/index" .Paginator }} {{ partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-main-end" "Page" .) }} -
+
{{ partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-sidebar" "Page" .) }}
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 198ff025..5b37dac4 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,7 +1,7 @@ {{- define "main" }} -
+
-

+

{{- .Title -}} ({{- len .Data.Pages -}})

diff --git a/layouts/authors/terms.html b/layouts/authors/terms.html index 1727f34d..7bcba32d 100644 --- a/layouts/authors/terms.html +++ b/layouts/authors/terms.html @@ -5,7 +5,7 @@

{{- range $i, $page := sort .Data.Pages ".Data.Pages" "desc" }} -
+
{{- $img := partial "hb/modules/blog/author/image" (dict "Page" . "Placeholder" false diff --git a/layouts/partials/hb/modules/blog/archives/list.html b/layouts/partials/hb/modules/blog/archives/list.html index 7275043a..d48f6ebf 100644 --- a/layouts/partials/hb/modules/blog/archives/list.html +++ b/layouts/partials/hb/modules/blog/archives/list.html @@ -1,6 +1,6 @@ {{ partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-main-begin" "Page" .) }}
+ class="archives border-start border-5 ps-4 pt-3 position-relative"> {{ partial "hb/modules/blog/archives/posts" .Paginator.Pages }}
{{ partial "hb/modules/pagination/index" .Paginator }} diff --git a/layouts/partials/hb/modules/blog/home/taxonomies.html b/layouts/partials/hb/modules/blog/home/taxonomies.html index 2d10e4ca..64873850 100644 --- a/layouts/partials/hb/modules/blog/home/taxonomies.html +++ b/layouts/partials/hb/modules/blog/home/taxonomies.html @@ -5,7 +5,7 @@ "series" (dict "icon" "layout-text-window-reverse" "className" "text-danger") }} {{- $size := "2.25em" }} -