mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-09-08 12:17:35 -05:00
Compare commits
1 Commits
cleanup-bo
...
f35a286d34
Author | SHA1 | Date | |
---|---|---|---|
f35a286d34
|
@@ -293,33 +293,31 @@ 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 types:
|
.body-module {
|
||||||
*
|
width: 100%; /* without, it collapses inside flexbox for some reason TODO: figure out why */
|
||||||
* full-width: no max-width, no margin from the sides of the page
|
}
|
||||||
* full-padded: no max-width, but has margin from the left/right page edges
|
|
||||||
* center: max-width 720px, centered when too large, padded when screen is narrow
|
|
||||||
*/
|
|
||||||
|
|
||||||
.body-module--full-width,
|
.body-module--marginless {
|
||||||
.body-module--full-padded,
|
margin: 0;
|
||||||
.body-module--center-wide {
|
|
||||||
margin-block: var(--page-margin);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.body-module--full-width {
|
.body-module--full-width {
|
||||||
margin-inline: 0;
|
margin: 0 var(--page-margin);
|
||||||
|
/*
|
||||||
|
margin-left: var(--page-margin);
|
||||||
|
margin-right: var(--page-margin);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
.body-module-full-padded {
|
.body-module--wide {
|
||||||
margin-inline: var(--page-margin);
|
margin-left: var(--page-margin);
|
||||||
}
|
margin-right: var(--page-margin);
|
||||||
.body-module--center {
|
max-width: 720px;
|
||||||
margin-inline: auto;
|
|
||||||
/* add the minimum margin here because we are using auto for its centering */
|
|
||||||
padding-inline: var(--page-margin);
|
|
||||||
/* account for the padding being included in the element's calculated width */
|
|
||||||
max-width: calc(720px + 2 * var(--page-margin));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<nav class="body-module--center breadcrumb" aria-label="{{ i18n "aria_breadcrumbnav" }}">
|
<nav class="body-module body-module--wide breadcrumb" aria-label="{{ i18n "aria_breadcrumbnav" }}">
|
||||||
<ul>
|
<ul>
|
||||||
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
||||||
</ul>
|
</ul>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<header class="top">
|
<header class="body-module body-module--marginless top">
|
||||||
<div class="brand">
|
<div class="brand">
|
||||||
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||||
{{ .Site.Title | markdownify }}
|
{{ .Site.Title | markdownify }}
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<section class="body-module--center">
|
|
||||||
<h1>
|
<h1>
|
||||||
{{ partial "icon.html" "user-circle" }}
|
{{ partial "icon.html" "user-circle" }}
|
||||||
{{ .Title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
@@ -22,5 +21,4 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -20,10 +20,8 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{ block "post-body" . }}{{ end }}
|
|
||||||
|
|
||||||
{{ if or .Site.Copyright .Site.Params.footer }}
|
{{ if or .Site.Copyright .Site.Params.footer }}
|
||||||
<footer class="body-module--center">
|
<footer class="body-module body-module--wide">
|
||||||
{{ with .Site.Copyright }}
|
{{ with .Site.Copyright }}
|
||||||
{{ . | safeHTML }}
|
{{ . | safeHTML }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -33,6 +31,10 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ block "post-body" . }}
|
||||||
|
{{/* currently this is only used for related posts */}}
|
||||||
|
{{ end }}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@@ -1,15 +1,13 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
<article class="body-module--center">
|
<article class="body-module body-module--wide">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</article>
|
</article>
|
||||||
<hr class="body-module--center">
|
<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--center">
|
<div class="body-module body-module--wide">
|
||||||
<h1>
|
<h1>
|
||||||
{{ i18n "latest_posts" }}
|
{{ i18n "latest_posts" }}
|
||||||
{{ partial "rss-link.html" . }}
|
{{ partial "rss-link.html" . }}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<article class="body-module--center">
|
<article class="body-module body-module--wide">
|
||||||
<div class="page-title">
|
<div class="page-title">
|
||||||
<h1>
|
<h1>
|
||||||
{{ .Title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
@@ -70,17 +70,17 @@
|
|||||||
{{ partial "comments.html" . }}
|
{{ partial "comments.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ define "post-body" }}
|
{{ define "post-body" }}
|
||||||
{{ $related := .Site.RegularPages.Related . | first 10 }}
|
{{ $related := .Site.RegularPages.Related . | first 10 }}
|
||||||
{{ with $related }}
|
{{ with $related }}
|
||||||
<div class="body-module--full-width related-posts">
|
<div class="related-posts">
|
||||||
<hr>
|
<hr>
|
||||||
<h1>{{ i18n "related_posts" }}</h1>
|
<h1>{{ i18n "related_posts" }}</h1>
|
||||||
{{ partial "page-list.html" . }}
|
{{ partial "page-list.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,6 +1,2 @@
|
|||||||
User-Agent: *
|
User-Agent: *
|
||||||
Sitemap: {{ "sitemap.xml" | absLangURL }}
|
Sitemap: {{ "sitemap.xml" | absLangURL }}
|
||||||
|
|
||||||
{{/* It complains about the raw markdown output having no title tag */ -}}
|
|
||||||
User-Agent: Bingbot
|
|
||||||
Disallow: /blog/*.md$
|
|
||||||
|
Reference in New Issue
Block a user