mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-09-04 02:17:34 -05:00
Compare commits
17 Commits
f35a286d34
...
page-list-
Author | SHA1 | Date | |
---|---|---|---|
9b2509c0d5
|
|||
c02ceb2dc4
|
|||
8e22007bfd
|
|||
1ee8d314c0
|
|||
22fdeadf78
|
|||
6251b033d5
|
|||
37dbdc53af
|
|||
ef91527ed6
|
|||
4bc8184593
|
|||
22e7ad4b77
|
|||
c2b10a6c99
|
|||
c7c1ee0f0a
|
|||
d90f64fb86
|
|||
20f22b7926
|
|||
267652a7e4
|
|||
310961215e
|
|||
741b3bc01b
|
@@ -174,30 +174,6 @@ 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;
|
||||||
@@ -293,40 +269,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -358,7 +316,7 @@ footer p {
|
|||||||
* or it will need its hover background to be chopped off on the left */
|
* or it will need its hover background to be chopped off on the left */
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand {
|
.top-brand {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
margin: 8px var(--page-margin);
|
margin: 8px var(--page-margin);
|
||||||
font-size: 1.25em;
|
font-size: 1.25em;
|
||||||
@@ -366,27 +324,27 @@ footer p {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand a {
|
.top-brand > a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar {
|
.top-navbar {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-item {
|
.top-navbar-item {
|
||||||
padding: 12px var(--page-margin);
|
padding: 12px var(--page-margin);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-item:hover {
|
.top-navbar-item:hover {
|
||||||
background-color: var(--background-2);
|
background-color: var(--background-2);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-item.active {
|
.top-navbar-item--active {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -394,6 +352,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;
|
||||||
@@ -458,33 +420,26 @@ footer p {
|
|||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* List layout {{{ */
|
/* Summary card formatting {{{ */
|
||||||
|
|
||||||
/* flexbox container for sections and main page list */
|
.summary-card {
|
||||||
.list-page-container {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-list {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
list-style: none;
|
|
||||||
padding: 0;
|
|
||||||
gap: 40px;
|
|
||||||
margin-top: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-list > .page {
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
.page > .page-title {
|
.summary-card-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
|
||||||
@@ -495,18 +450,6 @@ footer p {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.page-title {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-title a {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-title h1 {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-metadata {
|
.page-metadata {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
@@ -528,20 +471,74 @@ footer p {
|
|||||||
content: ",";
|
content: ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-media {
|
/* for formatting of the featured image/media, see the .featured-media class */
|
||||||
margin-top: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-description {
|
.summary-card-description {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.readmore {
|
.summary-card-readmore {
|
||||||
margin-top: 5px;
|
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;
|
||||||
|
}
|
||||||
|
.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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* }}} */
|
||||||
|
|
||||||
/* Taxonomy list layout {{{ */
|
/* Taxonomy list layout {{{ */
|
||||||
|
|
||||||
.taxonomy-list a,
|
.taxonomy-list a,
|
||||||
@@ -592,17 +589,11 @@ footer p {
|
|||||||
|
|
||||||
/* Series list layout {{{ */
|
/* Series list layout {{{ */
|
||||||
|
|
||||||
.page-list.series {
|
.page-list--series {
|
||||||
display: flex;
|
|
||||||
gap: 80px;
|
gap: 80px;
|
||||||
flex-flow: row wrap;
|
|
||||||
list-style: none;
|
|
||||||
color: var(--text-0);
|
|
||||||
padding: 8px;
|
|
||||||
border-radius: 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-list.series-inner {
|
.page-list--series-inner {
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
@@ -611,7 +602,7 @@ footer p {
|
|||||||
padding: 8px;
|
padding: 8px;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
}
|
}
|
||||||
.page-list.series-inner > .page {
|
.page-list--series-inner > .summary-card {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 49%;
|
min-width: 49%;
|
||||||
}
|
}
|
||||||
@@ -621,6 +612,7 @@ footer p {
|
|||||||
/* Subsections on list pages {{{ */
|
/* Subsections on list pages {{{ */
|
||||||
|
|
||||||
.sections {
|
.sections {
|
||||||
|
margin-bottom: 60px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
@@ -631,6 +623,9 @@ footer p {
|
|||||||
color: var(--text-1);
|
color: var(--text-1);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
padding: 1px 25px;
|
padding: 1px 25px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section:hover {
|
.section:hover {
|
||||||
@@ -654,6 +649,16 @@ footer p {
|
|||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.section-arrow {
|
||||||
|
margin-block: auto;
|
||||||
|
max-height: fit-content;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.section-arrow > .icon {
|
||||||
|
height: 48px;
|
||||||
|
width: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
|
||||||
@@ -783,16 +788,16 @@ footer p {
|
|||||||
margin: var(--page-margin);
|
margin: var(--page-margin);
|
||||||
}
|
}
|
||||||
|
|
||||||
.related-posts .page {
|
.related-posts .summary-card {
|
||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.related-posts .page:first-child {
|
.related-posts .summary-card:first-child {
|
||||||
margin-left: var(--page-margin);
|
margin-left: var(--page-margin);
|
||||||
}
|
}
|
||||||
.related-posts .page:last-child {
|
.related-posts .summary-card:last-child {
|
||||||
margin-right: var(--page-margin);
|
margin-right: var(--page-margin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -48,6 +48,8 @@ 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,4 +0,0 @@
|
|||||||
{{/*
|
|
||||||
Create a file named `layouts/partials/additional-head.html` at your site root to
|
|
||||||
add extra tags into <head>. Page variables are passed.
|
|
||||||
*/}}
|
|
@@ -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 @@
|
|||||||
{{ with .Resources.Get "feature" }}
|
{{ with .Resources.Get "feature" }}
|
||||||
<div class="post-media">
|
<div class="featured-media">
|
||||||
<figure>
|
<figure>
|
||||||
{{ partial "embed-resource.html" . }}
|
{{ partial "embed-resource.html" . }}
|
||||||
{{ with .Title }}
|
{{ with .Title }}
|
@@ -1,9 +1,7 @@
|
|||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
{{ with . }}
|
{{ with . }}
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
<article class="page">
|
{{ .Render "summary" }}
|
||||||
{{ .Render "summary" }}
|
|
||||||
</article>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
|
@@ -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,13 +1,13 @@
|
|||||||
<header class="body-module body-module--marginless top">
|
<header class="top">
|
||||||
<div class="brand">
|
<div class="top-brand">
|
||||||
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||||
{{ .Site.Title | markdownify }}
|
{{ .Site.Title | markdownify }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
<nav class="top-navbar" aria-label="{{ i18n "aria_navbar" }}">
|
||||||
{{ with .Site.Home }}
|
{{ with .Site.Home }}
|
||||||
<a class="navbar-item{{ if $.IsHome }} active{{ end }}" href="{{ .Permalink | absLangURL }}">{{ .Title | markdownify }}</a>
|
<a class="top-navbar-item{{ if $.IsHome }} top-navbar-item--active{{ end }}" href="{{ .Permalink | absLangURL }}">{{ .Title | markdownify }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
{{ if or ($.HasMenuCurrent .Menu .) (eq .Page $) }}
|
{{ if or ($.HasMenuCurrent .Menu .) (eq .Page $) }}
|
||||||
{{ $isActive = true }}
|
{{ $isActive = true }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<a class="navbar-item{{ if $isActive }} active{{ end }}"
|
<a class="top-navbar-item{{ if $isActive }} top-navbar-item--active{{ end }}"
|
||||||
{{ if strings.HasPrefix .URL "http" }}target="_blank" rel="noopener"{{ end }}
|
{{ if strings.HasPrefix .URL "http" }}target="_blank" rel="noopener"{{ end }}
|
||||||
href="{{ .URL }}">{{ .Name }}</a>
|
href="{{ .URL }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,16 +1,18 @@
|
|||||||
<h2 class="page-title">
|
<article class="summary-card">
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<h2 class="summary-card-title">
|
||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
</h2>
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
|
</h2>
|
||||||
|
|
||||||
{{ partial "page-metadata/author.html" . }}
|
{{ partial "page-metadata/author.html" . }}
|
||||||
|
|
||||||
{{ with .Summary }}
|
{{ with .Summary }}
|
||||||
<div class="page-description">
|
<div class="summary-card-description">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="summary-card-readmore">
|
||||||
|
<a href="{{ .Permalink }}">{{ i18n "see_posts" }} →</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
</article>
|
||||||
|
|
||||||
<div class="readmore">
|
|
||||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
|
||||||
</div>
|
|
||||||
|
@@ -11,9 +11,7 @@
|
|||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
{{ with .Paginator.Pages }}
|
{{ with .Paginator.Pages }}
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
<article class="page">
|
{{ .Render "summary" }}
|
||||||
{{ .Render "summary" }}
|
|
||||||
</article>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
@@ -8,29 +8,29 @@
|
|||||||
|
|
||||||
{{ partial "top.html" . }}
|
{{ partial "top.html" . }}
|
||||||
|
|
||||||
{{ if not .IsHome }}
|
<div class="main-container">
|
||||||
{{ partial "breadcrumb.html" . }}
|
{{ if not .IsHome }}
|
||||||
{{ end }}
|
{{ partial "breadcrumb.html" . }}
|
||||||
|
|
||||||
{{ block "pre-body" . }}{{ end }}
|
|
||||||
|
|
||||||
<main id="main-content">
|
|
||||||
{{ block "main" . }}
|
|
||||||
THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it)
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</main>
|
|
||||||
|
|
||||||
{{ if or .Site.Copyright .Site.Params.footer }}
|
<main id="main-content">
|
||||||
<footer class="body-module body-module--wide">
|
{{ block "main" . }}
|
||||||
{{ with .Site.Copyright }}
|
THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it)
|
||||||
{{ . | safeHTML }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</main>
|
||||||
|
|
||||||
{{ with .Site.Params.footer }}
|
{{ if or .Site.Copyright .Site.Params.footer }}
|
||||||
{{ . | $.RenderString (dict "display" "block") }}
|
<footer class="site-footer">
|
||||||
{{ end }}
|
{{ with .Site.Copyright }}
|
||||||
</footer>
|
{{ . | safeHTML }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with .Site.Params.footer }}
|
||||||
|
{{ . | $.RenderString (dict "display" "block") }}
|
||||||
|
{{ end }}
|
||||||
|
</footer>
|
||||||
|
{{ 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,28 +11,28 @@
|
|||||||
{{ 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 }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "feature-figure.html" . }}
|
{{ partial "featured-media.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,21 +66,21 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Params.comments }}
|
{{ if .Params.comments }}
|
||||||
<div class="comments">
|
<section class="comments">
|
||||||
{{ partial "comments.html" . }}
|
{{ partial "comments.html" . }}
|
||||||
</div>
|
</section>
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "post-body" }}
|
|
||||||
{{ $related := .Site.RegularPages.Related . | first 10 }}
|
|
||||||
{{ with $related }}
|
|
||||||
<div class="related-posts">
|
|
||||||
<hr>
|
|
||||||
<h1>{{ i18n "related_posts" }}</h1>
|
|
||||||
{{ partial "page-list.html" . }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{ define "post-body" }}
|
||||||
|
{{ $related := .Site.RegularPages.Related . | first 10 }}
|
||||||
|
{{ with $related }}
|
||||||
|
<div class="related-posts">
|
||||||
|
<hr>
|
||||||
|
<h1>{{ i18n "related_posts" }}</h1>
|
||||||
|
{{ partial "page-list.html" . }}
|
||||||
|
</div>
|
||||||
|
{{ 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$
|
||||||
|
@@ -9,17 +9,15 @@
|
|||||||
{{ . }}
|
{{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="list-page-container">
|
{{ with .Sections }}
|
||||||
{{ with .Sections }}
|
<div class="sections">
|
||||||
<div class="sections">
|
{{ range . }}
|
||||||
{{ range . }}
|
{{ .Render "summary" }}
|
||||||
{{ .Render "summary" }}
|
{{ end }}
|
||||||
{{ end }}
|
</div>
|
||||||
</div>
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ partial "page-list.html" .Paginator.Pages }}
|
{{ partial "page-list.html" .Paginator.Pages }}
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,14 +1,20 @@
|
|||||||
<a class="section-anchor" href="{{ .Permalink }}">
|
<a class="section-anchor" href="{{ .Permalink }}">
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h2 class="section-title">
|
<div>
|
||||||
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
<h2 class="section-title">
|
||||||
{{ .Title | markdownify }}
|
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||||
</h2>
|
{{ .Title | markdownify }}
|
||||||
|
</h2>
|
||||||
|
|
||||||
{{ with .Summary }}
|
{{ with .Summary }}
|
||||||
<div class="section-description">
|
<div class="section-description">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section-arrow">
|
||||||
|
{{ partial "icon.html" "arrow-right" }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
@@ -1,21 +1,21 @@
|
|||||||
<h2 class="page-title">
|
<article class="summary-card">
|
||||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
<h2 class="summary-card-title">
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
</h2>
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
|
</h2>
|
||||||
|
|
||||||
{{ partial "page-metadata/series.html" . }}
|
{{ partial "page-metadata/series.html" . }}
|
||||||
|
|
||||||
{{ with .Summary }}
|
{{ with .Summary }}
|
||||||
<div class="page-description">
|
<div class="summary-card-description">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<div class="page-list series-inner">
|
|
||||||
{{ range .Data.Pages.Reverse }}
|
|
||||||
<article class="page">
|
|
||||||
{{ .Render "summary" }}
|
|
||||||
</article>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
|
||||||
|
<div class="page-list page-list--series-inner">
|
||||||
|
{{ range .Data.Pages.Reverse }}
|
||||||
|
{{ .Render "summary" }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
@@ -1,19 +1,19 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h1>
|
<div class="page-title">
|
||||||
{{ partial "icon.html" "files" }}
|
<h1>
|
||||||
{{ .Title | markdownify }}
|
{{ partial "icon.html" "files" }}
|
||||||
</h1>
|
{{ .Title | markdownify }}
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
{{ . }}
|
{{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="page-list series">
|
<div class="page-list 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,19 +1,21 @@
|
|||||||
<h2 class="page-title">
|
<article class="summary-card">
|
||||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
<h2 class="summary-card-title">
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
</h2>
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
|
</h2>
|
||||||
|
|
||||||
{{ partial "page-metadata/post-short.html" . }}
|
{{ partial "page-metadata/post-short.html" . }}
|
||||||
|
|
||||||
{{ partial "feature-figure.html" . }}
|
{{ partial "featured-media.html" . }}
|
||||||
|
|
||||||
{{ with .Summary }}
|
{{ with .Summary }}
|
||||||
<div class="page-description">
|
<div class="summary-card-description">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="summary-card-readmore">
|
||||||
|
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
</article>
|
||||||
|
|
||||||
<div class="readmore">
|
|
||||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
|
||||||
</div>
|
|
||||||
|
Reference in New Issue
Block a user