-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
52 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,8 @@ | |
h6 { | ||
margin-top: 0.5rem; | ||
} | ||
|
||
:last-child { | ||
margin-bottom: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
{{- define "main" }} | ||
<h1 class="mb-3 text-center h4"> | ||
{{- .Title -}} | ||
<small class="ms-1 text-secondary">({{- len .Data.Pages -}})</small> | ||
</h1> | ||
<div class="row row-cols-1"> | ||
{{- range $i, $page := sort .Data.Pages ".Data.Pages" "desc" }} | ||
<div class="hb-blog-term-author hb-module col d-flex border-top pt-3"> | ||
{{- $img := partial "hb/modules/blog/author/image" (dict | ||
"Page" . | ||
"Placeholder" false | ||
"ClassName" "hb-blog-term-img img-fluid rounded-circle") | ||
}} | ||
{{- with $img }} | ||
<div class="flex-shrink-0 me-3 d-flex align-items-center">{{ $img }}</div> | ||
{{- end }} | ||
<div class="flex-grow-1 d-flex flex-wrap"> | ||
<div class="flex-grow-1 d-flex justify-content-center flex-column"> | ||
<h2 class="h5"> | ||
<a class="text-decoration-none" href="{{ .RelPermalink }}"> | ||
{{- .Title -}} | ||
</a> | ||
</h2> | ||
{{- with .Description }} | ||
<p class="text-body-secondary mb-0">{{ . }}</p> | ||
{{- end }} | ||
<div class="hb-blog-main-container"> | ||
<div class="hb-blog-main"> | ||
{{ partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-main-begin" "Page" .) }} | ||
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-3"> | ||
{{- range $i, $page := sort .Data.Pages ".Data.Pages" "desc" }} | ||
<div class="col"> | ||
<div class="hb-blog-term-author d-flex pt-3 hb-module h-100 flex-column align-items-center justify-content-center"> | ||
{{- $img := partial "hb/modules/blog/author/image" (dict | ||
"Page" . | ||
"Placeholder" false | ||
"ClassName" "hb-blog-term-img img-fluid rounded-circle mb-3") | ||
}} | ||
{{- with $img }}{{ . }}{{- end }} | ||
<h2 class="h5 mb-2"> | ||
<a class="text-decoration-none" href="{{ .RelPermalink }}"> | ||
{{- .Title -}} | ||
</a> | ||
</h2> | ||
{{- with .Description }} | ||
<p class="text-body-secondary mb-2 text-center">{{ . }}</p> | ||
{{- end }} | ||
{{ partialCached "hb/modules/blog/term/metrics" . . }} | ||
</div> | ||
</div> | ||
<div class="flex-shrink-0 ms-2 d-none d-lg-block"> | ||
{{ partialCached "hb/modules/blog/term/metrics" . . }} | ||
</div> | ||
</div> | ||
{{- end -}} | ||
</div> | ||
{{- end -}} | ||
{{ partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-main-end" "Page" .) }} | ||
</div> | ||
<div class="hb-blog-sidebar pe-lg-1"> | ||
{{ partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-sidebar" "Page" .) }} | ||
</div> | ||
</div> | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
modules/related-posts/layouts/partials/hb/modules/blog-related-posts/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters