mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-09-02 17:37:35 -05:00
Compare commits
24 Commits
share-butt
...
3d55a7dabe
Author | SHA1 | Date | |
---|---|---|---|
3d55a7dabe
|
|||
67de113bdf
|
|||
349672bbad
|
|||
ec382b2085
|
|||
21f2a91b54
|
|||
0237c496ed
|
|||
61d5ca29dd
|
|||
8bb8720545
|
|||
bd8e34a381
|
|||
62cdcf5b11
|
|||
c9909762d6
|
|||
cc4af0c385
|
|||
7aeb95a437
|
|||
14475c13f4
|
|||
6b729c6acf
|
|||
f751c4b104
|
|||
de20387b5a
|
|||
84004d3ac0
|
|||
52a6440011
|
|||
322928ed7a
|
|||
4e753395ba
|
|||
5d335647d0
|
|||
22fff1a9c5
|
|||
b79c956c07
|
@@ -158,61 +158,38 @@ pre > code {
|
|||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* Basic elements {{{ */
|
/* Common distances/sizes {{{ */
|
||||||
|
|
||||||
html {
|
:root {
|
||||||
scroll-behavior: smooth;
|
--page-margin: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (prefers-reduced-motion: reduce) {
|
/* }}} */
|
||||||
html {
|
|
||||||
scroll-behavior: auto;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
background-color: var(--background-0);
|
|
||||||
color: var(--text-0);
|
|
||||||
overflow-wrap: break-word;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main-container {
|
/* Common elements {{{ */
|
||||||
margin: 20px auto;
|
|
||||||
padding: 0 20px;
|
|
||||||
max-width: 760px; /* 720px + 20px for left & right padding */
|
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
|
||||||
margin: 20px 0;
|
|
||||||
text-align: center;
|
|
||||||
font-size: smaller;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer p {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
img,
|
img,
|
||||||
video {
|
video {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-media > figure img,
|
figure > .figure-media {
|
||||||
.post-media > figure video {
|
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border: 7px solid var(--figure-border);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
figure img,
|
figure > .figure-media.border {
|
||||||
figure video {
|
|
||||||
padding: 5px;
|
|
||||||
border: 2px solid var(--figure-border);
|
border: 2px solid var(--figure-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-media > figure > .figure-media {
|
||||||
|
border: 7px solid var(--figure-border);
|
||||||
|
}
|
||||||
|
|
||||||
figure {
|
figure {
|
||||||
margin: auto;
|
display: block;
|
||||||
display: inline-block;
|
text-align: center;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
figcaption {
|
figcaption {
|
||||||
@@ -240,14 +217,6 @@ 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.simple {
|
table.simple {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border: 2px solid var(--text-1);
|
border: 2px solid var(--text-1);
|
||||||
@@ -307,12 +276,54 @@ table.simple tbody tr:nth-child(even) {
|
|||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
|
||||||
/* Heading formatting (article section titles) {{{ */
|
/* Baseof formatting {{{ */
|
||||||
|
|
||||||
/* this is also used i.e. in page-title */
|
html {
|
||||||
.heading-link {
|
scroll-behavior: smooth;
|
||||||
color: inherit;
|
}
|
||||||
font-weight: bold;
|
|
||||||
|
@media screen and (prefers-reduced-motion: reduce) {
|
||||||
|
html {
|
||||||
|
scroll-behavior: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: var(--background-0);
|
||||||
|
color: var(--text-0);
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-container {
|
||||||
|
margin: var(--page-margin) auto;
|
||||||
|
/* use padding because otherwise there's no way to have margin be both auto, and a minimum value */
|
||||||
|
padding: 0 var(--page-margin);
|
||||||
|
max-width: calc(720px + 2 * var(--page-margin)); /* padding is included in the element's width */
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
margin: var(--page-margin) 0;
|
||||||
|
text-align: center;
|
||||||
|
font-size: smaller;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer p {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#skip-to-main {
|
||||||
|
position: absolute;
|
||||||
|
padding: 8px;
|
||||||
|
background-color: var(--text-0);
|
||||||
|
color: var(--background-0);
|
||||||
|
transform: translateY(-100%);
|
||||||
|
}
|
||||||
|
#skip-to-main:focus {
|
||||||
|
transform: translateY(0%);
|
||||||
|
}
|
||||||
|
#main-content:target {
|
||||||
|
animation: none; /* prevent it from turning yellow */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
@@ -325,23 +336,30 @@ table.simple tbody tr:nth-child(even) {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
background-color: var(--background-1);
|
background-color: var(--background-1);
|
||||||
|
/* padding can't be here because then the first navbar element will be shifted too far over,
|
||||||
|
* or it will need its hover background to be chopped off on the left */
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.brand {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
margin: 8px 16px;
|
margin: 8px var(--page-margin);
|
||||||
font-size: 1.25em;
|
font-size: 1.25em;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.brand a {
|
||||||
|
color: inherit;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-item {
|
.navbar-item {
|
||||||
padding: 12px 16px;
|
padding: 12px var(--page-margin);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -356,26 +374,10 @@ table.simple tbody tr:nth-child(even) {
|
|||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* Skip to main content {{{ */
|
|
||||||
#skip-to-main {
|
|
||||||
position: absolute;
|
|
||||||
padding: 8px;
|
|
||||||
background-color: var(--text-0);
|
|
||||||
color: var(--background-0);
|
|
||||||
transform: translateY(-100%);
|
|
||||||
}
|
|
||||||
#skip-to-main:focus {
|
|
||||||
transform: translateY(0%);
|
|
||||||
}
|
|
||||||
#main-content:target {
|
|
||||||
animation: none; /* prevent it from turning yellow */
|
|
||||||
}
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* Breadcrumb navigation {{{ */
|
/* Breadcrumb navigation {{{ */
|
||||||
|
|
||||||
.breadcrumb {
|
.breadcrumb {
|
||||||
margin: 20px 0;
|
margin: var(--page-margin) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.breadcrumb ul {
|
.breadcrumb ul {
|
||||||
@@ -483,6 +485,10 @@ table.simple tbody tr:nth-child(even) {
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-title a {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
.page-title h1 {
|
.page-title h1 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
@@ -500,6 +506,14 @@ table.simple tbody tr:nth-child(even) {
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:is(
|
||||||
|
.page-metadata-section:is(.categories, .tags, .series),
|
||||||
|
.page-metadata-item.authors
|
||||||
|
) > a:not(:last-child):after {
|
||||||
|
color: var(--text-0);
|
||||||
|
content: ",";
|
||||||
|
}
|
||||||
|
|
||||||
.post-media {
|
.post-media {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
@@ -626,14 +640,10 @@ table.simple tbody tr:nth-child(even) {
|
|||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.view-section {
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
|
||||||
/* Content (single) formatting {{{ */
|
/* Components exclusive to content/single pages {{{ */
|
||||||
|
|
||||||
.series-box {
|
.series-box {
|
||||||
background-color: var(--background-1);
|
background-color: var(--background-1);
|
||||||
@@ -697,19 +707,6 @@ table.simple tbody tr:nth-child(even) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Previous and next page buttons {{{ */
|
/* Previous and next page buttons {{{ */
|
||||||
|
|
||||||
.prevnext {
|
.prevnext {
|
||||||
@@ -760,6 +757,45 @@ table.simple tbody tr:nth-child(even) {
|
|||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
/* Related posts section {{{ */
|
||||||
|
|
||||||
|
/* set the margins on the contents instead of the parent .related-posts
|
||||||
|
* so that the posts in the list clip off the edge of the screen,
|
||||||
|
* which makes a more obvious indicator that it's scrollable
|
||||||
|
*/
|
||||||
|
|
||||||
|
.related-posts > hr,
|
||||||
|
.related-posts > h1 {
|
||||||
|
margin: var(--page-margin);
|
||||||
|
}
|
||||||
|
|
||||||
|
.related-posts .page {
|
||||||
|
min-width: 300px;
|
||||||
|
max-width: 300px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.related-posts .page:first-child {
|
||||||
|
margin-left: var(--page-margin);
|
||||||
|
}
|
||||||
|
.related-posts .page:last-child {
|
||||||
|
margin-right: var(--page-margin);
|
||||||
|
}
|
||||||
|
|
||||||
|
.related-posts .page-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 20px;
|
||||||
|
overflow-x: auto;
|
||||||
|
margin-bottom: var(--page-margin);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* }}} */
|
||||||
|
|
||||||
|
/* }}} */
|
||||||
|
|
||||||
|
/* Content components (can appear both in single and list pages) {{{ */
|
||||||
|
|
||||||
/* Code & code blocks {{{ */
|
/* Code & code blocks {{{ */
|
||||||
.code-block {
|
.code-block {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -776,10 +812,13 @@ table.simple tbody tr:nth-child(even) {
|
|||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
border-top-left-radius: 8px;
|
border-top-left-radius: 8px;
|
||||||
border-top-right-radius: 8px;
|
border-top-right-radius: 8px;
|
||||||
|
height: 2em;
|
||||||
|
}
|
||||||
|
.code-block > .code-header > * {
|
||||||
|
margin: auto 0;
|
||||||
}
|
}
|
||||||
.code-block > .code-header > .code-type {
|
.code-block > .code-header > .code-type {
|
||||||
border-top-left-radius: 8px;
|
border-top-left-radius: 8px;
|
||||||
margin: auto 0;
|
|
||||||
}
|
}
|
||||||
/* TODO: make the code copy button prettier */
|
/* TODO: make the code copy button prettier */
|
||||||
.code-block > .code-header > .code-copy-button {
|
.code-block > .code-header > .code-copy-button {
|
||||||
@@ -873,44 +912,23 @@ aside.quote {
|
|||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* }}} */
|
/* See also formating */
|
||||||
|
.see-also {
|
||||||
/* Related posts section {{{ */
|
background-color: var(--background-1);
|
||||||
|
color: var(--text-1);
|
||||||
.full-width-page-list {
|
padding: 8px 12px;
|
||||||
/* make left/right 0 margin so it takes up full width */
|
border-radius: 8px;
|
||||||
margin: 25px 0;
|
margin: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.related-posts > hr,
|
.see-also p {
|
||||||
.related-posts > h1 {
|
margin: 0;
|
||||||
margin-left: 20px;
|
|
||||||
margin-right: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.related-posts .page {
|
|
||||||
min-width: 300px;
|
|
||||||
max-width: 300px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.related-posts .page:first-child {
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
.related-posts .page:last-child {
|
|
||||||
margin-right: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.related-posts .page-list {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
gap: 20px;
|
|
||||||
overflow-x: scroll;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* @media specializations {{{ */
|
/* @media specializations {{{ */
|
||||||
|
|
||||||
/* Light mode */
|
/* Light mode */
|
||||||
|
@@ -1,3 +1,14 @@
|
|||||||
|
.comments > h2 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.comments .email-address-notice {
|
||||||
|
margin: 0;
|
||||||
|
font-size: smaller;
|
||||||
|
}
|
||||||
|
.comments .enable-javascript-notice {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
/* Isso styling */
|
/* Isso styling */
|
||||||
h4.isso-thread-heading {
|
h4.isso-thread-heading {
|
||||||
color: var(--text-0);
|
color: var(--text-0);
|
||||||
|
4
assets/css/noscript.css
Normal file
4
assets/css/noscript.css
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
.page-meta-comments-counter,
|
||||||
|
.code-copy-button {
|
||||||
|
display: none;
|
||||||
|
}
|
@@ -1,15 +1,20 @@
|
|||||||
|
{{/* put comments CSS here instead of in <head> so that it doesn't get
|
||||||
|
* loaded unnecessarily on regular pages
|
||||||
|
*/}}
|
||||||
{{ with resources.Get "css/comments.css" | fingerprint "sha512" }}
|
{{ with resources.Get "css/comments.css" | fingerprint "sha512" }}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<h2 style="margin-bottom: 0;">Comments</h2>
|
<h2>Comments</h2>
|
||||||
<p style="margin: 0; font-size: smaller;">
|
<p class="email-address-notice">
|
||||||
If you provide an email address, you can enable notifications for
|
If you provide an email address, you can enable notifications for
|
||||||
replies to your comment. It will not be shown publicly.
|
replies to your comment. It will not be shown publicly.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<noscript>
|
<noscript>
|
||||||
<i>Enable JavaScript to see the comment section.</i>
|
<p class="enable-javascript-notice">
|
||||||
|
Enable JavaScript to see the comment section.
|
||||||
|
</p>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|
||||||
<section id="isso-thread" data-title="{{ .Title }}"></section>
|
<section id="isso-thread" data-title="{{ .Title }}"></section>
|
||||||
|
@@ -1,7 +0,0 @@
|
|||||||
{{ with .Description }}
|
|
||||||
<p>{{ . | markdownify }}</p>
|
|
||||||
{{ else }}
|
|
||||||
{{ with .Summary }}
|
|
||||||
{{ . }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
@@ -3,9 +3,9 @@
|
|||||||
* claims that images won't work with JS disabled since it would
|
* claims that images won't work with JS disabled since it would
|
||||||
* make tracking possible, but my experience says otherwise
|
* make tracking possible, but my experience says otherwise
|
||||||
*/}}
|
*/}}
|
||||||
<img src="{{ .Permalink }}" {{ with .Params.alt }}alt="{{ . }}"{{ end }} />
|
<img class="figure-media" src="{{ .Permalink }}" {{ with .Params.alt }}alt="{{ . }}"{{ end }} />
|
||||||
{{ else if eq .ResourceType "video" }}
|
{{ else if eq .ResourceType "video" }}
|
||||||
<video controls preload="metadata">
|
<video class="figure-media" controls preload="metadata">
|
||||||
{{ with .Params.alt }}
|
{{ with .Params.alt }}
|
||||||
{{ warnf "video does not support alt text, '%s'" . }}
|
{{ warnf "video does not support alt text, '%s'" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -6,6 +6,12 @@
|
|||||||
{{ with resources.Get "css/bobastyle.css" | fingerprint "sha512" }}
|
{{ with resources.Get "css/bobastyle.css" | fingerprint "sha512" }}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ with resources.Get "css/noscript.css" | fingerprint "sha512" }}
|
||||||
|
<noscript>
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||||
|
</noscript>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ with resources.Get "css/syntax.css" | fingerprint "sha512" }}
|
{{ with resources.Get "css/syntax.css" | fingerprint "sha512" }}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" media="print" onload="this.media='all'">
|
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" media="print" onload="this.media='all'">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,16 +1,9 @@
|
|||||||
{{ with .Params.authors }}
|
{{ with .GetTerms "authors" }}
|
||||||
<span class="page-metadata-item" data-pagefind-meta="authors" aria-label="{{ i18n "aria_post_meta_authors" }}">
|
<span class="page-metadata-item authors" aria-label="{{ i18n "aria_post_meta_authors" }}">
|
||||||
{{ partial "icon.html" "user-circle" }}
|
{{ partial "icon.html" "user-circle" }}
|
||||||
|
|
||||||
{{ if index $.Site.Taxonomies "authors" }}
|
{{ range . }}
|
||||||
{{ $authors := slice }}
|
<a href="{{ .Permalink }}" data-pagefind-filter="author">{{ .LinkTitle }}</a>
|
||||||
{{ range . }}
|
|
||||||
{{ $url := (printf "authors/%s" (. | anchorize)) | absLangURL }}
|
|
||||||
{{ $authors = $authors | append (printf `<a href="%s">%s</a>` $url .) }}
|
|
||||||
{{ end }}
|
|
||||||
{{ delimit $authors ", " | safeHTML }}
|
|
||||||
{{ else }}
|
|
||||||
{{ delimit . ", " }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -4,8 +4,10 @@
|
|||||||
{{ $categories = $categories | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
{{ $categories = $categories | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="page-metadata-section categories" data-pagefind-meta="categories" aria-label="{{ i18n "aria_post_meta_categories" }}">
|
<div class="page-metadata-section categories" aria-label="{{ i18n "aria_post_meta_categories" }}">
|
||||||
{{ partial "icon.html" "folder" }}
|
{{ partial "icon.html" "folder" }}
|
||||||
{{ delimit $categories ", " | safeHTML }}
|
{{ range . }}
|
||||||
|
<a href="{{ .Permalink }}" data-pagefind-filter="category">{{ .LinkTitle }}</a>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<span class="page-metadata-item" aria-label="comments counter">
|
<span class="page-metadata-item page-meta-comments-counter" aria-label="comments counter">
|
||||||
{{ partial "icon.html" "message" }}
|
{{ partial "icon.html" "message" }}
|
||||||
{{/* TODO: figure out if there's a nicer way to generate this URL
|
{{/* TODO: figure out if there's a nicer way to generate this URL
|
||||||
* the current issue is that we can't use RelRef, since content view means that we don't
|
* the current issue is that we can't use RelRef, since content view means that we don't
|
||||||
|
@@ -1,11 +1,8 @@
|
|||||||
{{ with (.GetTerms "series") }}
|
{{ with (.GetTerms "series") }}
|
||||||
{{ $series := slice }}
|
<div class="page-metadata-section series" aria-label="{{ i18n "aria_post_meta_series" }}">
|
||||||
{{ range . }}
|
|
||||||
{{ $series = $series | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<div class="page-metadata-section series" data-pagefind-meta="series" aria-label="{{ i18n "aria_post_meta_series" }}">
|
|
||||||
{{ partial "icon.html" "files" }}
|
{{ partial "icon.html" "files" }}
|
||||||
{{ delimit $series ", " | safeHTML }}
|
{{ range . }}
|
||||||
|
<a href="{{ .Permalink }}" data-pagefind-filter="series">{{ .LinkTitle }}</a>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,11 +1,10 @@
|
|||||||
{{ with (.GetTerms "tags") }}
|
{{ with (.GetTerms "tags") }}
|
||||||
{{ $tags := slice }}
|
{{ $tags := slice }}
|
||||||
{{ range . }}
|
|
||||||
{{ $tags = $tags | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<div class="page-metadata-section tags" data-pagefind-meta="tags" aria-label="{{ i18n "aria_post_meta_tags" }}">
|
<div class="page-metadata-section tags" aria-label="{{ i18n "aria_post_meta_tags" }}">
|
||||||
{{ partial "icon.html" "tag" }}
|
{{ partial "icon.html" "tag" }}
|
||||||
{{ delimit $tags ", " | safeHTML }}
|
{{ range . }}
|
||||||
|
<a href="{{ .Permalink }}" data-pagefind-filter="tag">{{ .LinkTitle }}</a>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{{ if gt .Paginator.TotalPages 1 }}
|
{{ if gt .Paginator.TotalPages 1 }}
|
||||||
<nav class="pagination">
|
<nav class="pagination">
|
||||||
{{/* https://github.com/gohugoio/hugo/blob/a88b488181279befd50e1d127f9f67604f2f9854/tpl/tplimpl/embedded/templates/_partials/pagination.html */}}
|
{{/* https://github.com/gohugoio/hugo/blob/a88b488181279befd50e1d127f9f67604f2f9854/tpl/tplimpl/embedded/templates/_partials/pagination.html */}}
|
||||||
{{ partial "_internal/pagination.html" . }}
|
{{ partial "pagination-hugo.html" . }}
|
||||||
</nav>
|
</nav>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -3,16 +3,6 @@
|
|||||||
<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 }}">
|
||||||
|
|
||||||
{{ $images := $.Resources.ByType "image" }}
|
|
||||||
{{ $featured := $images.GetMatch "*feature*" }}
|
|
||||||
{{ if not $featured }}
|
|
||||||
{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ with $featured }}
|
|
||||||
<meta property="og:image" content="{{ $featured.Permalink }}">
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ with .Section }}
|
{{ with .Section }}
|
||||||
<meta property="article:section" content="{{ . }}">
|
<meta property="article:section" content="{{ . }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -37,12 +27,38 @@
|
|||||||
<meta property="og:site_name" content="{{ . }}">
|
<meta property="og:site_name" content="{{ . }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ $images := $.Resources.ByType "image" }}
|
||||||
|
{{ $featured := $images.GetMatch "*feature*" }}
|
||||||
|
{{ if not $featured }}
|
||||||
|
{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with $featured }}
|
||||||
|
<meta property="og:image" content="{{ $featured.Permalink }}">
|
||||||
|
{{ with .Params.alt }}
|
||||||
|
<meta property="og:image:alt" content="{{ . }}">
|
||||||
|
{{ end }}
|
||||||
|
{{ with .MediaType }}
|
||||||
|
<meta property="og:image:type" content="{{ . }}">
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Width }}
|
||||||
|
<meta property="og:image:width" content="{{ . }}">
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Height }}
|
||||||
|
<meta property="og:image:height" content="{{ . }}">
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ $videos := $.Resources.ByType "video" }}
|
{{ $videos := $.Resources.ByType "video" }}
|
||||||
{{ $featured_video := $videos.GetMatch "*feature*" }}
|
{{ $featured_video := $videos.GetMatch "*feature*" }}
|
||||||
{{ if not $featured_video }}
|
{{ if not $featured_video }}
|
||||||
{{ $featured_video = $videos.GetMatch "{*cover*,*thumbnail*}" }}
|
{{ $featured_video = $videos.GetMatch "{*cover*,*thumbnail*}" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ with $featured_video }}
|
{{ with $featured_video }}
|
||||||
<meta property="og:video" content="{{ $featured_video.Permalink | absURL }}">
|
<meta property="og:video" content="{{ $featured_video.Permalink | absURL }}">
|
||||||
|
{{ with .MediaType }}
|
||||||
|
<meta property="og:video:type" content="{{ . }}">
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -31,6 +31,8 @@
|
|||||||
*/}}
|
*/}}
|
||||||
{{ with .Site.Params.social.twitter }}
|
{{ with .Site.Params.social.twitter }}
|
||||||
<meta name="twitter:site" content="@{{ . }}">
|
<meta name="twitter:site" content="@{{ . }}">
|
||||||
|
{{ else }}
|
||||||
|
{{ errorf "a twitter username is required for twitter cards to work" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .GetTerms "authors" }}
|
{{ with .GetTerms "authors" }}
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
<div class="top">
|
<header class="top">
|
||||||
<header class="header">
|
<div class="brand">
|
||||||
<a class="heading-link" href="{{ .Site.Home.Permalink | absLangURL }}">
|
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||||
{{ .Site.Title | markdownify }}
|
{{ .Site.Title | markdownify }}
|
||||||
</a>
|
</a>
|
||||||
</header>
|
</div>
|
||||||
|
|
||||||
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
||||||
{{ with .Site.Home }}
|
{{ with .Site.Home }}
|
||||||
@@ -21,4 +21,4 @@
|
|||||||
href="{{ .URL }}">{{ .Name }}</a>
|
href="{{ .URL }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</header>
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
<hr class="full-width-hr">
|
|
@@ -1,13 +1,15 @@
|
|||||||
<h2 class="page-title">
|
<h2 class="page-title">
|
||||||
<a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
{{ partial "page-metadata/author.html" . }}
|
{{ partial "page-metadata/author.html" . }}
|
||||||
|
|
||||||
<div class="page-description">
|
{{ with .Summary }}
|
||||||
{{ partial "description-or-summary.html" . }}
|
<div class="page-description">
|
||||||
</div>
|
{{ . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<div class="readmore">
|
<div class="readmore">
|
||||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||||
|
@@ -13,28 +13,28 @@
|
|||||||
{{ partial "breadcrumb.html" . }}
|
{{ partial "breadcrumb.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<main id="main-content" {{ if .IsPage }}data-pagefind-body{{ end }}>
|
<main id="main-content">
|
||||||
{{ block "main" . }}
|
{{ block "main" . }}
|
||||||
THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it)
|
THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it)
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
{{ if or .Site.Copyright .Site.Params.footer }}
|
||||||
|
<footer>
|
||||||
|
{{ with .Site.Copyright }}
|
||||||
|
{{ . | safeHTML }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with .Site.Params.footer }}
|
||||||
|
{{ . | $.RenderString (dict "display" "block") }}
|
||||||
|
{{ end }}
|
||||||
|
</footer>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ block "post-body" . }}
|
{{ block "post-body" . }}
|
||||||
{{/* currently this is only used for related posts */}}
|
{{/* currently this is only used for related posts */}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if or .Site.Copyright .Site.Params.footer }}
|
|
||||||
<footer>
|
|
||||||
{{ with .Site.Copyright }}
|
|
||||||
{{ . | safeHTML }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ with .Site.Params.footer }}
|
|
||||||
{{ . | $.RenderString (dict "display" "block") }}
|
|
||||||
{{ end }}
|
|
||||||
</footer>
|
|
||||||
{{ end }}
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
{{ partial "feature-figure.html" . }}
|
{{ partial "feature-figure.html" . }}
|
||||||
|
|
||||||
<article class="post-content">
|
<article class="post-content" data-pagefind-body>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
@@ -5,8 +5,10 @@
|
|||||||
{{ .Title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="section-description">
|
{{ with .Summary }}
|
||||||
{{ partial "description-or-summary.html" . }}
|
<div class="section-description">
|
||||||
</div>
|
{{ . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
@@ -1,14 +1,16 @@
|
|||||||
<h2 class="page-title">
|
<h2 class="page-title">
|
||||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||||
<a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
{{ partial "page-metadata/series.html" . }}
|
{{ partial "page-metadata/series.html" . }}
|
||||||
|
|
||||||
<div class="page-description">
|
{{ with .Summary }}
|
||||||
{{ partial "description-or-summary.html" . }}
|
<div class="page-description">
|
||||||
</div>
|
{{ . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<div class="page-list series-inner">
|
<div class="page-list series-inner">
|
||||||
{{ range .Data.Pages.Reverse }}
|
{{ range .Data.Pages.Reverse }}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<h2 class="page-title">
|
<h2 class="page-title">
|
||||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||||
<a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
@@ -8,9 +8,11 @@
|
|||||||
|
|
||||||
{{ partial "feature-figure.html" . }}
|
{{ partial "feature-figure.html" . }}
|
||||||
|
|
||||||
<div class="page-description">
|
{{ with .Summary }}
|
||||||
{{ partial "description-or-summary.html" . }}
|
<div class="page-description">
|
||||||
</div>
|
{{ . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<div class="readmore">
|
<div class="readmore">
|
||||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{{ partial "page-metadata/taxonomy.html" . }}
|
{{ partial "page-metadata/taxonomy.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ partial "description-or-summary.html" . }}
|
{{ .Summary }}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user