mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-16 11:17:29 -05:00
Compare commits
5 Commits
v1.0
...
586bea37d5
Author | SHA1 | Date | |
---|---|---|---|
586bea37d5
|
|||
37c04460b5
|
|||
11599e01d7
|
|||
80e96736cd
|
|||
6bedf987d6
|
@ -52,6 +52,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Post layout (in list pages) */
|
/* Post layout (in list pages) */
|
||||||
.list-page-content {
|
.list-page-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -202,10 +203,6 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Header formatting (website title and article section headers) */
|
/* Header formatting (website title and article section headers) */
|
||||||
.top {
|
|
||||||
margin: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header a,
|
.header a,
|
||||||
.section-header a {
|
.section-header a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
@ -242,15 +239,6 @@
|
|||||||
padding: 8px 15px;
|
padding: 8px 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content,
|
|
||||||
footer {
|
|
||||||
margin: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#back-to-top {
|
#back-to-top {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
float: right;
|
float: right;
|
||||||
@ -338,6 +326,7 @@ footer {
|
|||||||
/* Basic elements */
|
/* Basic elements */
|
||||||
html {
|
html {
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
|
margin: 0 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (prefers-reduced-motion: reduce) {
|
@media screen and (prefers-reduced-motion: reduce) {
|
||||||
@ -350,11 +339,15 @@ body {
|
|||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
color: var(--text-normal);
|
color: var(--text-normal);
|
||||||
font-family: "Open Sans", "Noto Sans", sans-serif;
|
font-family: "Open Sans", "Noto Sans", sans-serif;
|
||||||
margin: auto;
|
margin: 0 auto 20px;
|
||||||
max-width: 720px;
|
max-width: 720px;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
img,
|
img,
|
||||||
video {
|
video {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
@ -504,9 +497,7 @@ li.disabled > .page-link:hover {
|
|||||||
|
|
||||||
/* Breadcrumb navigation */
|
/* Breadcrumb navigation */
|
||||||
.breadcrumb {
|
.breadcrumb {
|
||||||
margin-top: 40px;
|
margin: 30px 0 20px;
|
||||||
margin-bottom: 20px;
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.breadcrumb ul {
|
.breadcrumb ul {
|
||||||
@ -607,6 +598,7 @@ li.disabled > .page-link:hover {
|
|||||||
pre {
|
pre {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
|
break-inside: avoid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-of-contents {
|
.table-of-contents {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{{ partial "head.html" . }}
|
{{ partial "head.html" . }}
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<a id="top" aria-hidden="true"></a>
|
<a id="top" name="top" aria-hidden="true"></a>
|
||||||
|
|
||||||
<div class="top">
|
<div class="top">
|
||||||
{{ partial "top.html" . }}
|
{{ partial "top.html" . }}
|
||||||
@ -14,15 +14,15 @@
|
|||||||
{{ partial "breadcrumb.html" . }}
|
{{ partial "breadcrumb.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="content">
|
<div class="main">
|
||||||
{{ block "main" . }}
|
{{ block "main" . }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ with .Site.Copyright }}
|
{{ with .Site.Copyright }}
|
||||||
<footer>
|
|
||||||
<hr>
|
<hr>
|
||||||
|
<footer>
|
||||||
<small>
|
<small>
|
||||||
{{ . | safeHTML }}
|
{{ . | safeHTML }}
|
||||||
</small>
|
</small>
|
||||||
|
@ -15,15 +15,17 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
|
{{ with .Paginator.Pages }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Paginator.Pages }}
|
{{ range . }}
|
||||||
<li>{{ .Render "summary/post" }}</li>
|
<li>{{ .Render "summary/post" }}</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -46,7 +46,9 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="post-content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
||||||
{{ with $related }}
|
{{ with $related }}
|
||||||
|
@ -5,10 +5,16 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
|
{{ with .Paginator.Pages }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Paginator.Pages }}
|
{{ range . }}
|
||||||
<li>{{ .Render "summary/author" }}</li>
|
<li>{{ .Render "summary/author" }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ else }}
|
||||||
|
<div>
|
||||||
|
{{ i18n "no_posts" }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -10,15 +10,17 @@
|
|||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
|
{{ with .Paginator.Pages }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Paginator.Pages }}
|
{{ range . }}
|
||||||
<li>{{ .Render "summary/post" }}</li>
|
<li>{{ .Render "summary/post" }}</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
|
@ -5,10 +5,16 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="series-taxonomy">
|
<div class="series-taxonomy">
|
||||||
|
{{ with .Pages }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Pages }}
|
{{ range . }}
|
||||||
<li>{{ .Render "summary/series" }}</li>
|
<li>{{ .Render "summary/series" }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ else }}
|
||||||
|
<div>
|
||||||
|
{{ i18n "no_posts" }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -10,20 +10,22 @@
|
|||||||
{{ partial "description-or-summary.html" . }}
|
{{ partial "description-or-summary.html" . }}
|
||||||
|
|
||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
|
{{ with .Paginator.Pages.Reverse }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ $i := 0 }}
|
{{ $i := 0 }}
|
||||||
{{ $total := len .Pages }}
|
{{ $total := len $.Pages }}
|
||||||
{{ range .Paginator.Pages.Reverse }}
|
{{ range . }}
|
||||||
{{ $i = add 1 $i }}
|
{{ $i = add 1 $i }}
|
||||||
{{ .Scratch.Set "series_position" $i }}
|
{{ .Scratch.Set "series_position" $i }}
|
||||||
{{ .Scratch.Set "series_total" $total }}
|
{{ .Scratch.Set "series_total" $total }}
|
||||||
<li>{{ .Render "summary/post" }}</li>
|
<li>{{ .Render "summary/post" }}</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
|
@ -5,12 +5,18 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="tag-list">
|
<div class="tag-list">
|
||||||
|
{{ with .Data.Terms.Alphabetical }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Data.Terms.Alphabetical }}
|
{{ range . }}
|
||||||
<a href="{{ .Page.Permalink }}">
|
<a href="{{ .Page.Permalink }}">
|
||||||
<li>{{ .Page.Title | markdownify }}</li>
|
<li>{{ .Page.Title | markdownify }}</li>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ else }}
|
||||||
|
<div>
|
||||||
|
{{ i18n "no_posts" }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -7,15 +7,17 @@
|
|||||||
|
|
||||||
{{ partial "description-or-summary.html" . }}
|
{{ partial "description-or-summary.html" . }}
|
||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
|
{{ with .Paginator.Pages }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Paginator.Pages }}
|
{{ range . }}
|
||||||
<li>{{ .Render "summary/post" }}</li>
|
<li>{{ .Render "summary/post" }}</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
|
@ -10,12 +10,18 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="taxonomy">
|
<div class="taxonomy">
|
||||||
|
{{ with .Data.Terms.Alphabetical }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Data.Terms.Alphabetical }}
|
{{ range . }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .Page.Permalink }}">{{ .Page.Title | markdownify }}</a>
|
<a href="{{ .Page.Permalink }}">{{ .Page.Title | markdownify }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ else }}
|
||||||
|
<div>
|
||||||
|
{{ i18n "no_posts" }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -12,15 +12,17 @@
|
|||||||
|
|
||||||
{{ partial "description-or-summary.html" . }}
|
{{ partial "description-or-summary.html" . }}
|
||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
|
{{ with .Paginator.Pages }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Paginator.Pages }}
|
{{ range . }}
|
||||||
<li>{{ .Render "summary/post" }}</li>
|
<li>{{ .Render "summary/post" }}</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
|
Reference in New Issue
Block a user