mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-07-04 19:17:33 -05:00
Compare commits
1 Commits
a65a435b1d
...
breadcrumb
Author | SHA1 | Date | |
---|---|---|---|
8c0b3a7268
|
@ -123,8 +123,8 @@
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
.page-list,
|
||||
.series-taxonomy-list {
|
||||
.page-list ul,
|
||||
.series-taxonomy ul {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
list-style: none;
|
||||
@ -132,13 +132,12 @@
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
.series-taxonomy-list {
|
||||
.series-taxonomy ul {
|
||||
gap: 80px;
|
||||
}
|
||||
|
||||
.page-list .post,
|
||||
.series-taxonomy-list .series-taxonomy,
|
||||
.series-taxonomy .post {
|
||||
.page-list li,
|
||||
.series-taxonomy li {
|
||||
padding-top: 8px;
|
||||
padding-left: 24px;
|
||||
padding-right: 24px;
|
||||
@ -207,7 +206,7 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.taxonomy-list {
|
||||
.taxonomy-list ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
@ -215,7 +214,7 @@
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.taxonomy-list .taxonomy-term {
|
||||
.taxonomy-list li {
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
padding: 8px 12px;
|
||||
@ -231,7 +230,7 @@
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.taxonomy-list .taxonomy-term {
|
||||
.taxonomy-list li {
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
@ -245,7 +244,7 @@
|
||||
|
||||
|
||||
/* Series list format */
|
||||
.series-page-list {
|
||||
.series-pages ul {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-flow: row wrap;
|
||||
@ -256,7 +255,7 @@
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.series-page-list .post {
|
||||
.series-pages li {
|
||||
flex: 1;
|
||||
min-width: 49%;
|
||||
}
|
||||
@ -305,13 +304,8 @@
|
||||
|
||||
|
||||
/* Header formatting (website title and article section headers) */
|
||||
.header {
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
h1.header {
|
||||
font-size: 1.5em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.header a,
|
||||
@ -353,7 +347,6 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Related posts */
|
||||
.full-width-page-list {
|
||||
/* make left/right 0 margin so it takes up full width */
|
||||
@ -366,16 +359,16 @@
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.full-width-page-list .post {
|
||||
.full-width-page-list li {
|
||||
min-width: 300px;
|
||||
max-width: 300px;
|
||||
|
||||
}
|
||||
|
||||
.full-width-page-list .post:first-child {
|
||||
.full-width-page-list li:first-child {
|
||||
margin-left: 20px;
|
||||
}
|
||||
.full-width-page-list .post:last-child {
|
||||
.full-width-page-list li:last-child {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
@ -400,7 +393,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.full-width-page-list .page-list {
|
||||
.full-width-page-list .page-list ul {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 20px;
|
||||
@ -408,7 +401,6 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Social media share buttons */
|
||||
.share-buttons {
|
||||
background: var(--background-1);
|
||||
@ -447,7 +439,6 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/* See also formating */
|
||||
.see-also {
|
||||
background-color: var(--background-1);
|
||||
@ -462,7 +453,6 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Back to top */
|
||||
#back-to-top {
|
||||
position: fixed;
|
||||
@ -658,13 +648,6 @@ table.markdown {
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
:target {
|
||||
animation: target-fade 10s ease-out;
|
||||
}
|
||||
@keyframes target-fade {
|
||||
0% { background-color: var(--background-yellow-2); }
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@ -808,20 +791,45 @@ li.disabled > .page-link:hover {
|
||||
|
||||
/* Breadcrumb navigation */
|
||||
.breadcrumb {
|
||||
margin: 30px 0 20px;
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.breadcrumb ul {
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.breadcrumb li {
|
||||
display: inline;
|
||||
padding: 8px;
|
||||
background-color: var(--background-1);
|
||||
}
|
||||
|
||||
.breadcrumb li+li:before {
|
||||
content: "»"
|
||||
.breadcrumb li:hover {
|
||||
background-color: var(--background-2);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.breadcrumb li a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.breadcrumb li.active:hover {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.breadcrumb li:first-child {
|
||||
border-top-left-radius: 12px;
|
||||
border-bottom-left-radius: 12px;
|
||||
padding-left: 12px;
|
||||
}
|
||||
.breadcrumb li:last-child {
|
||||
border-top-right-radius: 12px;
|
||||
border-bottom-right-radius: 12px;
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
<div class="post">
|
||||
<h2 class="post-title">
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
@ -19,3 +20,4 @@
|
||||
<div class="readmore">
|
||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<div class="post">
|
||||
<h2 class="post-title">
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
@ -10,15 +11,16 @@
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="series-page-list">
|
||||
<div class="series-pages">
|
||||
<ul>
|
||||
{{ $i := 0 }}
|
||||
{{ $total := len .Data.Pages }}
|
||||
{{ range .Data.Pages.Reverse }}
|
||||
{{ $i = add 1 $i }}
|
||||
{{ .Scratch.Set "series_position" $i }}
|
||||
{{ .Scratch.Set "series_total" $total }}
|
||||
<article class="post">
|
||||
{{ .Render "summary/series_post" }}
|
||||
</article>
|
||||
<li>{{ .Render "summary/series_post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<div class="post">
|
||||
<div class="post-series-position">
|
||||
{{ if .Scratch.Get "series_position" }}
|
||||
({{ .Scratch.Get "series_position" }}/{{ .Scratch.Get "series_total" }})
|
||||
@ -25,3 +26,4 @@
|
||||
<div class="readmore">
|
||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -6,11 +6,11 @@
|
||||
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<article class="post">
|
||||
{{ .Render "summary/author" }}
|
||||
</article>
|
||||
<li>{{ .Render "summary/author" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
|
@ -1,10 +1,10 @@
|
||||
<div class="page-list">
|
||||
{{ with . }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<article class="post">
|
||||
{{ .Render "summary/post" }}
|
||||
</article>
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
|
@ -21,10 +21,6 @@
|
||||
<meta itemprop="image" content="{{ $featured.Permalink }}">
|
||||
{{ end }}
|
||||
|
||||
{{ with (.GetTerms "tags") }}
|
||||
{{ $tags := slice }}
|
||||
{{ range . }}
|
||||
{{ $tags = $tags | append .LinkTitle }}
|
||||
{{ end }}
|
||||
<meta itemprop="keywords" content="{{ delimit $tags ", " }}">
|
||||
{{ with .Params.tags }}
|
||||
<meta itemprop="keywords" content="{{ delimit . ", " }}">
|
||||
{{ end }}
|
||||
|
@ -1,10 +1,6 @@
|
||||
<header class="header">
|
||||
<h1>
|
||||
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||
{{ .Site.Title | markdownify }}
|
||||
</a>
|
||||
<h1 class="header">
|
||||
<a href="{{ .Site.Home.Permalink | absLangURL }}">{{ .Site.Title | markdownify }}</a>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<div class="topbar">
|
||||
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
||||
|
@ -4,13 +4,13 @@
|
||||
{{ .Title | markdownify }}
|
||||
</h1>
|
||||
|
||||
<div class="series-taxonomy-list">
|
||||
<div class="series-taxonomy">
|
||||
{{ with .Pages }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<article class="series-taxonomy">
|
||||
{{ .Render "summary/series" }}
|
||||
</article>
|
||||
<li>{{ .Render "summary/series" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
|
@ -13,9 +13,10 @@
|
||||
|
||||
<div class="taxonomy-list">
|
||||
{{ with .Data.Terms.Alphabetical }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
{{ with .Page }}
|
||||
<article class="taxonomy-term">
|
||||
<li>
|
||||
<div class="taxonomy-list-left">
|
||||
<a href="{{ .Permalink }}">
|
||||
<p>{{ .Title | markdownify }}</p>
|
||||
@ -23,9 +24,10 @@
|
||||
{{ partial "post-metadata/taxonomy.html" . }}
|
||||
</div>
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</article>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
|
Reference in New Issue
Block a user