mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-14 10:27:29 -05:00
Compare commits
13 Commits
breadcrumb
...
fb40c8a4c3
Author | SHA1 | Date | |
---|---|---|---|
fb40c8a4c3
|
|||
0c248a4ca5
|
|||
56d8a07893
|
|||
8aab2ca693
|
|||
e46288dc45
|
|||
637ffc12f5
|
|||
2a40664bb6
|
|||
e34d2109ec
|
|||
54f89dad51
|
|||
04b5017279
|
|||
a65a435b1d
|
|||
73dc916d5a
|
|||
e8be3ae45b
|
@ -123,8 +123,8 @@
|
|||||||
gap: 40px;
|
gap: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-list ul,
|
.page-list,
|
||||||
.series-taxonomy ul {
|
.series-taxonomy-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@ -132,12 +132,13 @@
|
|||||||
gap: 40px;
|
gap: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.series-taxonomy ul {
|
.series-taxonomy-list {
|
||||||
gap: 80px;
|
gap: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-list li,
|
.page-list .post,
|
||||||
.series-taxonomy li {
|
.series-taxonomy-list .series-taxonomy,
|
||||||
|
.series-taxonomy .post {
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
padding-left: 24px;
|
padding-left: 24px;
|
||||||
padding-right: 24px;
|
padding-right: 24px;
|
||||||
@ -158,6 +159,11 @@
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-title h1,
|
||||||
|
.author-name h1 {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.post-title a,
|
.post-title a,
|
||||||
.author-name a {
|
.author-name a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
@ -172,7 +178,7 @@
|
|||||||
|
|
||||||
.post-metadata,
|
.post-metadata,
|
||||||
.author-metadata {
|
.author-metadata {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.categories,
|
.categories,
|
||||||
@ -206,7 +212,7 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.taxonomy-list ul {
|
.taxonomy-list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -214,7 +220,7 @@
|
|||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.taxonomy-list li {
|
.taxonomy-list .taxonomy-term {
|
||||||
background-color: var(--background-1);
|
background-color: var(--background-1);
|
||||||
color: var(--text-1);
|
color: var(--text-1);
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
@ -230,7 +236,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
.taxonomy-list li {
|
.taxonomy-list .taxonomy-term {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
}
|
}
|
||||||
@ -244,7 +250,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Series list format */
|
/* Series list format */
|
||||||
.series-pages ul {
|
.series-page-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
@ -255,7 +261,7 @@
|
|||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.series-pages li {
|
.series-page-list .post {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 49%;
|
min-width: 49%;
|
||||||
}
|
}
|
||||||
@ -304,8 +310,13 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Header formatting (website title and article section headers) */
|
/* Header formatting (website title and article section headers) */
|
||||||
h1.header {
|
.header {
|
||||||
|
margin: 16px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header h1 {
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header a,
|
.header a,
|
||||||
@ -347,6 +358,7 @@ h1.header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Related posts */
|
/* Related posts */
|
||||||
.full-width-page-list {
|
.full-width-page-list {
|
||||||
/* make left/right 0 margin so it takes up full width */
|
/* make left/right 0 margin so it takes up full width */
|
||||||
@ -359,16 +371,16 @@ h1.header {
|
|||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.full-width-page-list li {
|
.full-width-page-list .post {
|
||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.full-width-page-list li:first-child {
|
.full-width-page-list .post:first-child {
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
.full-width-page-list li:last-child {
|
.full-width-page-list .post:last-child {
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -393,7 +405,7 @@ h1.header {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.full-width-page-list .page-list ul {
|
.full-width-page-list .page-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
@ -401,6 +413,7 @@ h1.header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Social media share buttons */
|
/* Social media share buttons */
|
||||||
.share-buttons {
|
.share-buttons {
|
||||||
background: var(--background-1);
|
background: var(--background-1);
|
||||||
@ -439,6 +452,7 @@ h1.header {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* See also formating */
|
/* See also formating */
|
||||||
.see-also {
|
.see-also {
|
||||||
background-color: var(--background-1);
|
background-color: var(--background-1);
|
||||||
@ -453,6 +467,7 @@ h1.header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Back to top */
|
/* Back to top */
|
||||||
#back-to-top {
|
#back-to-top {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@ -624,6 +639,14 @@ hr {
|
|||||||
border: 1px solid var(--background-3);
|
border: 1px solid var(--background-3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 720px) {
|
||||||
|
.full-width-hr {
|
||||||
|
/* see also: the related-posts section too */
|
||||||
|
margin-left: calc(-100vw / 2 + 760px / 2);
|
||||||
|
margin-right: calc(-100vw / 2 + 760px / 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
table.markdown {
|
table.markdown {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border: 2px solid var(--text-1);
|
border: 2px solid var(--text-1);
|
||||||
@ -648,6 +671,13 @@ table.markdown {
|
|||||||
color: var(--text-1);
|
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;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
@ -655,13 +685,21 @@ table.markdown {
|
|||||||
|
|
||||||
|
|
||||||
/* Code blocks */
|
/* Code blocks */
|
||||||
.highlight {
|
.highlight > .chroma {
|
||||||
margin: 16px 0;
|
margin: 16px 0;
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight > pre {
|
.chroma {
|
||||||
padding: 12px 8px;
|
background-color: var(--background-1) !important;
|
||||||
overflow: auto;
|
}
|
||||||
|
|
||||||
|
.chroma .gp {
|
||||||
|
/* Generic Prompt symbol */
|
||||||
|
user-select: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:not(pre) > code {
|
:not(pre) > code {
|
||||||
@ -790,46 +828,21 @@ li.disabled > .page-link:hover {
|
|||||||
|
|
||||||
|
|
||||||
/* Breadcrumb navigation */
|
/* Breadcrumb navigation */
|
||||||
.breadcrumb {
|
.breadcrumb ul {
|
||||||
margin: 16px 0;
|
margin: 30px 0 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.breadcrumb ul {
|
.breadcrumb ul {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
flex-grow: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.breadcrumb li {
|
.breadcrumb li {
|
||||||
display: inline;
|
display: inline;
|
||||||
padding: 8px;
|
|
||||||
background-color: var(--background-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.breadcrumb li:hover {
|
.breadcrumb li+li:before {
|
||||||
background-color: var(--background-2);
|
content: "»"
|
||||||
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,14 +1,21 @@
|
|||||||
|
/* tango style */
|
||||||
|
|
||||||
@media print, (prefers-color-scheme: light) {
|
@media print, (prefers-color-scheme: light) {
|
||||||
.chroma {
|
.chroma {
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Background */ .bg { background-color: #f8f8f8 }
|
||||||
|
/* PreWrapper */ .chroma { background-color: #f8f8f8; }
|
||||||
/* Other */ .chroma .x { color: #000000 }
|
/* Other */ .chroma .x { color: #000000 }
|
||||||
/* Error */ .chroma .err { color: #a40000 }
|
/* Error */ .chroma .err { color: #a40000 }
|
||||||
|
/* CodeLine */ .chroma .cl { }
|
||||||
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
||||||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
|
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
||||||
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc }
|
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
|
||||||
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||||
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||||
|
/* Line */ .chroma .line { display: flex; }
|
||||||
/* Keyword */ .chroma .k { color: #204a87; font-weight: bold }
|
/* Keyword */ .chroma .k { color: #204a87; font-weight: bold }
|
||||||
/* KeywordConstant */ .chroma .kc { color: #204a87; font-weight: bold }
|
/* KeywordConstant */ .chroma .kc { color: #204a87; font-weight: bold }
|
||||||
/* KeywordDeclaration */ .chroma .kd { color: #204a87; font-weight: bold }
|
/* KeywordDeclaration */ .chroma .kd { color: #204a87; font-weight: bold }
|
||||||
@ -83,6 +90,7 @@
|
|||||||
/* GenericTraceback */ .chroma .gt { color: #a40000; font-weight: bold }
|
/* GenericTraceback */ .chroma .gt { color: #a40000; font-weight: bold }
|
||||||
/* GenericUnderline */ .chroma .gl { color: #000000; text-decoration: underline }
|
/* GenericUnderline */ .chroma .gl { color: #000000; text-decoration: underline }
|
||||||
/* TextWhitespace */ .chroma .w { color: #f8f8f8; text-decoration: underline }
|
/* TextWhitespace */ .chroma .w { color: #f8f8f8; text-decoration: underline }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: light) {
|
@media (prefers-color-scheme: light) {
|
||||||
|
@ -1,11 +1,16 @@
|
|||||||
/* Background */ .chroma { color: #d0d0d0; background-color: #202020 }
|
/* native style */
|
||||||
|
|
||||||
|
/* Background */ .bg { color: #d0d0d0; background-color: #202020 }
|
||||||
|
/* PreWrapper */ .chroma { color: #d0d0d0; background-color: #202020; }
|
||||||
/* Other */ .chroma .x { }
|
/* Other */ .chroma .x { }
|
||||||
/* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 }
|
/* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 }
|
||||||
|
/* CodeLine */ .chroma .cl { }
|
||||||
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
||||||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
|
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
||||||
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #363636 }
|
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
|
||||||
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 }
|
/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 }
|
||||||
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 }
|
/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 }
|
||||||
|
/* Line */ .chroma .line { display: flex; }
|
||||||
/* Keyword */ .chroma .k { color: #6ab825; font-weight: bold }
|
/* Keyword */ .chroma .k { color: #6ab825; font-weight: bold }
|
||||||
/* KeywordConstant */ .chroma .kc { color: #6ab825; font-weight: bold }
|
/* KeywordConstant */ .chroma .kc { color: #6ab825; font-weight: bold }
|
||||||
/* KeywordDeclaration */ .chroma .kd { color: #6ab825; font-weight: bold }
|
/* KeywordDeclaration */ .chroma .kd { color: #6ab825; font-weight: bold }
|
||||||
|
@ -28,9 +28,9 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="post-content">
|
<article class="post-content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</article>
|
||||||
|
|
||||||
{{ partial "series-box.html" . }}
|
{{ partial "series-box.html" . }}
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
<div class="post">
|
|
||||||
<h2 class="post-title">
|
<h2 class="post-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>
|
||||||
@ -20,4 +19,3 @@
|
|||||||
<div class="readmore">
|
<div class="readmore">
|
||||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
<div class="post">
|
|
||||||
<h2 class="post-title">
|
<h2 class="post-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>
|
||||||
@ -11,16 +10,15 @@
|
|||||||
{{ partial "description-or-summary.html" . }}
|
{{ partial "description-or-summary.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="series-pages">
|
<div class="series-page-list">
|
||||||
<ul>
|
|
||||||
{{ $i := 0 }}
|
{{ $i := 0 }}
|
||||||
{{ $total := len .Data.Pages }}
|
{{ $total := len .Data.Pages }}
|
||||||
{{ range .Data.Pages.Reverse }}
|
{{ range .Data.Pages.Reverse }}
|
||||||
{{ $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/series_post" }}</li>
|
<article class="post">
|
||||||
|
{{ .Render "summary/series_post" }}
|
||||||
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
<div class="post">
|
|
||||||
<div class="post-series-position">
|
<div class="post-series-position">
|
||||||
{{ if .Scratch.Get "series_position" }}
|
{{ if .Scratch.Get "series_position" }}
|
||||||
({{ .Scratch.Get "series_position" }}/{{ .Scratch.Get "series_total" }})
|
({{ .Scratch.Get "series_position" }}/{{ .Scratch.Get "series_total" }})
|
||||||
@ -26,4 +25,3 @@
|
|||||||
<div class="readmore">
|
<div class="readmore">
|
||||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
|
|
||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
{{ with .Paginator.Pages }}
|
{{ with .Paginator.Pages }}
|
||||||
<ul>
|
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
<li>{{ .Render "summary/author" }}</li>
|
<article class="post">
|
||||||
|
{{ .Render "summary/author" }}
|
||||||
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<div class="author-name">
|
||||||
<h1>
|
<h1>
|
||||||
{{ partial "icon.html" "user-circle" }}
|
{{ partial "icon.html" "user-circle" }}
|
||||||
{{ .Title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
{{ partial "rss-link.html" . }}
|
{{ partial "rss-link.html" . }}
|
||||||
</h1>
|
</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ partial "post-metadata/author.html" . }}
|
{{ partial "post-metadata/author.html" . }}
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
<div class="homepage-content">
|
<article class="homepage-content">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</article>
|
||||||
<hr>
|
<hr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
@ -40,7 +40,7 @@
|
|||||||
{{ partial "seo-tags/author.html" . }}
|
{{ partial "seo-tags/author.html" . }}
|
||||||
|
|
||||||
<meta name="language" content="{{ .Language.Lang }}">
|
<meta name="language" content="{{ .Language.Lang }}">
|
||||||
<meta name="description" content="{{ (partial "seo-tags/description.html" .) | plainify }}">
|
<meta name="description" content="{{ (partial "seo-description.html" .) | plainify }}">
|
||||||
|
|
||||||
{{ partial "additional-head.html" . }}
|
{{ partial "additional-head.html" . }}
|
||||||
</head>
|
</head>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
{{ with . }}
|
{{ with . }}
|
||||||
<ul>
|
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
<li>{{ .Render "summary/post" }}</li>
|
<article class="post">
|
||||||
|
{{ .Render "summary/post" }}
|
||||||
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{ if gt .Paginator.TotalPages 1 }}
|
{{ if gt .Paginator.TotalPages 1 }}
|
||||||
<div class="pagination">
|
<nav class="pagination">
|
||||||
{{ template "_internal/pagination.html" . }}
|
{{ template "_internal/pagination.html" . }}
|
||||||
</div>
|
</nav>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<meta property="og:title" content="{{ .Title | plainify }}">
|
<meta property="og:title" content="{{ .Title | plainify }}">
|
||||||
<meta property="og:description" content="{{ (partial "seo-tags/description.html" .) | plainify }}">
|
<meta property="og:description" content="{{ (partial "seo-description.html" .) | plainify }}">
|
||||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
|
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
|
||||||
<meta property="og:url" content="{{ .Permalink }}">
|
<meta property="og:url" content="{{ .Permalink }}">
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<meta itemprop="name" content="{{ .Title | plainify }}">
|
<meta itemprop="name" content="{{ .Title | plainify }}">
|
||||||
<meta itemprop="description" content="{{ (partial "seo-tags/description.html" .) | plainify }}">
|
<meta itemprop="description" content="{{ (partial "seo-description.html" .) | plainify }}">
|
||||||
|
|
||||||
{{ $format := "2006-01-02T15:04:05-07:00" }}
|
{{ $format := "2006-01-02T15:04:05-07:00" }}
|
||||||
{{ with .Date }}
|
{{ with .Date }}
|
||||||
@ -21,6 +21,10 @@
|
|||||||
<meta itemprop="image" content="{{ $featured.Permalink }}">
|
<meta itemprop="image" content="{{ $featured.Permalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with .Params.tags }}
|
{{ with (.GetTerms "tags") }}
|
||||||
<meta itemprop="keywords" content="{{ delimit . ", " }}">
|
{{ $tags := slice }}
|
||||||
|
{{ range . }}
|
||||||
|
{{ $tags = $tags | append .LinkTitle }}
|
||||||
|
{{ end }}
|
||||||
|
<meta itemprop="keywords" content="{{ delimit $tags ", " }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<meta name="twitter:title" content="{{ .Title | plainify }}">
|
<meta name="twitter:title" content="{{ .Title | plainify }}">
|
||||||
<meta name="twitter:description" content="{{ (partial "seo-tags/description.html" .) | plainify }}">
|
<meta name="twitter:description" content="{{ (partial "seo-description.html" .) | plainify }}">
|
||||||
|
|
||||||
{{ with .Site.Social.twitter }}
|
{{ with .Site.Social.twitter }}
|
||||||
<meta name="twitter:site" content="@{{ . }}">
|
<meta name="twitter:site" content="@{{ . }}">
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
<h1 class="header">
|
<header class="header">
|
||||||
<a href="{{ .Site.Home.Permalink | absLangURL }}">{{ .Site.Title | markdownify }}</a>
|
<h1>
|
||||||
|
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||||
|
{{ .Site.Title | markdownify }}
|
||||||
|
</a>
|
||||||
</h1>
|
</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
<div class="topbar">
|
<div class="topbar">
|
||||||
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
{{ .Title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="series-taxonomy">
|
<div class="series-taxonomy-list">
|
||||||
{{ with .Pages }}
|
{{ with .Pages }}
|
||||||
<ul>
|
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
<li>{{ .Render "summary/series" }}</li>
|
<article class="series-taxonomy">
|
||||||
|
{{ .Render "summary/series" }}
|
||||||
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
|
1
layouts/shortcodes/full-width-hr.html
Normal file
1
layouts/shortcodes/full-width-hr.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<hr class="full-width-hr">
|
@ -13,10 +13,9 @@
|
|||||||
|
|
||||||
<div class="taxonomy-list">
|
<div class="taxonomy-list">
|
||||||
{{ with .Data.Terms.Alphabetical }}
|
{{ with .Data.Terms.Alphabetical }}
|
||||||
<ul>
|
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
{{ with .Page }}
|
{{ with .Page }}
|
||||||
<li>
|
<article class="taxonomy-term">
|
||||||
<div class="taxonomy-list-left">
|
<div class="taxonomy-list-left">
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
<p>{{ .Title | markdownify }}</p>
|
<p>{{ .Title | markdownify }}</p>
|
||||||
@ -24,10 +23,9 @@
|
|||||||
{{ partial "post-metadata/taxonomy.html" . }}
|
{{ partial "post-metadata/taxonomy.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ partial "description-or-summary.html" . }}
|
{{ partial "description-or-summary.html" . }}
|
||||||
</li>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<div class="post-title">
|
||||||
<h1>
|
<h1>
|
||||||
{{ if eq .Data.Singular "tag" }}
|
{{ if eq .Data.Singular "tag" }}
|
||||||
{{ partial "icon.html" "tag" }}
|
{{ partial "icon.html" "tag" }}
|
||||||
@ -11,6 +12,7 @@
|
|||||||
{{ .Title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
{{ partial "rss-link.html" . }}
|
{{ partial "rss-link.html" . }}
|
||||||
</h1>
|
</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ partial "post-metadata/taxonomy.html" . }}
|
{{ partial "post-metadata/taxonomy.html" . }}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user