mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-09-14 06:55:16 -05:00
Compare commits
3 Commits
master
...
1f4a06569d
Author | SHA1 | Date | |
---|---|---|---|
1f4a06569d
|
|||
5590019c74
|
|||
90ead0daea
|
@@ -174,6 +174,30 @@ video {
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
figure > .figure-media {
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
figure > .figure-media.border {
|
||||||
|
border: 2px solid var(--figure-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-media > figure > .figure-media {
|
||||||
|
border: 7px solid var(--figure-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
figure {
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
figcaption {
|
||||||
|
font-style: italic;
|
||||||
|
font-size: small;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--link-0);
|
color: var(--link-0);
|
||||||
text-decoration: inherit;
|
text-decoration: inherit;
|
||||||
@@ -420,26 +444,26 @@ body {
|
|||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* Summary card formatting {{{ */
|
/* List layout {{{ */
|
||||||
|
|
||||||
.summary-card {
|
.page-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
gap: 40px;
|
||||||
|
margin-top: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary {
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background-color: var(--background-1);
|
background-color: var(--background-1);
|
||||||
color: var(--text-1);
|
color: var(--text-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.summary-card-title {
|
.summary-title {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.summary-card-title a {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
.summary-card-title h1 {
|
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* hugo just can't handle this feature
|
/* hugo just can't handle this feature
|
||||||
@@ -450,6 +474,29 @@ body {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
.page-title,
|
||||||
|
.summary-title {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-title a,
|
||||||
|
.summary-title a {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-title h1,
|
||||||
|
.summary-title h1 {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-description {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-readmore {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.page-metadata {
|
.page-metadata {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
@@ -471,71 +518,9 @@ body {
|
|||||||
content: ",";
|
content: ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* for formatting of the featured image/media, see the .featured-media class */
|
.post-media {
|
||||||
|
|
||||||
.summary-card-description {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.summary-card-readmore {
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* Figures, and featured media component (used in page.html and summary-card) {{{ */
|
|
||||||
|
|
||||||
figure > .figure-media {
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
figure > .figure-media.border {
|
|
||||||
border: 2px solid var(--figure-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
figure {
|
|
||||||
display: block;
|
|
||||||
text-align: center;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
figcaption {
|
|
||||||
font-style: italic;
|
|
||||||
font-size: small;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.featured-media {
|
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
.featured-media > figure > .figure-media {
|
|
||||||
border: 7px solid var(--figure-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* List layout {{{ */
|
|
||||||
|
|
||||||
.page-list {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
list-style: none;
|
|
||||||
padding: 0;
|
|
||||||
gap: 40px;
|
|
||||||
margin-top: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-title {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-title a {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-title h1 {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
@@ -589,11 +574,7 @@ figcaption {
|
|||||||
|
|
||||||
/* Series list layout {{{ */
|
/* Series list layout {{{ */
|
||||||
|
|
||||||
.page-list--series {
|
.page-list-series-inner {
|
||||||
gap: 80px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-list--series-inner {
|
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
@@ -602,7 +583,7 @@ figcaption {
|
|||||||
padding: 8px;
|
padding: 8px;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
}
|
}
|
||||||
.page-list--series-inner > .summary-card {
|
.page-list-series-inner > .summary {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 49%;
|
min-width: 49%;
|
||||||
}
|
}
|
||||||
@@ -784,20 +765,20 @@ figcaption {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
.related-posts > hr,
|
.related-posts > hr,
|
||||||
.related-posts > h2 {
|
.related-posts > h1 {
|
||||||
margin: var(--page-margin);
|
margin: var(--page-margin);
|
||||||
}
|
}
|
||||||
|
|
||||||
.related-posts .summary-card {
|
.related-posts .page {
|
||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.related-posts .summary-card:first-child {
|
.related-posts .page:first-child {
|
||||||
margin-left: var(--page-margin);
|
margin-left: var(--page-margin);
|
||||||
}
|
}
|
||||||
.related-posts .summary-card:last-child {
|
.related-posts .page:last-child {
|
||||||
margin-right: var(--page-margin);
|
margin-right: var(--page-margin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -48,8 +48,6 @@ post_count:
|
|||||||
# Navigation
|
# Navigation
|
||||||
read_more:
|
read_more:
|
||||||
other: "Read more"
|
other: "Read more"
|
||||||
see_posts:
|
|
||||||
other: "See posts"
|
|
||||||
|
|
||||||
related_posts:
|
related_posts:
|
||||||
other: "Related Posts"
|
other: "Related Posts"
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{{ with .Resources.Get "feature" }}
|
{{ with .Resources.Get "feature" }}
|
||||||
<div class="featured-media">
|
<div class="post-media">
|
||||||
<figure>
|
<figure>
|
||||||
{{ partial "embed-resource.html" . }}
|
{{ partial "embed-resource.html" . }}
|
||||||
{{ with .Title }}
|
{{ with .Title }}
|
@@ -1,5 +1,16 @@
|
|||||||
<div class="page-list">
|
{{ $list := dict }}
|
||||||
{{ with . }}
|
{{ $extraclasses := "" }}
|
||||||
|
{{ with try (index . "list") }}
|
||||||
|
{{ if .Err }}
|
||||||
|
{{ $list = $ }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $list = .Value }}
|
||||||
|
{{ $extraclasses = index $ "classes" }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="page-list{{ with $extraclasses }}{{ . }}{{ end }}">
|
||||||
|
{{ with $list }}
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<article class="summary-card">
|
<article class="summary">
|
||||||
<h2 class="summary-card-title">
|
<h2 class="summary-title">
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
</h2>
|
</h2>
|
||||||
@@ -7,12 +7,12 @@
|
|||||||
{{ partial "page-metadata/author.html" . }}
|
{{ partial "page-metadata/author.html" . }}
|
||||||
|
|
||||||
{{ with .Summary }}
|
{{ with .Summary }}
|
||||||
<div class="summary-card-description">
|
<div class="summary-description">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="summary-card-readmore">
|
<div class="summary-readmore">
|
||||||
<a href="{{ .Permalink }}">{{ i18n "see_posts" }} →</a>
|
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
@@ -8,15 +8,5 @@
|
|||||||
{{ . }}
|
{{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="page-list">
|
{{ partial "page-list.html" .Paginator.Pages }}
|
||||||
{{ with .Paginator.Pages }}
|
|
||||||
{{ range . }}
|
|
||||||
{{ .Render "summary" }}
|
|
||||||
{{ end }}
|
|
||||||
{{ else }}
|
|
||||||
<div>
|
|
||||||
{{ i18n "no_posts" }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "featured-media.html" . }}
|
{{ partial "feature-figure.html" . }}
|
||||||
|
|
||||||
<div class="post-content" data-pagefind-body>
|
<div class="post-content" data-pagefind-body>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
{{ with $related }}
|
{{ with $related }}
|
||||||
<div class="related-posts">
|
<div class="related-posts">
|
||||||
<hr>
|
<hr>
|
||||||
<h2>{{ i18n "related_posts" }}</h2>
|
<h1>{{ i18n "related_posts" }}</h1>
|
||||||
{{ partial "page-list.html" . }}
|
{{ partial "page-list.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
|
User-Agent: *
|
||||||
|
Sitemap: {{ "sitemap.xml" | absLangURL }}
|
||||||
|
|
||||||
{{/* It complains about the raw markdown output having no title tag */ -}}
|
{{/* It complains about the raw markdown output having no title tag */ -}}
|
||||||
User-Agent: Bingbot
|
User-Agent: Bingbot
|
||||||
Disallow: /blog/*.md$
|
Disallow: /blog/*.md$
|
||||||
|
|
||||||
User-Agent: *
|
|
||||||
Allow: /
|
|
||||||
|
|
||||||
Sitemap: {{ "sitemap.xml" | absLangURL }}
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<article class="summary-card">
|
<article class="summary">
|
||||||
<h2 class="summary-card-title">
|
<h2 class="summary-title">
|
||||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
@@ -8,14 +8,12 @@
|
|||||||
{{ partial "page-metadata/series.html" . }}
|
{{ partial "page-metadata/series.html" . }}
|
||||||
|
|
||||||
{{ with .Summary }}
|
{{ with .Summary }}
|
||||||
<div class="summary-card-description">
|
<div class="summary-description">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="page-list page-list--series-inner">
|
<div class="page-list page-list-series-inner">
|
||||||
{{ range .Data.Pages.Reverse }}
|
{{ partial "page-list.html" .Data.Pages.Reverse }}
|
||||||
{{ .Render "summary" }}
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
@@ -10,10 +10,12 @@
|
|||||||
{{ . }}
|
{{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="page-list page-list--series">
|
<div class="page-list series">
|
||||||
{{ with .Paginator.Pages }}
|
{{ with .Paginator.Pages }}
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
|
<div class="page series">
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<article class="summary-card">
|
<article class="summary">
|
||||||
<h2 class="summary-card-title">
|
<h2 class="summary-title">
|
||||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
@@ -7,15 +7,15 @@
|
|||||||
|
|
||||||
{{ partial "page-metadata/post-short.html" . }}
|
{{ partial "page-metadata/post-short.html" . }}
|
||||||
|
|
||||||
{{ partial "featured-media.html" . }}
|
{{ partial "feature-figure.html" . }}
|
||||||
|
|
||||||
{{ with .Summary }}
|
{{ with .Summary }}
|
||||||
<div class="summary-card-description">
|
<div class="summary-description">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="summary-card-readmore">
|
<div class="summary-readmore">
|
||||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
Reference in New Issue
Block a user