mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-13 09:57:30 -05:00
Compare commits
99 Commits
v1.0.1
...
custom-fon
Author | SHA1 | Date | |
---|---|---|---|
732d32b97b
|
|||
4d1a0d6be2
|
|||
ac580e1995
|
|||
cee1cd3a82
|
|||
3fae019148
|
|||
8ef1e3840a
|
|||
629b3758b9
|
|||
9412906b4f
|
|||
f8cfad647f
|
|||
b200623dca
|
|||
80f5994d96
|
|||
342710a755
|
|||
8eb642dbc8
|
|||
a4be8b395b
|
|||
47d6d02186
|
|||
a26ea62b60
|
|||
7cff045cb3
|
|||
9f080377e7
|
|||
fb40c8a4c3
|
|||
0c248a4ca5
|
|||
56d8a07893
|
|||
8aab2ca693
|
|||
e46288dc45
|
|||
637ffc12f5
|
|||
2a40664bb6
|
|||
e34d2109ec
|
|||
54f89dad51
|
|||
04b5017279
|
|||
a65a435b1d
|
|||
73dc916d5a
|
|||
e8be3ae45b
|
|||
73ef9cc7a6
|
|||
4adb754ae3
|
|||
81709bb47e
|
|||
9c3a076e96
|
|||
833edacc1f
|
|||
121a67a1fc
|
|||
8e3fb4038a
|
|||
e9266cdead
|
|||
3a4cb538f7
|
|||
de84bc5ddf
|
|||
466c91a980
|
|||
8d81f5e37c
|
|||
7dd01894da
|
|||
9665133ba4
|
|||
b272ed6181
|
|||
17918a5617
|
|||
493ee2da96
|
|||
3d83e9fbdf
|
|||
684769df5a
|
|||
9bee463a3c
|
|||
805dc65ccb
|
|||
a9d1c25ee4
|
|||
fe08bdc93c
|
|||
026d5ab2c3
|
|||
311d846cb8
|
|||
0888356292
|
|||
bcf0b68df9
|
|||
034ef462a2
|
|||
56610009e9
|
|||
76b0383c2c
|
|||
0877a9d400
|
|||
2731d9795f
|
|||
87a6da5c41
|
|||
e450f3fbc7
|
|||
cba6dd0a2f
|
|||
fa5c014a1b
|
|||
a172b1ea21
|
|||
93d9164c6a
|
|||
72ebcf134a
|
|||
effd3a265b
|
|||
d41f3facd7
|
|||
c82d5602bb
|
|||
219f97bc00
|
|||
2f6d67a03f
|
|||
e97d4f921d
|
|||
5ffca36b84
|
|||
f4c056b99c
|
|||
3713fdae5b
|
|||
1127795717
|
|||
1db48c3101
|
|||
430139d292
|
|||
ac9ca6f97e
|
|||
8cadf8e735
|
|||
42a7e27d09
|
|||
2371f1de13
|
|||
81e141cef9
|
|||
2113c7a4e9
|
|||
b14e0e90fd
|
|||
2742bac9ff
|
|||
e8f9d1c5df
|
|||
dff23045a8
|
|||
4f450374cf
|
|||
a3a7f50a5b
|
|||
2cc4f45d4f
|
|||
33d0f81444
|
|||
5668feed1d
|
|||
586bea37d5
|
|||
37c04460b5
|
@ -1,2 +1,4 @@
|
||||
# bobatheme
|
||||
Simple Hugo theme
|
||||
|
||||
The (boba) best Hugo theme. Contains everything I need for bbaovanc.com and
|
||||
boba.best.
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
title: {{ replace .Name "-" " " | humanize }}
|
||||
date: {{ .Date }}
|
||||
lastmod: {{ .Date }}
|
||||
toc: true
|
||||
comments: true
|
||||
draft: true
|
||||
@ -9,11 +10,14 @@ draft: true
|
||||
authors:
|
||||
- {{ with .Site.Author.name }}{{ . }}{{ else }}John Doe{{ end }}
|
||||
|
||||
categories:
|
||||
- archetype-stuff
|
||||
|
||||
tags:
|
||||
- awesome
|
||||
|
||||
series:
|
||||
- Archetype
|
||||
- archetype
|
||||
|
||||
# this will be shown for the article in list pages and in the page metadata
|
||||
# it can be either an image or video (this might change in the future, however)
|
||||
|
15
archetypes/categories/_index.md
Normal file
15
archetypes/categories/_index.md
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
title: {{ replace .Name "-" " " | title }}
|
||||
|
||||
---
|
||||
|
||||
A short summary of what the category is about.
|
||||
|
||||
<!--more-->
|
||||
|
||||
Optionally provide more information about the category here. This part will only
|
||||
show on the category page, not on the category list page.
|
||||
|
||||
If you delete this section, DO NOT delete the summary separator (`<!--more-->`)
|
||||
or else the summary won't be shown.
|
@ -3,55 +3,151 @@
|
||||
*/
|
||||
|
||||
:root {
|
||||
--background: #111;
|
||||
--background-2: #222;
|
||||
--background-3: #282828;
|
||||
--background-4: #333;
|
||||
--background-5: #444;
|
||||
--text-normal: #d3d3d3;
|
||||
--link-color: #4da6ff;
|
||||
--figure-border: #1b5b9b;
|
||||
--background-0: #111111; /* lch(5, 0, X) */
|
||||
--background-1: #212121; /* lch(12.5, 0, X) */
|
||||
--background-2: #303030; /* lch(20, 0, X) */
|
||||
--background-3: #414141; /* lch(27.5, 0, X) */
|
||||
|
||||
--background-pink-1: #331821; /* lch(12.5, 15, 0) */
|
||||
--background-red-1: #331917; /* lch(12.5, 15, 30) */
|
||||
--background-orange-1: #2e1c0e; /* lch(12.5, 15, 60) */
|
||||
--background-yellow-1: #262008; /* lch(12.5, 15, 90) */
|
||||
--background-lime-1: #1b230c; /* lch(12.5, 15, 120) */
|
||||
--background-green-1: #0e2516; /* lch(12.5, 15, 150) */
|
||||
--background-turquoise-1: #012620; /* lch(12.5, 15, 180) */
|
||||
--background-teal-1: #00262b; /* lch(12.5, 15, 210) -- out of sRGB */
|
||||
--background-cerulean-1: #032432; /* lch(12.5, 15, 240) */
|
||||
--background-blue-1: #152135; /* lch(12.5, 15, 270) */
|
||||
--background-purple-1: #241d33; /* lch(12.5, 15, 300) */
|
||||
--background-magenta-1: #2e1a2b; /* lch(12.5, 15, 330) */
|
||||
|
||||
--background-pink-2: #4b2431; /* lch(20, 20, 0) */
|
||||
--background-red-2: #4a2623; /* lch(20, 20, 30) */
|
||||
--background-orange-2: #432a17; /* lch(20, 20, 60) */
|
||||
--background-yellow-2: #373012; /* lch(20, 20, 90) */
|
||||
--background-lime-2: #283416; /* lch(20, 20, 120) */
|
||||
--background-green-2: #163721; /* lch(20, 20, 150) */
|
||||
--background-turquoise-2: #003830; /* lch(20, 20, 180) -- out of sRGB */
|
||||
--background-teal-2: #00373e; /* lch(20, 20, 210) -- out of sRGB */
|
||||
--background-cerulean-2: #013549; /* lch(20, 20, 240) */
|
||||
--background-blue-2: #1f314e; /* lch(20, 20, 270) */
|
||||
--background-purple-2: #352c4a; /* lch(20, 20, 300) */
|
||||
--background-magenta-2: #43263f; /* lch(20, 20, 330) */
|
||||
|
||||
--background-accent-1: var(--background-blue-1);
|
||||
--background-accent-2: var(--background-blue-2);
|
||||
|
||||
--text-0: #d4d4d4; /* lch(85, 0, X) */
|
||||
--text-1: #d4d4d4; /* lch(85, 0, X) */
|
||||
--text-2: #d4d4d4; /* lch(85, 0, X) */
|
||||
--text-3: #e9e9e9; /* lch(92.5, 0, X) */
|
||||
|
||||
--text-gray-0: #ababab; /* lch(70, 0, X) */
|
||||
--text-gray-1: #919191; /* lch(60, 0, X) */
|
||||
|
||||
--link-0: #3a94fb; /* lch(60, 60, 270) */
|
||||
--link-1: #4ea1ff; /* lch(65, 60, 270) -- out of sRGB */
|
||||
|
||||
--figure-border: #1f5593; /* lch(35, 40, 270) */
|
||||
|
||||
--pagination-active-hover-text: black;
|
||||
--pagination-active-background: #163b64;
|
||||
--pagination-active-hover-background: #286ab2;
|
||||
--pagination-active-background: #1a3d69; /* lch(25, 30, 270) */
|
||||
--pagination-active-hover-background: #2061a8; /* lch(40, 45, 270) */
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
@media print, (prefers-color-scheme: light) {
|
||||
:root {
|
||||
--background: #eee;
|
||||
--background-2: #ddd;
|
||||
--background-3: #d8d8d8;
|
||||
--background-4: #bbb;
|
||||
--background-5: #aaa;
|
||||
--text-normal: #000;
|
||||
--link-color: #0057bf;
|
||||
--figure-border: #2e7bc9;
|
||||
--background-0: #f1f1f1; /* lch(95, 0, X) */
|
||||
--background-1: #dbdbdb; /* lch(87.5, 0, X) */
|
||||
--background-2: #c6c6c6; /* lch(80, 0, X) */
|
||||
--background-3: #b2b2b2; /* lch(72.5, 0, X) */
|
||||
|
||||
--background-pink-1: #f7d1dc; /* lch(87.5, 15, 0) */
|
||||
--background-red-1: #f8d2ce; /* lch(87.5, 15, 30) */
|
||||
--background-orange-1: #f1d6c3; /* lch(87.5, 15, 60) */
|
||||
--background-yellow-1: #e4dbbf; /* lch(87.5, 15, 90) */
|
||||
--background-lime-1: #d5dfc2; /* lch(87.5, 15, 120) */
|
||||
--background-green-1: #c6e3cc; /* lch(87.5, 15, 150) */
|
||||
--background-turquoise-1: #bce4db; /* lch(87.5, 15, 180) */
|
||||
--background-teal-1: #bae3e9; /* lch(87.5, 15, 210) */
|
||||
--background-cerulean-1: #c2e0f4; /* lch(87.5, 15, 240) */
|
||||
--background-blue-1: #d0dcf8; /* lch(87.5, 15, 270) */
|
||||
--background-purple-1: #e1d7f4; /* lch(87.5, 15, 300) */
|
||||
--background-magenta-1: #efd3ea; /* lch(87.5, 15, 330) */
|
||||
|
||||
--background-pink-2: #fbb1c8; /* lch(80, 30, 0) */
|
||||
--background-red-2: #fbb4ac; /* lch(80, 30, 30) */
|
||||
--background-orange-2: #eebc97; /* lch(80, 30, 60) */
|
||||
--background-yellow-2: #d6c58e; /* lch(80, 30, 90) */
|
||||
--background-lime-2: #b8ce95; /* lch(80, 30, 120) */
|
||||
--background-green-2: #9ad4a9; /* lch(80, 30, 150) */
|
||||
--background-turquoise-2: #81d6c5; /* lch(80, 30, 180) */
|
||||
--background-teal-2: #7ad5e1; /* lch(80, 30, 210) */
|
||||
--background-cerulean-2: #8cd0f6; /* lch(80, 30, 240) */
|
||||
--background-blue-2: #adc8fe; /* lch(80, 30, 270) */
|
||||
--background-purple-2: #d0bef7; /* lch(80, 30, 300) */
|
||||
--background-magenta-2: #ecb5e3; /* lch(80, 30, 330) */
|
||||
|
||||
--background-accent-1: var(--background-blue-1);
|
||||
--background-accent-2: var(--background-blue-2);
|
||||
|
||||
--text-0: #262626; /* lch(15, 0, X) */
|
||||
--text-1: #262626; /* lch(15, 0, X) */
|
||||
--text-2: #262626; /* lch(15, 0, X) */
|
||||
--text-3: #171717; /* lch(72.5, 0, X) */
|
||||
|
||||
--text-gray-0: #474747; /* lch(30, 0, X) */
|
||||
--text-gray-1: #5e5e5e; /* lch(40, 0, X) */
|
||||
|
||||
--link-0: #2061a8; /* lch(40, 45, 270) */
|
||||
|
||||
--figure-border: #367acd; /* lch(50, 50, 270) */
|
||||
|
||||
--pagination-active-hover-text: white;
|
||||
--pagination-active-background: #3977bd;
|
||||
--pagination-active-hover-background: #154172;
|
||||
--pagination-active-background: #9fbaf0; /* lch(75, 30, 270) */
|
||||
--pagination-active-hover-background: #6193e0; /* lch(60, 45, 270) */
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
:root {
|
||||
--background: #fff;
|
||||
--background-2: #ddd;
|
||||
--background-3: #d8d8d8;
|
||||
--background-4: #bbb;
|
||||
--background-5: #aaa;
|
||||
--text-normal: #000;
|
||||
--link-color: #0057bf;
|
||||
--figure-border: #2e7bc9;
|
||||
|
||||
--pagination-active-hover-text: white;
|
||||
--pagination-active-background: #3977bd;
|
||||
--pagination-active-hover-background: #154172;
|
||||
--background-0: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Fonts */
|
||||
@font-face {
|
||||
font-family: "Open Sans";
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
src: url("/font/opensans/OpenSans-VariableFont_wdth,wght-9f637b868d10819aa0085e6cf7f70953411c8905c4055c069adbe8acc708feef.woff2") format("woff2");
|
||||
}
|
||||
@font-face {
|
||||
font-family: JetBrainsMono;
|
||||
font-display: swap;
|
||||
src: url("/font/jetbrainsmono/JetBrainsMono_wght-e190ee6595a3b9bd25278613a6f5d3766ee1a708f300ed44fa63dbe84051498f.woff2") format("woff2");
|
||||
}
|
||||
:root {
|
||||
--font-sans: "Open Sans", "Noto Sans", sans-serif;
|
||||
--font-mono: JetBrainsMono, monospace;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: var(--font-sans);
|
||||
}
|
||||
pre, code, kbd, samp, textarea {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.75em;
|
||||
}
|
||||
pre > code {
|
||||
/* otherwise it ends up being 0.75^2 em */
|
||||
font-size: unset;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Post layout (in list pages) */
|
||||
.list-page-content {
|
||||
display: flex;
|
||||
@ -59,8 +155,8 @@
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
.page-list ul,
|
||||
.series-taxonomy ul {
|
||||
.page-list,
|
||||
.series-taxonomy-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
list-style: none;
|
||||
@ -68,14 +164,20 @@
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
.page-list li,
|
||||
.series-taxonomy li {
|
||||
.series-taxonomy-list {
|
||||
gap: 80px;
|
||||
}
|
||||
|
||||
.page-list .post,
|
||||
.series-taxonomy-list .series-taxonomy,
|
||||
.series-taxonomy .post {
|
||||
padding-top: 8px;
|
||||
padding-left: 24px;
|
||||
padding-right: 24px;
|
||||
padding-bottom: 24px;
|
||||
border-radius: 12px;
|
||||
background-color: var(--background-2);
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
.post-series-position {
|
||||
@ -84,24 +186,34 @@
|
||||
opacity: .75;
|
||||
}
|
||||
|
||||
.post-title {
|
||||
.post-title,
|
||||
.author-name {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.post-title a {
|
||||
.post-title h1,
|
||||
.author-name h1 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.post-title a,
|
||||
.author-name a {
|
||||
color: inherit;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
.post-meta-item {
|
||||
.post-meta-item,
|
||||
.author-meta-item {
|
||||
margin-right: 10px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.post-metadata {
|
||||
margin-bottom: 15px;
|
||||
.post-metadata,
|
||||
.author-metadata {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.categories,
|
||||
.tags,
|
||||
.series {
|
||||
margin-top: 10px;
|
||||
@ -111,7 +223,8 @@
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.post-description {
|
||||
.post-description,
|
||||
.author-description {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
@ -121,41 +234,66 @@
|
||||
|
||||
|
||||
|
||||
/* Tags list format */
|
||||
.tag-list ul {
|
||||
display: flex;
|
||||
/* Taxonomy list format */
|
||||
.taxonomy-list a,
|
||||
.taxonomy-list .taxonomy-metadata {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.taxonomy-list p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.taxonomy-list {
|
||||
list-style: none;
|
||||
gap: 10px;
|
||||
flex-flow: row wrap;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.tag-list a {
|
||||
background-color: var(--background-2);
|
||||
.taxonomy-list .taxonomy-term {
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
padding: 8px 12px;
|
||||
border-radius: 12px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.tag-list a:hover {
|
||||
text-decoration: none;
|
||||
background-color: var(--background-4);
|
||||
.taxonomy-list-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.taxonomy-list .taxonomy-term {
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.taxonomy-list-left {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Series list format */
|
||||
.series-pages ul {
|
||||
.series-page-list {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-flow: row wrap;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
background-color: var(--background);
|
||||
background-color: var(--background-0);
|
||||
color: var(--text-0);
|
||||
padding: 8px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.series-pages li {
|
||||
.series-page-list .post {
|
||||
flex: 1;
|
||||
min-width: 49%;
|
||||
}
|
||||
@ -166,17 +304,19 @@
|
||||
.sections {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 40px;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.section {
|
||||
background-color: var(--background-2);
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
border-radius: 12px;
|
||||
padding: 1px 25px;
|
||||
}
|
||||
|
||||
.section:hover {
|
||||
background-color: var(--background-4);
|
||||
background-color: var(--background-2);
|
||||
color: var(--text-2);
|
||||
}
|
||||
|
||||
.section-title {
|
||||
@ -202,13 +342,15 @@
|
||||
|
||||
|
||||
/* Header formatting (website title and article section headers) */
|
||||
.top {
|
||||
margin: 20px;
|
||||
.header {
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.header a,
|
||||
.section-header a {
|
||||
color: inherit;
|
||||
font-size: 1.5em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.section-header-link svg {
|
||||
@ -220,14 +362,16 @@
|
||||
|
||||
/* Content formatting */
|
||||
.series-box {
|
||||
background-color: var(--background-2);
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
padding: 8px 16px;
|
||||
border-radius: 8px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
.table-of-contents {
|
||||
background-color: var(--background-2);
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
padding: 8px 20px;
|
||||
border-radius: 8px;
|
||||
margin: 10px 0;
|
||||
@ -242,21 +386,124 @@
|
||||
padding: 8px 15px;
|
||||
}
|
||||
|
||||
.content,
|
||||
footer {
|
||||
margin: 20px;
|
||||
|
||||
|
||||
/* Related posts */
|
||||
.full-width-page-list {
|
||||
/* make left/right 0 margin so it takes up full width */
|
||||
margin: 25px 0;
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
.full-width-page-list > hr,
|
||||
.full-width-page-list > h1 {
|
||||
margin-left: 20px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.full-width-page-list .post {
|
||||
min-width: 300px;
|
||||
max-width: 300px;
|
||||
|
||||
}
|
||||
|
||||
.full-width-page-list .post:first-child {
|
||||
margin-left: 20px;
|
||||
}
|
||||
.full-width-page-list .post:last-child {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
/* when the screen is smaller than max size, make sure that the .related div
|
||||
* still reaches the screen edge. then if the posts overflow and require
|
||||
* scrolling, you can see it cut off on the side of your phone screen
|
||||
*/
|
||||
.full-width-page-list {
|
||||
margin-left: -20px;
|
||||
margin-right: -20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 720px) {
|
||||
.full-width-page-list {
|
||||
/* this makes it full width -- 720px max-width on body it is exactly 720px
|
||||
* so .related takes up full width
|
||||
*/
|
||||
margin-left: calc(-100vw / 2 + 720px / 2);
|
||||
margin-right: calc(-100vw / 2 + 720px / 2);
|
||||
}
|
||||
}
|
||||
|
||||
.full-width-page-list .page-list {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 20px;
|
||||
overflow-x: scroll;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Social media share buttons */
|
||||
.share-buttons {
|
||||
background: var(--background-1);
|
||||
color: var(--text-1);
|
||||
margin: 25px 0;
|
||||
padding: 8px 0;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.share-buttons a {
|
||||
background-color: var(--background-2);
|
||||
color: var(--text-2);
|
||||
padding: 4px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.share-buttons a:hover {
|
||||
background-color: var(--background-3);
|
||||
color: var(--text-3);
|
||||
}
|
||||
|
||||
.share-buttons svg {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
/* https://stackoverflow.com/a/72073682/19003757 */
|
||||
/*
|
||||
.telegram-share > svg {
|
||||
transform: scale(1.5);
|
||||
margin: 9px -9px -9px 9px;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/* See also formating */
|
||||
.see-also {
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.see-also p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Back to top */
|
||||
#back-to-top {
|
||||
position: fixed;
|
||||
float: right;
|
||||
bottom: 25px;
|
||||
right: 25px;
|
||||
background-color: var(--background-3);
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
border-radius: 100%;
|
||||
padding: 12px;
|
||||
display: none;
|
||||
@ -269,7 +516,8 @@ footer {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
flex-direction: row;
|
||||
background-color: var(--background-2);
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
border-radius: 8px;
|
||||
margin-top: 5px;
|
||||
padding: 4px;
|
||||
@ -278,9 +526,6 @@ footer {
|
||||
|
||||
.navbar {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
flex-grow: 1;
|
||||
overflow: auto;
|
||||
}
|
||||
@ -288,15 +533,21 @@ footer {
|
||||
.navbar a {
|
||||
padding: 8px 12px;
|
||||
border-radius: 12px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.navbar-item:hover,
|
||||
.langpicker summary:hover,
|
||||
.langpicker[open] summary {
|
||||
background-color: var(--background-5);
|
||||
background-color: var(--background-3);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.langpicker summary:hover,
|
||||
.langpicker[open] summary {
|
||||
color: var(--text-3);
|
||||
}
|
||||
|
||||
.topbar .active {
|
||||
font-weight: bold;
|
||||
}
|
||||
@ -317,8 +568,9 @@ footer {
|
||||
position: absolute;
|
||||
margin-top: 8px;
|
||||
right: 0;
|
||||
background-color: var(--background-2);
|
||||
border: 2px solid var(--background-4);
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
border: 2px solid var(--background-2);
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
list-style: none;
|
||||
@ -347,14 +599,28 @@ html {
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--background);
|
||||
color: var(--text-normal);
|
||||
font-family: "Open Sans", "Noto Sans", sans-serif;
|
||||
margin: auto;
|
||||
background-color: var(--background-0);
|
||||
color: var(--text-0);
|
||||
margin: 20px;
|
||||
max-width: 720px;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
@media (min-width: 760px) {
|
||||
body {
|
||||
margin: 20px auto;
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
footer p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
img,
|
||||
video {
|
||||
max-width: 100%;
|
||||
@ -383,15 +649,8 @@ figcaption {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
aside {
|
||||
background-color: var(--background-2);
|
||||
padding: 12px 16px;
|
||||
margin: 16px 0;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--link-color);
|
||||
color: var(--link-0);
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
@ -400,12 +659,52 @@ a:hover {
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 5px solid var(--background-4);
|
||||
border-left: 5px solid var(--background-2);
|
||||
padding-left: 15px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
border-color: var(--background-5);
|
||||
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 {
|
||||
border-collapse: collapse;
|
||||
border: 2px solid var(--text-1);
|
||||
}
|
||||
|
||||
.markdown thead {
|
||||
background-color: var(--background-2);
|
||||
color: var(--text-2);
|
||||
}
|
||||
|
||||
.markdown th,
|
||||
.markdown td {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.markdown tbody tr:nth-child(odd) {
|
||||
background-color: var(--background-0);
|
||||
color: var(--text-0);
|
||||
}
|
||||
.markdown tbody tr:nth-child(even) {
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
:target {
|
||||
animation: target-fade 10s ease-out;
|
||||
}
|
||||
@keyframes target-fade {
|
||||
0% { background-color: var(--background-yellow-2); }
|
||||
}
|
||||
|
||||
* {
|
||||
@ -415,21 +714,65 @@ hr {
|
||||
|
||||
|
||||
/* Code blocks */
|
||||
.highlight {
|
||||
.code-block {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 16px 0;
|
||||
background-color: var(--background-1);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.code-block > .code-header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
background-color: var(--background-2);
|
||||
padding: 4px 8px;
|
||||
border-top-left-radius: 8px;
|
||||
border-top-right-radius: 8px;
|
||||
}
|
||||
.code-block > .code-header > .code-type {
|
||||
border-top-left-radius: 8px;
|
||||
margin: auto 0;
|
||||
}
|
||||
/* TODO: make the code copy button prettier */
|
||||
.code-block > .code-header > .code-copy-button {
|
||||
color: var(--link-1);
|
||||
}
|
||||
.code-block > .code-header > .code-copy-button:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
.code-block > .highlight {
|
||||
margin: 8px 4px;
|
||||
}
|
||||
|
||||
.highlight > pre {
|
||||
padding: 12px 8px;
|
||||
.highlight > .chroma {
|
||||
overflow: auto;
|
||||
}
|
||||
.chroma {
|
||||
/* the syntax highlight CSS adds a border */
|
||||
background-color: transparent !important;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.chroma .gp {
|
||||
/* Generic Prompt symbol */
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
}
|
||||
|
||||
:not(pre) > code {
|
||||
background-color: var(--background-3);
|
||||
background-color: var(--background-2);
|
||||
/* Disable this because it overrides inline code blocks that are
|
||||
* also links
|
||||
color: var(--text-2);
|
||||
*/
|
||||
padding: 2px 4px;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.code-block > .code-header > .code-type,
|
||||
code {
|
||||
border-radius: 5px;
|
||||
}
|
||||
@ -440,11 +783,53 @@ code {
|
||||
|
||||
|
||||
|
||||
/* Asides */
|
||||
aside {
|
||||
padding: 8px 16px;
|
||||
margin: 16px 0;
|
||||
border-radius: 8px;
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
.aside-title {
|
||||
margin-bottom: 8px;
|
||||
padding-bottom: 4px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.aside-content > :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.aside-content > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
aside.note {
|
||||
background-color: var(--background-blue-1);
|
||||
}
|
||||
aside.info {
|
||||
background-color: var(--background-green-1);
|
||||
}
|
||||
aside.tip {
|
||||
background-color: var(--background-teal-1);
|
||||
}
|
||||
aside.warning {
|
||||
background-color: var(--background-yellow-1);
|
||||
}
|
||||
aside.example {
|
||||
background-color: var(--background-purple-1);
|
||||
}
|
||||
aside.quote {
|
||||
background-color: var(--background-1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Icons */
|
||||
.icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: var(--text-normal);
|
||||
color: var(--text-1);
|
||||
text-align: center;
|
||||
display: inline;
|
||||
vertical-align: middle;
|
||||
@ -471,7 +856,7 @@ h1 svg.icon {
|
||||
.page-link {
|
||||
padding: 8px 16px;
|
||||
border-radius: 5px;
|
||||
color: var(--text-normal);
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
.page-item.active .page-link {
|
||||
@ -482,6 +867,7 @@ h1 svg.icon {
|
||||
.page-item.active .page-link:hover {
|
||||
background-color: var(--pagination-active-hover-background);
|
||||
color: var(--pagination-active-hover-text);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.page-link:hover {
|
||||
@ -489,7 +875,7 @@ h1 svg.icon {
|
||||
}
|
||||
|
||||
:not(li.disabled) > .page-link:hover {
|
||||
background-color: var(--background-5);
|
||||
background-color: var(--background-3);
|
||||
}
|
||||
|
||||
li.disabled {
|
||||
@ -503,10 +889,8 @@ li.disabled > .page-link:hover {
|
||||
|
||||
|
||||
/* Breadcrumb navigation */
|
||||
.breadcrumb {
|
||||
margin-top: 40px;
|
||||
margin-bottom: 20px;
|
||||
margin-left: 20px;
|
||||
.breadcrumb ul {
|
||||
margin: 30px 0 20px;
|
||||
}
|
||||
|
||||
.breadcrumb ul {
|
||||
@ -537,12 +921,14 @@ li.disabled > .page-link:hover {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: inherit;
|
||||
background-color: var(--background-2);
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
padding: 8px 16px;
|
||||
}
|
||||
|
||||
.prevnext > a:hover {
|
||||
background-color: var(--background-4);
|
||||
background-color: var(--background-2);
|
||||
color: var(--text-2);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@ -572,12 +958,8 @@ li.disabled > .page-link:hover {
|
||||
|
||||
|
||||
/* Light mode */
|
||||
@media print, (prefers-color-scheme: light) {
|
||||
/* Basic elements */
|
||||
.section:hover {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
@media print,
|
||||
(prefers-color-scheme: light) {
|
||||
li.disabled {
|
||||
opacity: .25;
|
||||
}
|
||||
@ -588,10 +970,12 @@ li.disabled > .page-link:hover {
|
||||
/* Print compatibility */
|
||||
@media print {
|
||||
.top,
|
||||
.breadcrumb,
|
||||
.section-header-link,
|
||||
.post-meta-edit-history,
|
||||
.prevnext,
|
||||
.comments {
|
||||
.share-buttons,
|
||||
.related-posts,
|
||||
.latest-posts {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
@ -1,14 +1,21 @@
|
||||
/* tango style */
|
||||
|
||||
@media print, (prefers-color-scheme: light) {
|
||||
.chroma {
|
||||
color: black;
|
||||
}
|
||||
|
||||
/* Background */ .bg { background-color: #f8f8f8 }
|
||||
/* PreWrapper */ .chroma { background-color: #f8f8f8; }
|
||||
/* Other */ .chroma .x { color: #000000 }
|
||||
/* Error */ .chroma .err { color: #a40000 }
|
||||
/* CodeLine */ .chroma .cl { }
|
||||
/* 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; }
|
||||
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc }
|
||||
/* LineNumbersTable */ .chroma .lnt { 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 }
|
||||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
||||
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
|
||||
/* 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 { 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 }
|
||||
/* KeywordConstant */ .chroma .kc { 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 }
|
||||
/* GenericUnderline */ .chroma .gl { color: #000000; text-decoration: underline }
|
||||
/* TextWhitespace */ .chroma .w { color: #f8f8f8; text-decoration: underline }
|
||||
|
||||
}
|
||||
|
||||
@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 { }
|
||||
/* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 }
|
||||
/* CodeLine */ .chroma .cl { }
|
||||
/* 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; }
|
||||
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #363636 }
|
||||
/* LineNumbersTable */ .chroma .lnt { 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 }
|
||||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
||||
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
|
||||
/* 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 { 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 }
|
||||
/* KeywordConstant */ .chroma .kc { color: #6ab825; font-weight: bold }
|
||||
/* KeywordDeclaration */ .chroma .kd { color: #6ab825; font-weight: bold }
|
||||
|
@ -1,8 +0,0 @@
|
||||
const backToTop = document.getElementById("back-to-top");
|
||||
window.onscroll = function() {
|
||||
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
|
||||
backToTop.style.display = "block";
|
||||
} else {
|
||||
backToTop.style.display = "none";
|
||||
}
|
||||
}
|
35
assets/js/bobatheme.js
Normal file
35
assets/js/bobatheme.js
Normal file
@ -0,0 +1,35 @@
|
||||
// back to top
|
||||
const backToTop = document.getElementById("back-to-top");
|
||||
window.onscroll = function() {
|
||||
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
|
||||
backToTop.style.display = "block";
|
||||
} else {
|
||||
backToTop.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
// code block copy to clipboard
|
||||
window.onload = () => {
|
||||
document.querySelectorAll(".code-block").forEach(codeBlock => {
|
||||
const button = codeBlock.querySelector(".code-header > .code-copy-button");
|
||||
|
||||
// lang will not be unset because we default it to text
|
||||
// clone it so it doesn't change the actual DOM element
|
||||
const codeElem = codeBlock.querySelector("code[data-lang]").cloneNode(true);
|
||||
// bashsession: remove command output lines
|
||||
codeElem.querySelectorAll(".go").forEach(e => e.parentNode.removeChild(e));
|
||||
// bashsession: remove prompt symbol
|
||||
codeElem.querySelectorAll(".gp").forEach(e => e.parentNode.removeChild(e));
|
||||
const rawCode = codeElem.innerText;
|
||||
|
||||
const originalCopyText = button.innerHTML;
|
||||
button.onclick = event => {
|
||||
navigator.clipboard.writeText(rawCode);
|
||||
// TODO: maybe we could add a fancier indicator, like a flash or something
|
||||
event.target.innerHTML = "Copied!";
|
||||
setTimeout(() => {
|
||||
event.target.innerHTML = originalCopyText;
|
||||
}, 3000);
|
||||
}
|
||||
});
|
||||
}
|
3
assets/js/share-event.js
Normal file
3
assets/js/share-event.js
Normal file
@ -0,0 +1,3 @@
|
||||
function share_event(service) {
|
||||
// this function does nothing by default
|
||||
}
|
@ -4,11 +4,10 @@ markup:
|
||||
lineNos: true
|
||||
|
||||
params:
|
||||
faviconICO: favicon.ico
|
||||
faviconPNG: favicon.png
|
||||
readingtime: true
|
||||
|
||||
taxonomies:
|
||||
category: categories
|
||||
tag: tags
|
||||
author: authors
|
||||
series: series
|
||||
|
@ -20,9 +20,9 @@ params:
|
||||
# these are for the OpenGraph/Twitter embeds in Hugo
|
||||
description: Example website for bobatheme
|
||||
|
||||
# these are for favicons in bobatheme (defaults are shown here)
|
||||
# faviconICO: favicon.ico
|
||||
# faviconPNG: favicon.png
|
||||
# these are for favicons in bobatheme (disabled by default)
|
||||
# faviconSVG: favicon.svg
|
||||
# appleTouchPNG: apple-touch-icon.png
|
||||
|
||||
# show reading time (enabled by default)
|
||||
# readingtime: true
|
||||
@ -30,6 +30,26 @@ params:
|
||||
# used for "View source" (unset by default)
|
||||
# gitFileURL: https://github.com/BBaoVanC/bobatheme/blob/master
|
||||
# gitFileIcon: github-circle
|
||||
# gitHistoryURL: https://github.com/BBaoVanC/bobatheme/commits/master
|
||||
|
||||
# display a "Latest Posts" section on the homepage below its content
|
||||
homepageLatestPosts: true
|
||||
|
||||
# social media share icons
|
||||
# shareButtons:
|
||||
# twitter: true
|
||||
# facebook: true
|
||||
# linkedin: true
|
||||
# reddit: true
|
||||
# telegram: true
|
||||
# print: true
|
||||
|
||||
# show "Latest Posts" section at bottom of content pages
|
||||
# latestPostsOnContent: true
|
||||
|
||||
# footer: >-
|
||||
# Some example text for the footer.
|
||||
|
||||
|
||||
# see https://gohugo.io/about/hugo-and-gdpr/#all-privacy-settings
|
||||
# you probably want to keep this default
|
||||
|
29
i18n/en.yaml
29
i18n/en.yaml
@ -8,6 +8,15 @@ table_of_contents:
|
||||
browser_no_video_support:
|
||||
other: "Your browser does not support video."
|
||||
|
||||
latest_posts:
|
||||
other: "Latest Posts"
|
||||
|
||||
see_also:
|
||||
other: "SEE ALSO:"
|
||||
|
||||
copy_to_clipboard:
|
||||
other: "Copy"
|
||||
|
||||
|
||||
# Meta items
|
||||
long_date:
|
||||
@ -21,6 +30,9 @@ readingtime:
|
||||
one: "{{ . }} min"
|
||||
other: "{{ . }} mins"
|
||||
|
||||
edit_history:
|
||||
other: "Edit history"
|
||||
|
||||
|
||||
# Post count
|
||||
no_posts:
|
||||
@ -35,8 +47,8 @@ post_count:
|
||||
read_more:
|
||||
other: "Read more"
|
||||
|
||||
see_also:
|
||||
other: "See also"
|
||||
related_posts:
|
||||
other: "Related Posts"
|
||||
|
||||
older_post:
|
||||
other: "Older"
|
||||
@ -55,12 +67,15 @@ aria_back_to_top_button:
|
||||
aria_rss_link:
|
||||
other: "RSS feed link"
|
||||
|
||||
aria_post_meta_view_source:
|
||||
other: "link to page source"
|
||||
aria_post_meta_edit_history:
|
||||
other: "link to page edit history"
|
||||
|
||||
aria_post_meta_translations:
|
||||
other: "translations"
|
||||
|
||||
aria_post_meta_categories:
|
||||
other: "categories"
|
||||
|
||||
aria_post_meta_tags:
|
||||
other: "tags"
|
||||
|
||||
@ -82,6 +97,9 @@ aria_post_metadata:
|
||||
aria_author_metadata:
|
||||
other: "author metadata"
|
||||
|
||||
aria_taxonomy_metadata:
|
||||
other: "taxonomy metadata"
|
||||
|
||||
aria_post_meta_date:
|
||||
other: "date"
|
||||
|
||||
@ -94,6 +112,9 @@ aria_author_post_count:
|
||||
aria_author_word_count:
|
||||
other: "word count"
|
||||
|
||||
aria_taxonomy_post_count:
|
||||
other: "post count"
|
||||
|
||||
aria_series_metadata:
|
||||
other: "series metadata"
|
||||
|
||||
|
35
i18n/es.yaml
35
i18n/es.yaml
@ -8,6 +8,15 @@ table_of_contents:
|
||||
browser_no_video_support:
|
||||
other: "Tu navegador de internet no admite video."
|
||||
|
||||
latest_posts:
|
||||
other: "Artículos recientes"
|
||||
|
||||
see_also:
|
||||
other: "Véase también:"
|
||||
|
||||
copy_to_clipboard:
|
||||
other: "Copiar"
|
||||
|
||||
|
||||
# Meta items
|
||||
long_date:
|
||||
@ -21,22 +30,25 @@ readingtime:
|
||||
one: "{{ . }} min"
|
||||
other: "{{ . }} mins"
|
||||
|
||||
edit_history:
|
||||
other: "Historial de cambios"
|
||||
|
||||
|
||||
# Post count
|
||||
no_posts:
|
||||
other: "¡No hay contenido para mostrar!"
|
||||
|
||||
# post_count:
|
||||
# one: "{{ . }} post"
|
||||
# other: "{{ . }} posts"
|
||||
post_count:
|
||||
one: "{{ . }} publicación"
|
||||
other: "{{ . }} publicaciones"
|
||||
|
||||
|
||||
# Navigation
|
||||
read_more:
|
||||
other: "Leer más"
|
||||
|
||||
see_also:
|
||||
other: "Véase también"
|
||||
related_posts:
|
||||
other: "Publicaciones similares"
|
||||
|
||||
older_post:
|
||||
other: "Más antiguo"
|
||||
@ -55,12 +67,15 @@ newer_post:
|
||||
# aria_rss_link:
|
||||
# other: "RSS feed link"
|
||||
|
||||
# aria_post_meta_view_source:
|
||||
# other: "link to page source"
|
||||
# aria_post_meta_edit_history:
|
||||
# other: "link to page edit history"
|
||||
|
||||
# aria_post_meta_translations:
|
||||
# other: "translations"
|
||||
|
||||
# aria_post_meta_categories:
|
||||
# other: "categories"
|
||||
|
||||
# aria_post_meta_tags:
|
||||
# other: "tags"
|
||||
|
||||
@ -82,6 +97,9 @@ newer_post:
|
||||
# aria_author_metadata:
|
||||
# other: "author metadata"
|
||||
|
||||
# aria_taxonomy_metadata:
|
||||
# other: "taxonomy metadata"
|
||||
|
||||
# aria_post_meta_date:
|
||||
# other: "date"
|
||||
|
||||
@ -94,6 +112,9 @@ newer_post:
|
||||
# aria_author_word_count:
|
||||
# other: "word count"
|
||||
|
||||
# aria_taxonomy_post_count:
|
||||
# other: "post count"
|
||||
|
||||
# aria_series_metadata:
|
||||
# other: "series metadata"
|
||||
|
||||
|
15
layouts/_default/_markup/render-codeblock.html
Normal file
15
layouts/_default/_markup/render-codeblock.html
Normal file
@ -0,0 +1,15 @@
|
||||
{{ $type := "text" }}
|
||||
{{ with .Type }}
|
||||
{{ $type = . }}
|
||||
{{ end }}
|
||||
<div class="code-block">
|
||||
<div class="code-header">
|
||||
<pre class="code-type">{{ $type }}</pre>
|
||||
<a href="javascript:void(0)" class="code-copy-button">
|
||||
{{ i18n "copy_to_clipboard" }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{/* a div.highlight is already created by highlight function */}}
|
||||
{{ highlight .Inner $type }}
|
||||
</div>
|
@ -14,17 +14,22 @@
|
||||
{{ partial "breadcrumb.html" . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="content">
|
||||
<main>
|
||||
{{ block "main" . }}
|
||||
{{ .Content }}
|
||||
THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it)
|
||||
{{ end }}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{{ with .Site.Copyright }}
|
||||
{{ if or .Site.Copyright .Site.Params.footer }}
|
||||
<footer>
|
||||
<hr>
|
||||
<small>
|
||||
{{ . | safeHTML }}
|
||||
{{ with .Site.Copyright }}
|
||||
<p>{{ . | safeHTML }}</p>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.footer }}
|
||||
{{ . | $.RenderString (dict "display" "block") }}
|
||||
{{ end }}
|
||||
</small>
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
@ -5,6 +5,10 @@
|
||||
{{ partial "rss-link.html" . }}
|
||||
</h1>
|
||||
|
||||
{{ with .Content }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="list-page-content">
|
||||
{{ with .Sections }}
|
||||
<div class="sections">
|
||||
@ -14,19 +18,7 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "page-list.html" .Paginator.Pages }}
|
||||
</div>
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
|
@ -7,25 +7,7 @@
|
||||
</div>
|
||||
|
||||
{{ partial "post-metadata/full.html" . }}
|
||||
|
||||
{{ with (.GetTerms "series") }}
|
||||
{{ $series := slice }}
|
||||
{{ range . }}
|
||||
{{ $series = $series | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
||||
{{ end }}
|
||||
|
||||
<div class="series-box">
|
||||
{{ partial "icon.html" "info" }}
|
||||
{{ if gt (len $series) 1 }}
|
||||
This post is part of multiple series:
|
||||
{{ else }}
|
||||
This post is part of a series:
|
||||
{{ end }}
|
||||
|
||||
{{ delimit $series ", " }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "series-box.html" . }}
|
||||
|
||||
{{ if .Params.Toc }}
|
||||
<div class="table-of-contents" aria-label="{{ i18n "aria_table_of_contents" }}">
|
||||
@ -42,27 +24,15 @@
|
||||
|
||||
{{ with .Resources.GetMatch "feature" }}
|
||||
<div class="post-media">
|
||||
{{ partial "figure.html" (dict "src" . "border" true) }}
|
||||
{{ partial "figure.html" (dict "src" .) }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ .Content }}
|
||||
<article class="post-content">
|
||||
{{ .Content }}
|
||||
</article>
|
||||
|
||||
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
||||
{{ with $related }}
|
||||
<div class="see-also">
|
||||
<h2>{{ i18n "see_also" }}</h2>
|
||||
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ partial "series-box.html" . }}
|
||||
|
||||
{{ if or .NextInSection .PrevInSection }}
|
||||
<div class="prevnext">
|
||||
@ -94,9 +64,26 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.shareButtons }}
|
||||
{{ partial "share.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.comments }}
|
||||
<div class="comments">
|
||||
{{ partial "comments.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ $related := .Site.RegularPages.Related . | first 10 }}
|
||||
{{ with $related }}
|
||||
<div class="related-posts full-width-page-list">
|
||||
<hr>
|
||||
<h1>{{ i18n "related_posts" }}</h1>
|
||||
{{ partial "page-list.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.latestPostsOnContent }}
|
||||
{{ partialCached "latest-posts.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -1,12 +1,12 @@
|
||||
<div class="post">
|
||||
<h2 class="post-title">
|
||||
<div class="author">
|
||||
<h2 class="author-name">
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h2>
|
||||
|
||||
{{ partial "post-metadata/author.html" . }}
|
||||
|
||||
<div class="post-description">
|
||||
<div class="author-description">
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</div>
|
||||
|
||||
|
@ -1,23 +1,21 @@
|
||||
<div class="post">
|
||||
<h2 class="post-title">
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h2>
|
||||
<h2 class="post-title">
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h2>
|
||||
|
||||
{{ partial "post-metadata/short.html" . }}
|
||||
{{ partial "post-metadata/short.html" . }}
|
||||
|
||||
{{ with .Resources.GetMatch "feature" }}
|
||||
<div class="post-media">
|
||||
{{ partial "figure.html" (dict "src" . "border" true) }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="post-description">
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
{{ with .Resources.GetMatch "feature" }}
|
||||
<div class="post-media">
|
||||
{{ partial "figure.html" (dict "src" .) }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="readmore">
|
||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||
</div>
|
||||
<div class="post-description">
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="readmore">
|
||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||
</div>
|
||||
|
@ -1,26 +1,24 @@
|
||||
<div class="post">
|
||||
<h2 class="post-title">
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h2>
|
||||
<h2 class="post-title">
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h2>
|
||||
|
||||
{{ partial "post-metadata/series.html" . }}
|
||||
{{ partial "post-metadata/series.html" . }}
|
||||
|
||||
<div class="post-description">
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</div>
|
||||
|
||||
<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 }}
|
||||
<li>{{ .Render "summary/series_post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="post-description">
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="series-page-list">
|
||||
{{ $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>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
@ -1,29 +1,27 @@
|
||||
<div class="post">
|
||||
<div class="post-series-position">
|
||||
{{ if .Scratch.Get "series_position" }}
|
||||
({{ .Scratch.Get "series_position" }}/{{ .Scratch.Get "series_total" }})
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<h2 class="post-title">
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h2>
|
||||
|
||||
{{ partial "post-metadata/short.html" . }}
|
||||
|
||||
{{ with .Resources.GetMatch "feature" }}
|
||||
<div class="post-media">
|
||||
{{ partial "figure.html" (dict "src" . "border" true) }}
|
||||
</div>
|
||||
<div class="post-series-position">
|
||||
{{ if .Scratch.Get "series_position" }}
|
||||
({{ .Scratch.Get "series_position" }}/{{ .Scratch.Get "series_total" }})
|
||||
{{ end }}
|
||||
|
||||
<div class="post-description">
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="readmore">
|
||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="post-title">
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h2>
|
||||
|
||||
{{ partial "post-metadata/short.html" . }}
|
||||
|
||||
{{ with .Resources.GetMatch "feature" }}
|
||||
<div class="post-media">
|
||||
{{ partial "figure.html" (dict "src" .) }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="post-description">
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="readmore">
|
||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||
</div>
|
||||
|
@ -4,13 +4,17 @@
|
||||
{{ .Title | markdownify }}
|
||||
</h1>
|
||||
|
||||
{{ with .Content }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/author" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ range . }}
|
||||
<article class="post">
|
||||
{{ .Render "summary/author" }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
|
@ -1,27 +1,19 @@
|
||||
{{ define "main" }}
|
||||
<h1>
|
||||
{{ partial "icon.html" "user-circle" }}
|
||||
{{ .Title | markdownify }}
|
||||
{{ partial "rss-link.html" . }}
|
||||
</h1>
|
||||
<div class="author-name">
|
||||
<h1>
|
||||
{{ partial "icon.html" "user-circle" }}
|
||||
{{ .Title | markdownify }}
|
||||
{{ partial "rss-link.html" . }}
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
{{ partial "post-metadata/author.html" . }}
|
||||
|
||||
{{ .Content }}
|
||||
{{ with .Content }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "page-list.html" .Paginator.Pages }}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
||||
|
21
layouts/home.html
Normal file
21
layouts/home.html
Normal file
@ -0,0 +1,21 @@
|
||||
{{ define "main" }}
|
||||
{{ with .Content }}
|
||||
<article class="homepage-content">
|
||||
{{ . }}
|
||||
</article>
|
||||
<hr>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.homepageLatestPosts }}
|
||||
<div class="homepage-latest-posts">
|
||||
<h1>
|
||||
{{ i18n "latest_posts" }}
|
||||
{{ partial "rss-link.html" . }}
|
||||
</h1>
|
||||
|
||||
{{ partial "page-list.html" (.Paginate .Site.RegularPages).Pages }}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
@ -1,2 +0,0 @@
|
||||
{{ define "main" }}
|
||||
{{ end }}
|
4
layouts/partials/additional-head.html
Normal file
4
layouts/partials/additional-head.html
Normal file
@ -0,0 +1,4 @@
|
||||
{{/*
|
||||
Create a file named `layouts/partials/additional-head.html` at your site root to
|
||||
add extra tags into <head>. Page variables are passed.
|
||||
*/}}
|
@ -11,7 +11,7 @@
|
||||
{{ if eq .MediaType.MainType "image" }}
|
||||
<img src="{{ $media.Permalink }}" alt="{{ $media.Title }}" />
|
||||
{{ else if eq .MediaType.MainType "video" }}
|
||||
<video controls>
|
||||
<video controls preload="metadata">
|
||||
<source src="{{ $media.Permalink }}" alt="{{ $media.Title }}">
|
||||
{{ i18n "browser_no_video_support" }}
|
||||
</video>
|
||||
|
@ -12,15 +12,19 @@
|
||||
{{ with resources.Get "css/syntax-light.css" | fingerprint "sha512" }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||
{{ end }}
|
||||
{{ with resources.Get "js/back-to-top.js" | fingerprint "sha512" }}
|
||||
|
||||
{{ with resources.Get "js/bobatheme.js" | fingerprint "sha512" }}
|
||||
<script defer src="{{ .Permalink }}" type="text/javascript" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
{{ end }}
|
||||
{{ with resources.Get "js/share-event.js" | fingerprint "sha512" }}
|
||||
<script defer src="{{ .Permalink }}" type="text/javascript" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.faviconICO }}
|
||||
<link rel="icon" type="image/x-icon" href="{{ . | absURL }}" />
|
||||
{{ with .Site.Params.faviconSVG }}
|
||||
<link rel="icon" href="{{ . | absURL }}" />
|
||||
{{ end }}
|
||||
{{ with .Site.Params.faviconPNG }}
|
||||
<link rel="icon" type="image/png" href="{{ . | absURL }}" />
|
||||
{{ with .Site.Params.appleTouchPNG }}
|
||||
<link rel="apple-touch-icon" href="{{ . | absURL }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ if .IsHome }}
|
||||
@ -36,5 +40,7 @@
|
||||
{{ partial "seo-tags/author.html" . }}
|
||||
|
||||
<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" . }}
|
||||
</head>
|
||||
|
@ -1,5 +1 @@
|
||||
{{- $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) -}}
|
||||
{{- $icon := $icon_resource.Content -}}
|
||||
{{- $icon = replaceRE `<svg` `<svg class="icon"` $icon -}}
|
||||
{{- $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon -}}
|
||||
{{- $icon | safeHTML -}}
|
||||
{{ partialCached "icon_code.html" . . }}
|
||||
|
6
layouts/partials/icon_code.html
Normal file
6
layouts/partials/icon_code.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{- $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) -}}
|
||||
{{- $icon := $icon_resource.Content -}}
|
||||
{{- $icon = replaceRE `<svg` `<svg class="icon"` $icon -}}
|
||||
{{- $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon -}}
|
||||
{{- $icon = replaceRE `(width|height)="[0-9]*"` "" $icon -}}
|
||||
{{- $icon | safeHTML -}}
|
11
layouts/partials/latest-posts.html
Normal file
11
layouts/partials/latest-posts.html
Normal file
@ -0,0 +1,11 @@
|
||||
<div class="latest-posts full-width-page-list">
|
||||
<hr>
|
||||
<h1>
|
||||
{{ i18n "latest_posts" }}
|
||||
{{ partial "rss-link.html" .Site.Home }}
|
||||
</h1>
|
||||
|
||||
{{ with .Site.RegularPages | first 5 }}
|
||||
{{ partial "page-list.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
13
layouts/partials/page-list.html
Normal file
13
layouts/partials/page-list.html
Normal file
@ -0,0 +1,13 @@
|
||||
<div class="page-list">
|
||||
{{ with . }}
|
||||
{{ range . }}
|
||||
<article class="post">
|
||||
{{ .Render "summary/post" }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
@ -1,5 +1,5 @@
|
||||
{{ if gt .Paginator.TotalPages 1 }}
|
||||
<div class="pagination">
|
||||
<nav class="pagination">
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</div>
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
11
layouts/partials/post-meta-item/categories.html
Normal file
11
layouts/partials/post-meta-item/categories.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{ with (.GetTerms "categories") }}
|
||||
{{ $categories := slice }}
|
||||
{{ range . }}
|
||||
{{ $categories = $categories | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
||||
{{ end }}
|
||||
|
||||
<div class="categories" aria-label="{{ i18n "aria_post_meta_categories" }}">
|
||||
{{ partial "icon.html" "folder" }}
|
||||
{{ delimit $categories ", " }}
|
||||
</div>
|
||||
{{ end }}
|
8
layouts/partials/post-meta-item/edithistory.html
Normal file
8
layouts/partials/post-meta-item/edithistory.html
Normal file
@ -0,0 +1,8 @@
|
||||
{{ if and .Site.Params.gitHistoryURL .File.Path }}
|
||||
<span class="post-meta-item post-meta-edit-history" aria-label="{{ i18n "aria_post_meta_edit_history" }}">
|
||||
{{ partial "icon.html" "history" }}
|
||||
<a href="{{ printf "%s/content/%s" .Site.Params.gitHistoryURL .File.Path }}" target="_blank" rel="noopener">
|
||||
{{- i18n "edit_history" -}}
|
||||
</a>
|
||||
</span>
|
||||
{{ end }}
|
@ -1,13 +0,0 @@
|
||||
{{ if and .Site.Params.gitFileURL .File.Path }}
|
||||
<span class="post-meta-item" aria-label="{{ i18n "aria_post_meta_view_source" }}">
|
||||
{{ with .Site.Params.gitFileIcon }}
|
||||
{{ partial "icon.html" . }}
|
||||
{{ else }}
|
||||
{{ partial "icon.html" "file" }}
|
||||
{{ end }}
|
||||
|
||||
<a href="{{ printf "%s/content/%s" .Site.Params.gitFileURL .File.Path }}" target="_blank" rel="noopener">
|
||||
View source
|
||||
</a>
|
||||
</span>
|
||||
{{ end }}
|
@ -1,16 +1,16 @@
|
||||
<div class="post-metadata" aria-label="{{ i18n "aria_author_metadata" }}">
|
||||
<div class="author-metadata" aria-label="{{ i18n "aria_author_metadata" }}">
|
||||
{{/* Calculate the total word count */}}
|
||||
{{ $total_words := 0 }}
|
||||
{{ range .Data.Pages }}
|
||||
{{ $total_words = add $total_words .WordCount }}
|
||||
{{ end }}
|
||||
|
||||
<span class="post-meta-item" aria-label="{{ i18n "aria_author_post_count" }}">
|
||||
<span class="author-meta-item" aria-label="{{ i18n "aria_author_post_count" }}">
|
||||
{{ partial "icon.html" "newspaper" }}
|
||||
{{ i18n "post_count" (len .Data.Pages) }}
|
||||
</span>
|
||||
|
||||
<span class="post-meta-item" aria-label="{{ i18n "aria_author_word_count" }}">
|
||||
<span class="author-meta-item" aria-label="{{ i18n "aria_author_word_count" }}">
|
||||
{{ partial "icon.html" "align-left" }}
|
||||
{{ i18n "wordcount" $total_words }}
|
||||
</span>
|
||||
|
@ -9,6 +9,7 @@
|
||||
</span>
|
||||
|
||||
{{/* TODO: make this be a tooltip */}}
|
||||
{{/* DISABLED
|
||||
{{ if ne (time.Format "2006-01-02" .Lastmod) (time.Format "2006-01-02" .Date) }}
|
||||
<span class="post-meta-item" aria-label="{{ i18n "aria_post_meta_modified_date" }}">
|
||||
{{ partial "icon.html" "pencil" }}
|
||||
@ -17,12 +18,14 @@
|
||||
</time>
|
||||
{{ end }}
|
||||
</span>
|
||||
*/}}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "post-meta-item/authors.html" . }}
|
||||
{{ partial "post-meta-item/translations.html" . }}
|
||||
{{ partial "post-meta-item/readingtime.html" . }}
|
||||
{{ partial "post-meta-item/viewsource.html" . }}
|
||||
{{ partial "post-meta-item/edithistory.html" . }}
|
||||
{{ partial "post-meta-item/categories.html" . }}
|
||||
{{ partial "post-meta-item/tags.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -16,7 +16,4 @@
|
||||
{{ end }}
|
||||
|
||||
{{ partial "post-meta-item/translations.html" . }}
|
||||
{{ if .File }}
|
||||
{{ partial "post-meta-item/viewsource.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
@ -13,6 +13,7 @@
|
||||
{{ partial "post-meta-item/translations.html" . }}
|
||||
{{ partial "post-meta-item/readingtime.html" . }}
|
||||
{{ partial "post-meta-item/series.html" . }}
|
||||
{{ partial "post-meta-item/categories.html" . }}
|
||||
{{ partial "post-meta-item/tags.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
6
layouts/partials/post-metadata/taxonomy.html
Normal file
6
layouts/partials/post-metadata/taxonomy.html
Normal file
@ -0,0 +1,6 @@
|
||||
<div class="taxonomy-metadata" aria-label="{{ i18n "aria_taxonomy_metadata" }}">
|
||||
<span class="taxonomy-meta-item" aria-label="{{ i18n "aria_taxonomy_post_count" }}">
|
||||
{{ partial "icon.html" "newspaper" }}
|
||||
{{ i18n "post_count" (len .Data.Pages) }}
|
||||
</span>
|
||||
</div>
|
@ -12,7 +12,7 @@
|
||||
{{ if eq $type "image" }}
|
||||
<img src="{{ $src }}" alt="{{ $alt }}" />
|
||||
{{ else if eq $type "video" }}
|
||||
<video controls>
|
||||
<video controls preload="metadata">
|
||||
<source src="{{ $src }}" alt="{{ $alt }}">
|
||||
{{ i18n "browser_no_video_support" }}
|
||||
</video>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<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:url" content="{{ .Permalink }}">
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<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" }}
|
||||
{{ with .Date }}
|
||||
@ -21,6 +21,10 @@
|
||||
<meta itemprop="image" content="{{ $featured.Permalink }}">
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.tags }}
|
||||
<meta itemprop="keywords" content="{{ delimit . ", " }}">
|
||||
{{ with (.GetTerms "tags") }}
|
||||
{{ $tags := slice }}
|
||||
{{ range . }}
|
||||
{{ $tags = $tags | append .LinkTitle }}
|
||||
{{ end }}
|
||||
<meta itemprop="keywords" content="{{ delimit $tags ", " }}">
|
||||
{{ end }}
|
||||
|
@ -22,7 +22,7 @@
|
||||
{{ end }}
|
||||
|
||||
<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 }}
|
||||
<meta name="twitter:site" content="@{{ . }}">
|
||||
|
17
layouts/partials/series-box.html
Normal file
17
layouts/partials/series-box.html
Normal file
@ -0,0 +1,17 @@
|
||||
{{ with (.GetTerms "series") }}
|
||||
{{ $series := slice }}
|
||||
{{ range . }}
|
||||
{{ $series = $series | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
||||
{{ end }}
|
||||
|
||||
<div class="series-box">
|
||||
{{ partial "icon.html" "info" }}
|
||||
{{ if gt (len $series) 1 }}
|
||||
This post is part of multiple series:
|
||||
{{ else }}
|
||||
This post is part of a series:
|
||||
{{ end }}
|
||||
|
||||
{{ delimit $series ", " }}
|
||||
</div>
|
||||
{{ end }}
|
63
layouts/partials/share.html
Normal file
63
layouts/partials/share.html
Normal file
@ -0,0 +1,63 @@
|
||||
<div class="share-buttons">
|
||||
{{ if .Site.Params.shareButtons.twitter }}
|
||||
<a class="twitter-share"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
onclick="share_event('Twitter');"
|
||||
href="https://twitter.com/intent/tweet?url={{ .Permalink }}&text={{ .Title }}&via=bbaovanc">
|
||||
{{- partial "icon.html" "twitter" -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.shareButtons.facebook }}
|
||||
<a class="facebook-share"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
onclick="share_event('Facebook');"
|
||||
href="https://www.facebook.com/sharer.php?u={{ .Permalink }}">
|
||||
{{- partial "icon.html" "facebook" -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.shareButtons.linkedin }}
|
||||
<a class="linkedin-share"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
onclick="share_event('LinkedIn');"
|
||||
href="https://www.linkedin.com/sharing/share-offsite/?url={{ .Permalink }}">
|
||||
{{- partial "icon.html" "linkedin" -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.shareButtons.reddit }}
|
||||
<a class="reddit-share"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
onclick="share_event('Reddit');"
|
||||
href="https://reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}">
|
||||
{{- partial "icon.html" "reddit" -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{/* Telegram icon doesn't have `viewbox` set, which breaks the sizing.
|
||||
https://stackoverflow.com/q/72073399/19003757
|
||||
https://github.com/michaelampr/jam/issues/39
|
||||
{{ if .Site.Params.shareButtons.telegram }}
|
||||
<a class="telegram-share"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
onclick="share_event('Telegram');"
|
||||
href="https://t.me/share/url?url={{ .Permalink }}&text={{ .Title }}">
|
||||
{{- partial "icon.html" "telegram" -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
*/}}
|
||||
|
||||
{{ if .Site.Params.shareButtons.print }}
|
||||
<a class="print-share"
|
||||
href="javascript:void(0)"
|
||||
onclick="window.print(); share_event('Print');">
|
||||
{{- partial "icon.html" "printer" -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
@ -1,6 +1,8 @@
|
||||
<h2 class="header">
|
||||
<a href="{{ .Site.Home.Permalink | absLangURL }}">{{ .Site.Title | markdownify }}</a>
|
||||
</h2>
|
||||
<header class="header">
|
||||
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||
{{ .Site.Title | markdownify }}
|
||||
</a>
|
||||
</header>
|
||||
|
||||
<div class="topbar">
|
||||
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
||||
@ -13,7 +15,9 @@
|
||||
{{ if or ($.HasMenuCurrent .Menu .) ($.IsMenuCurrent .Menu .) }}
|
||||
{{ $isActive = true }}
|
||||
{{ end }}
|
||||
<a class="navbar-item{{ if $isActive }} active{{ end }}" href="{{ .URL }}">{{ .Name }}</a>
|
||||
<a class="navbar-item{{ if $isActive }} active{{ end }}"
|
||||
{{ if strings.HasPrefix .URL "http" }}target="_blank" rel="noopener"{{ end }}
|
||||
href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
|
||||
|
@ -4,13 +4,17 @@
|
||||
{{ .Title | markdownify }}
|
||||
</h1>
|
||||
|
||||
<div class="series-taxonomy">
|
||||
{{ with .Content }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="series-taxonomy-list">
|
||||
{{ with .Pages }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/series" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ range . }}
|
||||
<article class="series-taxonomy">
|
||||
{{ .Render "summary/series" }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
|
@ -7,26 +7,14 @@
|
||||
|
||||
{{ partial "post-metadata/series.html" . }}
|
||||
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
{{ with .Content }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
{{ with .Paginator.Pages.Reverse }}
|
||||
{{ partial "page-list.html" . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages.Reverse }}
|
||||
<ul>
|
||||
{{ $i := 0 }}
|
||||
{{ $total := len $.Pages }}
|
||||
{{ range . }}
|
||||
{{ $i = add 1 $i }}
|
||||
{{ .Scratch.Set "series_position" $i }}
|
||||
{{ .Scratch.Set "series_total" $total }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
||||
|
5
layouts/shortcodes/abbr.html
Normal file
5
layouts/shortcodes/abbr.html
Normal file
@ -0,0 +1,5 @@
|
||||
{{ if .IsNamedParams }}
|
||||
<abbr title="{{ .Get "title" }}">{{ .Inner }}</abbr>
|
||||
{{ else }}
|
||||
<abbr title="{{ .Get 0 }}">{{ .Inner }}</abbr>
|
||||
{{ end }}
|
@ -1,7 +1,28 @@
|
||||
<aside>
|
||||
{{ with .Inner }}
|
||||
{{ . | markdownify }}
|
||||
{{ else }}
|
||||
{{ errorf "The aside shortcode needs to be a closing one (similar to the highlight shortcode, see https://gohugo.io/templates/shortcode-templates/#inner" }}
|
||||
{{ end }}
|
||||
{{ $type := "" }}
|
||||
{{ if .IsNamedParams }}
|
||||
{{ $type = .Get "type" | default "note" }}
|
||||
{{ else }}
|
||||
{{ $type = .Get 0 | default "note" }}
|
||||
{{ end }}
|
||||
|
||||
{{/* This idea comes from the LoveIt theme:
|
||||
https://github.com/dillonzq/LoveIt/blob/aa834e89af8349f6c18d4c7ad50a73fd5f1e40e0/layouts/shortcodes/admonition.html#L3-L14
|
||||
*/}}
|
||||
|
||||
{{ $icons := dict "note" "pencil" }}
|
||||
{{ $icons = dict "info" "info" | merge $icons }}
|
||||
{{ $icons = dict "tip" "lightbulb" | merge $icons }}
|
||||
{{ $icons = dict "warning" "info" | merge $icons }}
|
||||
{{ $icons = dict "example" "flask" | merge $icons }}
|
||||
{{ $icons = dict "quote" "quote" | merge $icons }}
|
||||
|
||||
<aside class="{{ $type }}">
|
||||
<div class="aside-title">
|
||||
{{ partial "icon.html" (index $icons $type) }}
|
||||
{{ title $type }}
|
||||
</div>
|
||||
|
||||
<div class="aside-content">
|
||||
{{ .Inner | .Page.RenderString (dict "display" "block") }}
|
||||
</div>
|
||||
</aside>
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{ $resource := $.Page.Resources.GetMatch (.Get "src") }}
|
||||
{{ $resource := .Page.Resources.GetMatch (.Get "src") }}
|
||||
|
||||
{{ $noborder := false }}
|
||||
{{ if .Get "noborder" }}
|
||||
|
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">
|
@ -1,13 +0,0 @@
|
||||
{{ $border := false }}
|
||||
{{ if .Get "border" }}
|
||||
{{ $border = true }}
|
||||
{{ end }}
|
||||
|
||||
{{ $hidecaption := false }}
|
||||
{{ if .Get "hidecaption" }}
|
||||
{{ $hidecaption = true }}
|
||||
{{ end }}
|
||||
|
||||
<p>
|
||||
{{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" "image" "alt" (.Get "alt")) }}
|
||||
</p>
|
@ -9,5 +9,5 @@
|
||||
{{ end }}
|
||||
|
||||
<p>
|
||||
{{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" "video" "alt" (.Get "alt")) }}
|
||||
{{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" (.Get "type") "alt" (.Get "alt")) }}
|
||||
</p>
|
7
layouts/shortcodes/see-also.html
Normal file
7
layouts/shortcodes/see-also.html
Normal file
@ -0,0 +1,7 @@
|
||||
<div class="see-also">
|
||||
{{ with .Site.GetPage (.Get 0) }}
|
||||
<p>{{ i18n "see_also" }} <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></p>
|
||||
{{ else }}
|
||||
{{ errorf "Page could not be found for see-also shortcode: %s" .Position }}
|
||||
{{ end }}
|
||||
</div>
|
10
layouts/shortcodes/table.html
Normal file
10
layouts/shortcodes/table.html
Normal file
@ -0,0 +1,10 @@
|
||||
{{/* See https://willschenk.com/articles/2020/styling_tables_with_hugo/ */}}
|
||||
|
||||
{{ $class := "markdown" }}
|
||||
{{ with .Get "class" }}
|
||||
{{ $class = delimit (slice $class .) " " }}
|
||||
{{ end }}
|
||||
|
||||
{{ $htmlTable := .Inner | markdownify }}
|
||||
{{ $new := printf `<table class="%s">` $class }}
|
||||
{{ (replace $htmlTable "<table>" $new) | safeHTML }}
|
@ -1,22 +0,0 @@
|
||||
{{ define "main" }}
|
||||
<h1>
|
||||
{{ partial "icon.html" "tag" }}
|
||||
{{ .Title | markdownify }}
|
||||
</h1>
|
||||
|
||||
<div class="tag-list">
|
||||
{{ with .Data.Terms.Alphabetical }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<a href="{{ .Page.Permalink }}">
|
||||
<li>{{ .Page.Title | markdownify }}</li>
|
||||
</a>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
@ -1,24 +0,0 @@
|
||||
{{ define "main" }}
|
||||
<h1>
|
||||
{{ partial "icon.html" "tag" }}
|
||||
{{ .Title | markdownify }}
|
||||
{{ partial "rss-link.html" . }}
|
||||
</h1>
|
||||
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
@ -1,23 +1,37 @@
|
||||
{{ define "main" }}
|
||||
<h1>
|
||||
{{ if eq .Data.Singular "tag" }}
|
||||
{{ partial "icon.html" "tag" }}
|
||||
{{ else }}
|
||||
{{ partial "icon.html" "filter" }}
|
||||
{{ end }}
|
||||
<div class="post-title">
|
||||
<h1>
|
||||
{{ if eq .Data.Singular "tag" }}
|
||||
{{ partial "icon.html" "tag" }}
|
||||
{{ else if eq .Data.Singular "category" }}
|
||||
{{ partial "icon.html" "folder" }}
|
||||
{{ else }}
|
||||
{{ partial "icon.html" "filter" }}
|
||||
{{ end }}
|
||||
|
||||
{{ .Title | markdownify }}
|
||||
</h1>
|
||||
{{ .Title | markdownify }}
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<div class="taxonomy">
|
||||
{{ with .Content }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="taxonomy-list">
|
||||
{{ with .Data.Terms.Alphabetical }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>
|
||||
<a href="{{ .Page.Permalink }}">{{ .Page.Title | markdownify }}</a>
|
||||
</li>
|
||||
{{ range . }}
|
||||
{{ with .Page }}
|
||||
<article class="taxonomy-term">
|
||||
<div class="taxonomy-list-left">
|
||||
<a href="{{ .Permalink }}">
|
||||
<p>{{ .Title | markdownify }}</p>
|
||||
</a>
|
||||
{{ partial "post-metadata/taxonomy.html" . }}
|
||||
</div>
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</article>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
|
@ -1,29 +1,26 @@
|
||||
{{ define "main" }}
|
||||
<h1>
|
||||
{{ if eq .Data.Singular "tag" }}
|
||||
{{ partial "icon.html" "tag" }}
|
||||
{{ else }}
|
||||
{{ partial "icon.html" "filter" }}
|
||||
{{ end }}
|
||||
<div class="post-title">
|
||||
<h1>
|
||||
{{ if eq .Data.Singular "tag" }}
|
||||
{{ partial "icon.html" "tag" }}
|
||||
{{ else if eq .Data.Singular "category" }}
|
||||
{{ partial "icon.html" "folder" }}
|
||||
{{ else }}
|
||||
{{ partial "icon.html" "filter" }}
|
||||
{{ end }}
|
||||
|
||||
{{ .Title | markdownify }}
|
||||
{{ partial "rss-link.html" . }}
|
||||
</h1>
|
||||
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ .Title | markdownify }}
|
||||
{{ partial "rss-link.html" . }}
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
{{ partial "post-metadata/taxonomy.html" . }}
|
||||
|
||||
{{ with .Content }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "page-list.html" .Paginator.Pages }}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
||||
|
10
static/font/jetbrainsmono/AUTHORS.txt
Normal file
10
static/font/jetbrainsmono/AUTHORS.txt
Normal file
@ -0,0 +1,10 @@
|
||||
# This is the official list of project authors for copyright purposes.
|
||||
# This file is distinct from the CONTRIBUTORS.txt file.
|
||||
# See the latter for an explanation.
|
||||
#
|
||||
# Names should be added to this file as:
|
||||
# Name or Organization <email address>
|
||||
|
||||
JetBrains <>
|
||||
Philipp Nurullin <philipp.nurullin@jetbrains.com>
|
||||
Konstantin Bulenkov <kb@jetbrains.com>
|
Binary file not shown.
93
static/font/jetbrainsmono/OFL.txt
Normal file
93
static/font/jetbrainsmono/OFL.txt
Normal file
@ -0,0 +1,93 @@
|
||||
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
https://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
93
static/font/opensans/OFL.txt
Normal file
93
static/font/opensans/OFL.txt
Normal file
@ -0,0 +1,93 @@
|
||||
Copyright 2020 The Open Sans Project Authors (https://github.com/googlefonts/opensans)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
Binary file not shown.
100
static/font/opensans/README.txt
Normal file
100
static/font/opensans/README.txt
Normal file
@ -0,0 +1,100 @@
|
||||
Open Sans Variable Font
|
||||
=======================
|
||||
|
||||
This download contains Open Sans as both variable fonts and static fonts.
|
||||
|
||||
Open Sans is a variable font with these axes:
|
||||
wdth
|
||||
wght
|
||||
|
||||
This means all the styles are contained in these files:
|
||||
OpenSans-VariableFont_wdth,wght.ttf
|
||||
OpenSans-Italic-VariableFont_wdth,wght.ttf
|
||||
|
||||
If your app fully supports variable fonts, you can now pick intermediate styles
|
||||
that aren’t available as static fonts. Not all apps support variable fonts, and
|
||||
in those cases you can use the static font files for Open Sans:
|
||||
static/OpenSans_Condensed/OpenSans_Condensed-Light.ttf
|
||||
static/OpenSans_Condensed/OpenSans_Condensed-Regular.ttf
|
||||
static/OpenSans_Condensed/OpenSans_Condensed-Medium.ttf
|
||||
static/OpenSans_Condensed/OpenSans_Condensed-SemiBold.ttf
|
||||
static/OpenSans_Condensed/OpenSans_Condensed-Bold.ttf
|
||||
static/OpenSans_Condensed/OpenSans_Condensed-ExtraBold.ttf
|
||||
static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Light.ttf
|
||||
static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Regular.ttf
|
||||
static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Medium.ttf
|
||||
static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-SemiBold.ttf
|
||||
static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Bold.ttf
|
||||
static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-ExtraBold.ttf
|
||||
static/OpenSans/OpenSans-Light.ttf
|
||||
static/OpenSans/OpenSans-Regular.ttf
|
||||
static/OpenSans/OpenSans-Medium.ttf
|
||||
static/OpenSans/OpenSans-SemiBold.ttf
|
||||
static/OpenSans/OpenSans-Bold.ttf
|
||||
static/OpenSans/OpenSans-ExtraBold.ttf
|
||||
static/OpenSans_Condensed/OpenSans_Condensed-LightItalic.ttf
|
||||
static/OpenSans_Condensed/OpenSans_Condensed-Italic.ttf
|
||||
static/OpenSans_Condensed/OpenSans_Condensed-MediumItalic.ttf
|
||||
static/OpenSans_Condensed/OpenSans_Condensed-SemiBoldItalic.ttf
|
||||
static/OpenSans_Condensed/OpenSans_Condensed-BoldItalic.ttf
|
||||
static/OpenSans_Condensed/OpenSans_Condensed-ExtraBoldItalic.ttf
|
||||
static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-LightItalic.ttf
|
||||
static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Italic.ttf
|
||||
static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-MediumItalic.ttf
|
||||
static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-SemiBoldItalic.ttf
|
||||
static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-BoldItalic.ttf
|
||||
static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-ExtraBoldItalic.ttf
|
||||
static/OpenSans/OpenSans-LightItalic.ttf
|
||||
static/OpenSans/OpenSans-Italic.ttf
|
||||
static/OpenSans/OpenSans-MediumItalic.ttf
|
||||
static/OpenSans/OpenSans-SemiBoldItalic.ttf
|
||||
static/OpenSans/OpenSans-BoldItalic.ttf
|
||||
static/OpenSans/OpenSans-ExtraBoldItalic.ttf
|
||||
|
||||
Get started
|
||||
-----------
|
||||
|
||||
1. Install the font files you want to use
|
||||
|
||||
2. Use your app's font picker to view the font family and all the
|
||||
available styles
|
||||
|
||||
Learn more about variable fonts
|
||||
-------------------------------
|
||||
|
||||
https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
|
||||
https://variablefonts.typenetwork.com
|
||||
https://medium.com/variable-fonts
|
||||
|
||||
In desktop apps
|
||||
|
||||
https://theblog.adobe.com/can-variable-fonts-illustrator-cc
|
||||
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
|
||||
|
||||
Online
|
||||
|
||||
https://developers.google.com/fonts/docs/getting_started
|
||||
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
|
||||
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
|
||||
|
||||
Installing fonts
|
||||
|
||||
MacOS: https://support.apple.com/en-us/HT201749
|
||||
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
|
||||
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
|
||||
|
||||
Android Apps
|
||||
|
||||
https://developers.google.com/fonts/docs/android
|
||||
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
|
||||
|
||||
License
|
||||
-------
|
||||
Please read the full license text (OFL.txt) to understand the permissions,
|
||||
restrictions and requirements for usage, redistribution, and modification.
|
||||
|
||||
You can use them in your products & projects – print or digital,
|
||||
commercial or otherwise.
|
||||
|
||||
This isn't legal advice, please consider consulting a lawyer and see the full
|
||||
license for all details.
|
@ -8,7 +8,7 @@ description = "Simple Hugo theme for boba.best and bbaovanc.com"
|
||||
homepage = "https://bbaovanc.com"
|
||||
tags = []
|
||||
features = []
|
||||
min_version = "0.80.0"
|
||||
min_version = "0.93.0"
|
||||
|
||||
[author]
|
||||
name = "bbaovanc"
|
||||
|
Reference in New Issue
Block a user