mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-31 00:57:33 -05:00
WIP
This commit is contained in:
@@ -293,14 +293,9 @@ body {
|
|||||||
color: var(--text-0);
|
color: var(--text-0);
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
gap: var(--page-margin);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.body-module {
|
.body-module {
|
||||||
width: 100%; /* without, it collapses inside flexbox for some reason TODO: figure out why */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.body-module--marginless {
|
.body-module--marginless {
|
||||||
|
@@ -20,6 +20,10 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
{{ block "post-body" . }}
|
||||||
|
{{/* currently this is only used for related posts */}}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ if or .Site.Copyright .Site.Params.footer }}
|
{{ if or .Site.Copyright .Site.Params.footer }}
|
||||||
<footer class="body-module body-module--wide">
|
<footer class="body-module body-module--wide">
|
||||||
{{ with .Site.Copyright }}
|
{{ with .Site.Copyright }}
|
||||||
@@ -31,10 +35,6 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ block "post-body" . }}
|
|
||||||
{{/* currently this is only used for related posts */}}
|
|
||||||
{{ end }}
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@@ -5,7 +5,9 @@
|
|||||||
</article>
|
</article>
|
||||||
<hr class="body-module body-module--wide">
|
<hr class="body-module body-module--wide">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "post-body" }}
|
||||||
{{ if .Site.Params.homepageLatestPosts }}
|
{{ if .Site.Params.homepageLatestPosts }}
|
||||||
<div class="body-module body-module--wide">
|
<div class="body-module body-module--wide">
|
||||||
<h1>
|
<h1>
|
||||||
|
@@ -70,17 +70,17 @@
|
|||||||
{{ partial "comments.html" . }}
|
{{ partial "comments.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "post-body" }}
|
|
||||||
{{ $related := .Site.RegularPages.Related . | first 10 }}
|
|
||||||
{{ with $related }}
|
|
||||||
<div class="related-posts">
|
|
||||||
<hr>
|
|
||||||
<h1>{{ i18n "related_posts" }}</h1>
|
|
||||||
{{ partial "page-list.html" . }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{ define "post-body" }}
|
||||||
|
{{ $related := .Site.RegularPages.Related . | first 10 }}
|
||||||
|
{{ with $related }}
|
||||||
|
<div class="related-posts body-module body-module--full-width">
|
||||||
|
<hr>
|
||||||
|
<h1>{{ i18n "related_posts" }}</h1>
|
||||||
|
{{ partial "page-list.html" . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user