mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-09-04 10:27:34 -05:00
Compare commits
7 Commits
f35a286d34
...
semantic-h
Author | SHA1 | Date | |
---|---|---|---|
0790ed94b9
|
|||
c7c1ee0f0a
|
|||
d90f64fb86
|
|||
20f22b7926
|
|||
267652a7e4
|
|||
310961215e
|
|||
741b3bc01b
|
@@ -293,40 +293,22 @@ 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 {
|
.main-container {
|
||||||
width: 100%; /* without, it collapses inside flexbox for some reason TODO: figure out why */
|
margin: var(--page-margin) auto;
|
||||||
|
/* use padding because otherwise there's no way to have margin be both auto, and a minimum value */
|
||||||
|
padding: 0 var(--page-margin);
|
||||||
|
max-width: calc(720px + 2 * var(--page-margin)); /* padding is included in the element's width */
|
||||||
}
|
}
|
||||||
|
|
||||||
.body-module--marginless {
|
.site-footer {
|
||||||
margin: 0;
|
margin: var(--page-margin) 0;
|
||||||
}
|
|
||||||
|
|
||||||
.body-module--full-width {
|
|
||||||
margin: 0 var(--page-margin);
|
|
||||||
/*
|
|
||||||
margin-left: var(--page-margin);
|
|
||||||
margin-right: var(--page-margin);
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
.body-module--wide {
|
|
||||||
margin-left: var(--page-margin);
|
|
||||||
margin-right: var(--page-margin);
|
|
||||||
max-width: 720px;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
|
||||||
margin-bottom: var(--page-margin);
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer p {
|
.site-footer p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -394,6 +376,10 @@ footer p {
|
|||||||
|
|
||||||
/* Breadcrumb navigation {{{ */
|
/* Breadcrumb navigation {{{ */
|
||||||
|
|
||||||
|
.breadcrumb {
|
||||||
|
margin: var(--page-margin) 0;
|
||||||
|
}
|
||||||
|
|
||||||
.breadcrumb ul {
|
.breadcrumb ul {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<nav class="body-module body-module--wide breadcrumb" aria-label="{{ i18n "aria_breadcrumbnav" }}">
|
<nav class="breadcrumb" aria-label="{{ i18n "aria_breadcrumbnav" }}">
|
||||||
<ul>
|
<ul>
|
||||||
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
||||||
</ul>
|
</ul>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{{ if or .Date .Params.authors .Site.Params.readingtime .Site.Params.gitFileURL }}
|
{{ if or .Date .Params.authors .Site.Params.readingtime .Site.Params.gitFileURL }}
|
||||||
<div class="page-metadata" aria-label="{{ i18n "aria_post_metadata" }}">
|
<section class="page-metadata" aria-label="{{ i18n "aria_post_metadata" }}">
|
||||||
{{ if .Date }}
|
{{ if .Date }}
|
||||||
<span class="page-metadata-item" aria-label="{{ i18n "aria_post_meta_date" }}">
|
<span class="page-metadata-item" aria-label="{{ i18n "aria_post_meta_date" }}">
|
||||||
{{ partial "icon.html" "calendar" }}
|
{{ partial "icon.html" "calendar" }}
|
||||||
@@ -26,5 +26,5 @@
|
|||||||
{{ partial "page-metadata/item/categories.html" . }}
|
{{ partial "page-metadata/item/categories.html" . }}
|
||||||
|
|
||||||
{{ partial "page-metadata/item/tags.html" . }}
|
{{ partial "page-metadata/item/tags.html" . }}
|
||||||
</div>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{{ if or .Date .Params.authors .Site.Params.readingtime }}
|
{{ if or .Date .Params.authors .Site.Params.readingtime }}
|
||||||
<div class="page-metadata" aria-label="{{ i18n "aria_post_metadata" }}">
|
<section class="page-metadata" aria-label="{{ i18n "aria_post_metadata" }}">
|
||||||
{{ if .Date }}
|
{{ if .Date }}
|
||||||
<span class="page-metadata-item" aria-label="date">
|
<span class="page-metadata-item" aria-label="date">
|
||||||
{{ partial "icon.html" "calendar" }}
|
{{ partial "icon.html" "calendar" }}
|
||||||
@@ -14,5 +14,5 @@
|
|||||||
{{ partial "page-metadata/item/series.html" . }}
|
{{ partial "page-metadata/item/series.html" . }}
|
||||||
{{ partial "page-metadata/item/categories.html" . }}
|
{{ partial "page-metadata/item/categories.html" . }}
|
||||||
{{ partial "page-metadata/item/tags.html" . }}
|
{{ partial "page-metadata/item/tags.html" . }}
|
||||||
</div>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<div class="share-buttons">
|
<section class="share-buttons">
|
||||||
{{ if .Site.Params.shareButtons.twitter }}
|
{{ if .Site.Params.shareButtons.twitter }}
|
||||||
<a class="twitter-share"
|
<a class="twitter-share"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@@ -66,4 +66,4 @@
|
|||||||
{{- partial "icon.html" "printer" -}}
|
{{- partial "icon.html" "printer" -}}
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</section>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<header class="body-module body-module--marginless top">
|
<header class="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,24 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<h1>
|
|
||||||
{{ partial "icon.html" "user-circle" }}
|
|
||||||
{{ .Title | markdownify }}
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
{{ with .Content }}
|
|
||||||
{{ . }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<div class="page-list">
|
|
||||||
{{ with .Paginator.Pages }}
|
|
||||||
{{ range . }}
|
|
||||||
<article class="page">
|
|
||||||
{{ .Render "summary" }}
|
|
||||||
</article>
|
|
||||||
{{ end }}
|
|
||||||
{{ else }}
|
|
||||||
<div>
|
|
||||||
{{ i18n "no_posts" }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
30
layouts/authors/taxonomy.html
Normal file
30
layouts/authors/taxonomy.html
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<section>
|
||||||
|
{{ if .Content }}<article>{{ end }}
|
||||||
|
|
||||||
|
<h1>
|
||||||
|
{{ partial "icon.html" "user-circle" }}
|
||||||
|
{{ .Title | markdownify }}
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
{{ with .Content }}
|
||||||
|
{{ . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .Content }}</article>{{ end }}
|
||||||
|
|
||||||
|
<section class="page-list">
|
||||||
|
{{ with .Paginator.Pages }}
|
||||||
|
{{ range . }}
|
||||||
|
<article class="page">
|
||||||
|
{{ .Render "summary" }}
|
||||||
|
</article>
|
||||||
|
{{ end }}
|
||||||
|
{{ else }}
|
||||||
|
<div>
|
||||||
|
{{ i18n "no_posts" }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
@@ -8,12 +8,11 @@
|
|||||||
|
|
||||||
{{ partial "top.html" . }}
|
{{ partial "top.html" . }}
|
||||||
|
|
||||||
|
<div class="main-container">
|
||||||
{{ if not .IsHome }}
|
{{ if not .IsHome }}
|
||||||
{{ partial "breadcrumb.html" . }}
|
{{ partial "breadcrumb.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ block "pre-body" . }}{{ end }}
|
|
||||||
|
|
||||||
<main id="main-content">
|
<main id="main-content">
|
||||||
{{ block "main" . }}
|
{{ block "main" . }}
|
||||||
THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it)
|
THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it)
|
||||||
@@ -21,7 +20,7 @@
|
|||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{ if or .Site.Copyright .Site.Params.footer }}
|
{{ if or .Site.Copyright .Site.Params.footer }}
|
||||||
<footer class="body-module body-module--wide">
|
<footer class="site-footer">
|
||||||
{{ with .Site.Copyright }}
|
{{ with .Site.Copyright }}
|
||||||
{{ . | safeHTML }}
|
{{ . | safeHTML }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -31,6 +30,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ block "post-body" . }}
|
{{ block "post-body" . }}
|
||||||
{{/* currently this is only used for related posts */}}
|
{{/* currently this is only used for related posts */}}
|
||||||
|
@@ -1,13 +1,13 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
<article class="body-module body-module--wide">
|
<article class="homepage-content">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</article>
|
</article>
|
||||||
<hr class="body-module body-module--wide">
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.homepageLatestPosts }}
|
{{ if .Site.Params.homepageLatestPosts }}
|
||||||
<div class="body-module body-module--wide">
|
<hr>
|
||||||
|
<section class="homepage-latest-posts">
|
||||||
<h1>
|
<h1>
|
||||||
{{ i18n "latest_posts" }}
|
{{ i18n "latest_posts" }}
|
||||||
{{ partial "rss-link.html" . }}
|
{{ partial "rss-link.html" . }}
|
||||||
@@ -16,6 +16,6 @@
|
|||||||
{{ partial "page-list.html" (.Paginate .Site.RegularPages).Pages }}
|
{{ partial "page-list.html" (.Paginate .Site.RegularPages).Pages }}
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
</div>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<article class="body-module body-module--wide">
|
<article>
|
||||||
<div class="page-title">
|
<div class="page-title">
|
||||||
<h1>
|
<h1>
|
||||||
{{ .Title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
@@ -11,12 +11,12 @@
|
|||||||
{{ partial "series-box.html" . }}
|
{{ partial "series-box.html" . }}
|
||||||
|
|
||||||
{{ if .Params.Toc }}
|
{{ if .Params.Toc }}
|
||||||
<div class="table-of-contents" aria-label="{{ i18n "aria_table_of_contents" }}">
|
<section class="table-of-contents" aria-label="{{ i18n "aria_table_of_contents" }}">
|
||||||
<details>
|
<details>
|
||||||
<summary>{{ i18n "table_of_contents" }}</summary>
|
<summary>{{ i18n "table_of_contents" }}</summary>
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
</details>
|
</details>
|
||||||
</div>
|
</section>
|
||||||
<div class="table-of-contents print">
|
<div class="table-of-contents print">
|
||||||
{{ i18n "table_of_contents" }}
|
{{ i18n "table_of_contents" }}
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
@@ -25,14 +25,14 @@
|
|||||||
|
|
||||||
{{ partial "feature-figure.html" . }}
|
{{ partial "feature-figure.html" . }}
|
||||||
|
|
||||||
<article class="post-content" data-pagefind-body>
|
<div class="post-content" data-pagefind-body>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</article>
|
</div>
|
||||||
|
|
||||||
{{ partial "series-box.html" . }}
|
{{ partial "series-box.html" . }}
|
||||||
|
|
||||||
{{ if or .NextInSection .PrevInSection }}
|
{{ if or .NextInSection .PrevInSection }}
|
||||||
<div class="prevnext">
|
<nav class="prevnext">
|
||||||
{{ with .NextInSection }}
|
{{ with .NextInSection }}
|
||||||
<a class="prev" href="{{ .Permalink }}">
|
<a class="prev" href="{{ .Permalink }}">
|
||||||
<div class="prev-caption">
|
<div class="prev-caption">
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
<div class="next"></div>
|
<div class="next"></div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</nav>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.shareButtons }}
|
{{ if .Site.Params.shareButtons }}
|
||||||
@@ -66,10 +66,11 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Params.comments }}
|
{{ if .Params.comments }}
|
||||||
<div class="comments">
|
<section class="comments">
|
||||||
{{ partial "comments.html" . }}
|
{{ partial "comments.html" . }}
|
||||||
</div>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
@@ -82,5 +83,4 @@
|
|||||||
{{ partial "page-list.html" . }}
|
{{ partial "page-list.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,2 +1,6 @@
|
|||||||
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$
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<section>
|
||||||
<h1>
|
<h1>
|
||||||
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||||
{{ .Title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
@@ -22,4 +23,5 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,8 +1,10 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<div class="page-title">
|
||||||
<h1>
|
<h1>
|
||||||
{{ partial "icon.html" "files" }}
|
{{ partial "icon.html" "files" }}
|
||||||
{{ .Title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
</h1>
|
</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
{{ . }}
|
{{ . }}
|
Reference in New Issue
Block a user