mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2026-02-03 06:48:30 -06:00
Compare commits
1 Commits
master
...
share-butt
| Author | SHA1 | Date | |
|---|---|---|---|
|
7780ccb376
|
@@ -24,17 +24,7 @@ series:
|
||||
resources:
|
||||
- name: feature
|
||||
src: something.webp
|
||||
title: >-
|
||||
Fallback title if one is not provided when calling figure shortcode with
|
||||
this listed as the src
|
||||
params:
|
||||
alt: Write an accessible description of this image. Don't over-write.
|
||||
|
||||
- src: demonstration.webp
|
||||
params:
|
||||
alt: >-
|
||||
Annotate an image without giving it an explicit name (the filename is
|
||||
simply used as the `name` instead).
|
||||
title: Some image (image format can be anything; webp is just an example)
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -158,22 +158,69 @@ pre > code {
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* Common distances/sizes {{{ */
|
||||
/* Basic elements {{{ */
|
||||
|
||||
:root {
|
||||
--page-margin: 16px;
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
@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;
|
||||
}
|
||||
|
||||
/* Common elements {{{ */
|
||||
.main-container {
|
||||
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,
|
||||
video {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.post-media > figure img,
|
||||
.post-media > figure video {
|
||||
padding: 5px;
|
||||
border: 7px solid var(--figure-border);
|
||||
}
|
||||
|
||||
figure img,
|
||||
figure video {
|
||||
padding: 5px;
|
||||
border: 2px solid var(--figure-border);
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: auto;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
figcaption {
|
||||
font-style: italic;
|
||||
font-size: small;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--link-0);
|
||||
text-decoration: inherit;
|
||||
@@ -193,6 +240,14 @@ hr {
|
||||
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 {
|
||||
border-collapse: collapse;
|
||||
border: 2px solid var(--text-1);
|
||||
@@ -252,42 +307,56 @@ table.simple tbody tr:nth-child(even) {
|
||||
/* }}} */
|
||||
|
||||
|
||||
/* Baseof formatting {{{ */
|
||||
/* Heading formatting (article section titles) {{{ */
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
/* this is also used i.e. in page-title */
|
||||
.heading-link {
|
||||
color: inherit;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@media screen and (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* Top bar formatting {{{ */
|
||||
|
||||
.top {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
background-color: var(--background-1);
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--background-0);
|
||||
color: var(--text-0);
|
||||
overflow-wrap: break-word;
|
||||
margin: 0;
|
||||
.header {
|
||||
flex-grow: 1;
|
||||
margin: 8px 16px;
|
||||
font-size: 1.25em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.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 */
|
||||
.navbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
margin: var(--page-margin) 0;
|
||||
text-align: center;
|
||||
font-size: smaller;
|
||||
.navbar-item {
|
||||
padding: 12px 16px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.site-footer p {
|
||||
margin: 0;
|
||||
.navbar-item:hover {
|
||||
background-color: var(--background-2);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.navbar-item.active {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* Skip to main content {{{ */
|
||||
#skip-to-main {
|
||||
position: absolute;
|
||||
padding: 8px;
|
||||
@@ -301,59 +370,12 @@ body {
|
||||
#main-content:target {
|
||||
animation: none; /* prevent it from turning yellow */
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* Top bar formatting {{{ */
|
||||
|
||||
.top {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
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 */
|
||||
}
|
||||
|
||||
.top-brand {
|
||||
flex-grow: 1;
|
||||
margin: 8px var(--page-margin);
|
||||
font-size: 1.25em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.top-brand > a {
|
||||
color: inherit;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.top-navbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.top-navbar-item {
|
||||
padding: 12px var(--page-margin);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.top-navbar-item:hover {
|
||||
background-color: var(--background-2);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.top-navbar-item--active {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* Breadcrumb navigation {{{ */
|
||||
|
||||
.breadcrumb {
|
||||
margin: var(--page-margin) 0;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
.breadcrumb ul {
|
||||
@@ -420,26 +442,33 @@ body {
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* Summary card formatting {{{ */
|
||||
/* List layout {{{ */
|
||||
|
||||
.summary-card {
|
||||
/* flexbox container for sections and main page list */
|
||||
.list-page-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
.page-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
gap: 40px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.page-list > .page {
|
||||
padding: 24px;
|
||||
border-radius: 12px;
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
.summary-card-title {
|
||||
.page > .page-title {
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.summary-card-title a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.summary-card-title h1 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* hugo just can't handle this feature
|
||||
@@ -450,6 +479,14 @@ body {
|
||||
}
|
||||
*/
|
||||
|
||||
.page-title {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.page-title h1 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.page-metadata {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
@@ -463,82 +500,20 @@ body {
|
||||
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 {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
/* for formatting of the featured image/media, see the .featured-media class */
|
||||
|
||||
.summary-card-description {
|
||||
.page-description {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.summary-card-readmore {
|
||||
.readmore {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* Figures, and featured media component (used in page.html and summary-card) {{{ */
|
||||
|
||||
figure > .figure-media {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
figure > .figure-media.border {
|
||||
border: 2px solid var(--figure-border);
|
||||
}
|
||||
|
||||
figure {
|
||||
display: block;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
figcaption {
|
||||
font-style: italic;
|
||||
font-size: small;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.featured-media {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.featured-media > figure > .figure-media {
|
||||
border: 7px solid var(--figure-border);
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* List layout {{{ */
|
||||
|
||||
.page-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
gap: 40px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.page-title a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.page-title h1 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* Taxonomy list layout {{{ */
|
||||
|
||||
.taxonomy-list a,
|
||||
@@ -589,11 +564,17 @@ figcaption {
|
||||
|
||||
/* Series list layout {{{ */
|
||||
|
||||
.page-list--series {
|
||||
.page-list.series {
|
||||
display: flex;
|
||||
gap: 80px;
|
||||
flex-flow: row wrap;
|
||||
list-style: none;
|
||||
color: var(--text-0);
|
||||
padding: 8px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.page-list--series-inner {
|
||||
.page-list.series-inner {
|
||||
gap: 10px;
|
||||
flex-direction: row;
|
||||
flex-flow: row wrap;
|
||||
@@ -602,7 +583,7 @@ figcaption {
|
||||
padding: 8px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
.page-list--series-inner > .summary-card {
|
||||
.page-list.series-inner > .page {
|
||||
flex: 1;
|
||||
min-width: 49%;
|
||||
}
|
||||
@@ -612,57 +593,47 @@ figcaption {
|
||||
/* Subsections on list pages {{{ */
|
||||
|
||||
.sections {
|
||||
margin-bottom: 60px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.section-card {
|
||||
.section {
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
border-radius: 12px;
|
||||
padding: 1px 25px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.section-card:hover {
|
||||
.section:hover {
|
||||
background-color: var(--background-2);
|
||||
color: var(--text-2);
|
||||
}
|
||||
|
||||
.section-card-title {
|
||||
.section-title {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.section-card-anchor {
|
||||
.section-anchor {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.section-card-anchor:hover {
|
||||
.section-anchor:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.section-card-description {
|
||||
.section-description {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.section-card-arrow {
|
||||
margin-block: auto;
|
||||
max-height: fit-content;
|
||||
float: right;
|
||||
}
|
||||
.section-card-arrow > .icon {
|
||||
height: 48px;
|
||||
width: 48px;
|
||||
.view-section {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
||||
|
||||
/* Components exclusive to content/single pages {{{ */
|
||||
/* Content (single) formatting {{{ */
|
||||
|
||||
.series-box {
|
||||
background-color: var(--background-1);
|
||||
@@ -726,6 +697,19 @@ figcaption {
|
||||
}
|
||||
*/
|
||||
|
||||
/* 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 {{{ */
|
||||
|
||||
.prevnext {
|
||||
@@ -776,45 +760,6 @@ figcaption {
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* 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 > h2 {
|
||||
margin: var(--page-margin);
|
||||
}
|
||||
|
||||
.related-posts .summary-card {
|
||||
min-width: 300px;
|
||||
max-width: 300px;
|
||||
|
||||
}
|
||||
|
||||
.related-posts .summary-card:first-child {
|
||||
margin-left: var(--page-margin);
|
||||
}
|
||||
.related-posts .summary-card: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-block {
|
||||
display: flex;
|
||||
@@ -823,7 +768,7 @@ figcaption {
|
||||
background-color: var(--background-1);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.code-block-header {
|
||||
.code-block > .code-header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
@@ -831,19 +776,16 @@ figcaption {
|
||||
padding: 4px 8px;
|
||||
border-top-left-radius: 8px;
|
||||
border-top-right-radius: 8px;
|
||||
height: 2em;
|
||||
}
|
||||
.code-block-header > * {
|
||||
.code-block > .code-header > .code-type {
|
||||
border-top-left-radius: 8px;
|
||||
margin: auto 0;
|
||||
}
|
||||
.code-block-type {
|
||||
border-top-left-radius: 8px;
|
||||
}
|
||||
/* TODO: make the code copy button prettier */
|
||||
.code-block-copy-button {
|
||||
.code-block > .code-header > .code-copy-button {
|
||||
color: var(--link-1);
|
||||
}
|
||||
.code-block-copy-button:hover {
|
||||
.code-block > .code-header > .code-copy-button:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
.code-block > .highlight {
|
||||
@@ -877,7 +819,7 @@ figcaption {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.code-block-type,
|
||||
.code-block > .code-header > .code-type,
|
||||
code {
|
||||
border-radius: 5px;
|
||||
}
|
||||
@@ -931,23 +873,44 @@ aside.quote {
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* See also formating */
|
||||
.see-also {
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
margin: 10px 0;
|
||||
/* }}} */
|
||||
|
||||
/* Related posts section {{{ */
|
||||
|
||||
.full-width-page-list {
|
||||
/* make left/right 0 margin so it takes up full width */
|
||||
margin: 25px 0;
|
||||
}
|
||||
|
||||
.see-also p {
|
||||
margin: 0;
|
||||
.related-posts > hr,
|
||||
.related-posts > h1 {
|
||||
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 {{{ */
|
||||
|
||||
/* Light mode */
|
||||
@@ -960,7 +923,7 @@ aside.quote {
|
||||
|
||||
/* Print compatibility {{{ */
|
||||
@media print {
|
||||
.top-navbar,
|
||||
.top > .navbar,
|
||||
.content-heading-link,
|
||||
.post-meta-edit-history,
|
||||
.post-meta-view-markdown,
|
||||
@@ -979,7 +942,7 @@ aside.quote {
|
||||
.top {
|
||||
background-color: unset;
|
||||
}
|
||||
.top-brand {
|
||||
.top > .header {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
@@ -1,14 +1,3 @@
|
||||
.comments > h2 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.comments .email-address-notice {
|
||||
margin: 0;
|
||||
font-size: smaller;
|
||||
}
|
||||
.comments .enable-javascript-notice {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Isso styling */
|
||||
h4.isso-thread-heading {
|
||||
color: var(--text-0);
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
.page-meta-comments-counter,
|
||||
.code-copy-button {
|
||||
display: none;
|
||||
}
|
||||
@@ -1,95 +1,96 @@
|
||||
/* tango style */
|
||||
|
||||
@media print, (prefers-color-scheme: light) {
|
||||
.chroma {
|
||||
color: black;
|
||||
}
|
||||
|
||||
/* Generated using: hugo gen chromastyles --style tango */
|
||||
|
||||
/* Background */ .bg { background-color:#f8f8f8; }
|
||||
/* PreWrapper */ .chroma { background-color:#f8f8f8; }
|
||||
/* Other */ .chroma .x { color:#000 }
|
||||
/* Error */ .chroma .err { color:#a40000 }
|
||||
/* LineLink */ .chroma .lnlinks { outline:none;text-decoration:none;color:inherit }
|
||||
/* LineTableTD */ .chroma .lntd { vertical-align:top;padding:0;margin:0;border:0; }
|
||||
/* LineTable */ .chroma .lntable { border-spacing:0;padding:0;margin:0;border:0; }
|
||||
/* LineHighlight */ .chroma .hl { background-color:#dfdfdf }
|
||||
/* LineNumbersTable */ .chroma .lnt { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f }
|
||||
/* LineNumbers */ .chroma .ln { white-space:pre;-webkit-user-select:none;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 }
|
||||
/* KeywordNamespace */ .chroma .kn { color:#204a87;font-weight:bold }
|
||||
/* KeywordPseudo */ .chroma .kp { color:#204a87;font-weight:bold }
|
||||
/* KeywordReserved */ .chroma .kr { color:#204a87;font-weight:bold }
|
||||
/* KeywordType */ .chroma .kt { color:#204a87;font-weight:bold }
|
||||
/* Name */ .chroma .n { color:#000 }
|
||||
/* NameAttribute */ .chroma .na { color:#c4a000 }
|
||||
/* NameClass */ .chroma .nc { color:#000 }
|
||||
/* NameConstant */ .chroma .no { color:#000 }
|
||||
/* NameDecorator */ .chroma .nd { color:#5c35cc;font-weight:bold }
|
||||
/* NameEntity */ .chroma .ni { color:#ce5c00 }
|
||||
/* NameException */ .chroma .ne { color:#c00;font-weight:bold }
|
||||
/* NameLabel */ .chroma .nl { color:#f57900 }
|
||||
/* NameNamespace */ .chroma .nn { color:#000 }
|
||||
/* NameOther */ .chroma .nx { color:#000 }
|
||||
/* NameProperty */ .chroma .py { color:#000 }
|
||||
/* NameTag */ .chroma .nt { color:#204a87;font-weight:bold }
|
||||
/* NameBuiltin */ .chroma .nb { color:#204a87 }
|
||||
/* NameBuiltinPseudo */ .chroma .bp { color:#3465a4 }
|
||||
/* NameVariable */ .chroma .nv { color:#000 }
|
||||
/* NameVariableClass */ .chroma .vc { color:#000 }
|
||||
/* NameVariableGlobal */ .chroma .vg { color:#000 }
|
||||
/* NameVariableInstance */ .chroma .vi { color:#000 }
|
||||
/* NameVariableMagic */ .chroma .vm { color:#000 }
|
||||
/* NameFunction */ .chroma .nf { color:#000 }
|
||||
/* NameFunctionMagic */ .chroma .fm { color:#000 }
|
||||
/* Literal */ .chroma .l { color:#000 }
|
||||
/* LiteralDate */ .chroma .ld { color:#000 }
|
||||
/* LiteralString */ .chroma .s { color:#4e9a06 }
|
||||
/* LiteralStringAffix */ .chroma .sa { color:#4e9a06 }
|
||||
/* LiteralStringBacktick */ .chroma .sb { color:#4e9a06 }
|
||||
/* LiteralStringChar */ .chroma .sc { color:#4e9a06 }
|
||||
/* LiteralStringDelimiter */ .chroma .dl { color:#4e9a06 }
|
||||
/* LiteralStringDoc */ .chroma .sd { color:#8f5902;font-style:italic }
|
||||
/* LiteralStringDouble */ .chroma .s2 { color:#4e9a06 }
|
||||
/* LiteralStringEscape */ .chroma .se { color:#4e9a06 }
|
||||
/* LiteralStringHeredoc */ .chroma .sh { color:#4e9a06 }
|
||||
/* LiteralStringInterpol */ .chroma .si { color:#4e9a06 }
|
||||
/* LiteralStringOther */ .chroma .sx { color:#4e9a06 }
|
||||
/* LiteralStringRegex */ .chroma .sr { color:#4e9a06 }
|
||||
/* LiteralStringSingle */ .chroma .s1 { color:#4e9a06 }
|
||||
/* LiteralStringSymbol */ .chroma .ss { color:#4e9a06 }
|
||||
/* LiteralNumber */ .chroma .m { color:#0000cf;font-weight:bold }
|
||||
/* LiteralNumberBin */ .chroma .mb { color:#0000cf;font-weight:bold }
|
||||
/* LiteralNumberFloat */ .chroma .mf { color:#0000cf;font-weight:bold }
|
||||
/* LiteralNumberHex */ .chroma .mh { color:#0000cf;font-weight:bold }
|
||||
/* LiteralNumberInteger */ .chroma .mi { color:#0000cf;font-weight:bold }
|
||||
/* LiteralNumberIntegerLong */ .chroma .il { color:#0000cf;font-weight:bold }
|
||||
/* LiteralNumberOct */ .chroma .mo { color:#0000cf;font-weight:bold }
|
||||
/* Operator */ .chroma .o { color:#ce5c00;font-weight:bold }
|
||||
/* OperatorWord */ .chroma .ow { color:#204a87;font-weight:bold }
|
||||
/* Punctuation */ .chroma .p { color:#000;font-weight:bold }
|
||||
/* Comment */ .chroma .c { color:#8f5902;font-style:italic }
|
||||
/* CommentHashbang */ .chroma .ch { color:#8f5902;font-style:italic }
|
||||
/* CommentMultiline */ .chroma .cm { color:#8f5902;font-style:italic }
|
||||
/* CommentSingle */ .chroma .c1 { color:#8f5902;font-style:italic }
|
||||
/* CommentSpecial */ .chroma .cs { color:#8f5902;font-style:italic }
|
||||
/* CommentPreproc */ .chroma .cp { color:#8f5902;font-style:italic }
|
||||
/* CommentPreprocFile */ .chroma .cpf { color:#8f5902;font-style:italic }
|
||||
/* Generic */ .chroma .g { color:#000 }
|
||||
/* GenericDeleted */ .chroma .gd { color:#a40000 }
|
||||
/* GenericEmph */ .chroma .ge { color:#000;font-style:italic }
|
||||
/* GenericError */ .chroma .gr { color:#ef2929 }
|
||||
/* GenericHeading */ .chroma .gh { color:#000080;font-weight:bold }
|
||||
/* GenericInserted */ .chroma .gi { color:#00a000 }
|
||||
/* GenericOutput */ .chroma .go { color:#000;font-style:italic }
|
||||
/* GenericPrompt */ .chroma .gp { color:#8f5902 }
|
||||
/* GenericStrong */ .chroma .gs { color:#000;font-weight:bold }
|
||||
/* GenericSubheading */ .chroma .gu { color:#800080;font-weight:bold }
|
||||
/* GenericTraceback */ .chroma .gt { color:#a40000;font-weight:bold }
|
||||
/* GenericUnderline */ .chroma .gl { color:#000;text-decoration:underline }
|
||||
/* TextWhitespace */ .chroma .w { color:#f8f8f8 }
|
||||
/* Background */ .bg { background-color: #f8f8f8; }
|
||||
/* PreWrapper */ .chroma { background-color: #f8f8f8; }
|
||||
/* Other */ .chroma .x { color: #000000 }
|
||||
/* Error */ .chroma .err { color: #a40000 }
|
||||
/* CodeLine */ .chroma .cl { }
|
||||
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
|
||||
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
||||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
||||
/* LineHighlight */ .chroma .hl { background-color: #dfdfdf }
|
||||
/* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
/* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; 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 }
|
||||
/* KeywordNamespace */ .chroma .kn { color: #204a87; font-weight: bold }
|
||||
/* KeywordPseudo */ .chroma .kp { color: #204a87; font-weight: bold }
|
||||
/* KeywordReserved */ .chroma .kr { color: #204a87; font-weight: bold }
|
||||
/* KeywordType */ .chroma .kt { color: #204a87; font-weight: bold }
|
||||
/* Name */ .chroma .n { color: #000000 }
|
||||
/* NameAttribute */ .chroma .na { color: #c4a000 }
|
||||
/* NameBuiltin */ .chroma .nb { color: #204a87 }
|
||||
/* NameBuiltinPseudo */ .chroma .bp { color: #3465a4 }
|
||||
/* NameClass */ .chroma .nc { color: #000000 }
|
||||
/* NameConstant */ .chroma .no { color: #000000 }
|
||||
/* NameDecorator */ .chroma .nd { color: #5c35cc; font-weight: bold }
|
||||
/* NameEntity */ .chroma .ni { color: #ce5c00 }
|
||||
/* NameException */ .chroma .ne { color: #cc0000; font-weight: bold }
|
||||
/* NameFunction */ .chroma .nf { color: #000000 }
|
||||
/* NameFunctionMagic */ .chroma .fm { color: #000000 }
|
||||
/* NameLabel */ .chroma .nl { color: #f57900 }
|
||||
/* NameNamespace */ .chroma .nn { color: #000000 }
|
||||
/* NameOther */ .chroma .nx { color: #000000 }
|
||||
/* NameProperty */ .chroma .py { color: #000000 }
|
||||
/* NameTag */ .chroma .nt { color: #204a87; font-weight: bold }
|
||||
/* NameVariable */ .chroma .nv { color: #000000 }
|
||||
/* NameVariableClass */ .chroma .vc { color: #000000 }
|
||||
/* NameVariableGlobal */ .chroma .vg { color: #000000 }
|
||||
/* NameVariableInstance */ .chroma .vi { color: #000000 }
|
||||
/* NameVariableMagic */ .chroma .vm { color: #000000 }
|
||||
/* Literal */ .chroma .l { color: #000000 }
|
||||
/* LiteralDate */ .chroma .ld { color: #000000 }
|
||||
/* LiteralString */ .chroma .s { color: #4e9a06 }
|
||||
/* LiteralStringAffix */ .chroma .sa { color: #4e9a06 }
|
||||
/* LiteralStringBacktick */ .chroma .sb { color: #4e9a06 }
|
||||
/* LiteralStringChar */ .chroma .sc { color: #4e9a06 }
|
||||
/* LiteralStringDelimiter */ .chroma .dl { color: #4e9a06 }
|
||||
/* LiteralStringDoc */ .chroma .sd { color: #8f5902; font-style: italic }
|
||||
/* LiteralStringDouble */ .chroma .s2 { color: #4e9a06 }
|
||||
/* LiteralStringEscape */ .chroma .se { color: #4e9a06 }
|
||||
/* LiteralStringHeredoc */ .chroma .sh { color: #4e9a06 }
|
||||
/* LiteralStringInterpol */ .chroma .si { color: #4e9a06 }
|
||||
/* LiteralStringOther */ .chroma .sx { color: #4e9a06 }
|
||||
/* LiteralStringRegex */ .chroma .sr { color: #4e9a06 }
|
||||
/* LiteralStringSingle */ .chroma .s1 { color: #4e9a06 }
|
||||
/* LiteralStringSymbol */ .chroma .ss { color: #4e9a06 }
|
||||
/* LiteralNumber */ .chroma .m { color: #0000cf; font-weight: bold }
|
||||
/* LiteralNumberBin */ .chroma .mb { color: #0000cf; font-weight: bold }
|
||||
/* LiteralNumberFloat */ .chroma .mf { color: #0000cf; font-weight: bold }
|
||||
/* LiteralNumberHex */ .chroma .mh { color: #0000cf; font-weight: bold }
|
||||
/* LiteralNumberInteger */ .chroma .mi { color: #0000cf; font-weight: bold }
|
||||
/* LiteralNumberIntegerLong */ .chroma .il { color: #0000cf; font-weight: bold }
|
||||
/* LiteralNumberOct */ .chroma .mo { color: #0000cf; font-weight: bold }
|
||||
/* Operator */ .chroma .o { color: #ce5c00; font-weight: bold }
|
||||
/* OperatorWord */ .chroma .ow { color: #204a87; font-weight: bold }
|
||||
/* Punctuation */ .chroma .p { color: #000000; font-weight: bold }
|
||||
/* Comment */ .chroma .c { color: #8f5902; font-style: italic }
|
||||
/* CommentHashbang */ .chroma .ch { color: #8f5902; font-style: italic }
|
||||
/* CommentMultiline */ .chroma .cm { color: #8f5902; font-style: italic }
|
||||
/* CommentSingle */ .chroma .c1 { color: #8f5902; font-style: italic }
|
||||
/* CommentSpecial */ .chroma .cs { color: #8f5902; font-style: italic }
|
||||
/* CommentPreproc */ .chroma .cp { color: #8f5902; font-style: italic }
|
||||
/* CommentPreprocFile */ .chroma .cpf { color: #8f5902; font-style: italic }
|
||||
/* Generic */ .chroma .g { color: #000000 }
|
||||
/* GenericDeleted */ .chroma .gd { color: #a40000 }
|
||||
/* GenericEmph */ .chroma .ge { color: #000000; font-style: italic }
|
||||
/* GenericError */ .chroma .gr { color: #ef2929 }
|
||||
/* GenericHeading */ .chroma .gh { color: #000080; font-weight: bold }
|
||||
/* GenericInserted */ .chroma .gi { color: #00a000 }
|
||||
/* GenericOutput */ .chroma .go { color: #000000; font-style: italic }
|
||||
/* GenericPrompt */ .chroma .gp { color: #8f5902 }
|
||||
/* GenericStrong */ .chroma .gs { color: #000000; font-weight: bold }
|
||||
/* GenericSubheading */ .chroma .gu { color: #800080; font-weight: bold }
|
||||
/* GenericTraceback */ .chroma .gt { color: #a40000; font-weight: bold }
|
||||
/* GenericUnderline */ .chroma .gl { color: #000000; text-decoration: underline }
|
||||
/* TextWhitespace */ .chroma .w { color: #f8f8f8; text-decoration: underline }
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,76 +1,88 @@
|
||||
/* Generated using: hugo gen chromastyles --style native */
|
||||
/* native style */
|
||||
|
||||
/* Background */ .bg { color:#d0d0d0;background-color:#202020; }
|
||||
/* PreWrapper */ .chroma { color:#d0d0d0;background-color:#202020; }
|
||||
/* Error */ .chroma .err { color:#a61717;background-color:#e3d2d2 }
|
||||
/* LineLink */ .chroma .lnlinks { outline:none;text-decoration:none;color:inherit }
|
||||
/* LineTableTD */ .chroma .lntd { vertical-align:top;padding:0;margin:0;border:0; }
|
||||
/* LineTable */ .chroma .lntable { border-spacing:0;padding:0;margin:0;border:0; }
|
||||
/* LineHighlight */ .chroma .hl { background-color:#363636 }
|
||||
/* LineNumbersTable */ .chroma .lnt { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#686868 }
|
||||
/* LineNumbers */ .chroma .ln { white-space:pre;-webkit-user-select:none;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 }
|
||||
/* KeywordNamespace */ .chroma .kn { color:#6ab825;font-weight:bold }
|
||||
/* KeywordPseudo */ .chroma .kp { color:#6ab825 }
|
||||
/* KeywordReserved */ .chroma .kr { color:#6ab825;font-weight:bold }
|
||||
/* KeywordType */ .chroma .kt { color:#6ab825;font-weight:bold }
|
||||
/* NameAttribute */ .chroma .na { color:#bbb }
|
||||
/* NameClass */ .chroma .nc { color:#447fcf;text-decoration:underline }
|
||||
/* NameConstant */ .chroma .no { color:#40ffff }
|
||||
/* NameDecorator */ .chroma .nd { color:#ffa500 }
|
||||
/* NameException */ .chroma .ne { color:#bbb }
|
||||
/* NameNamespace */ .chroma .nn { color:#447fcf;text-decoration:underline }
|
||||
/* NameTag */ .chroma .nt { color:#6ab825;font-weight:bold }
|
||||
/* NameBuiltin */ .chroma .nb { color:#24909d }
|
||||
/* NameBuiltinPseudo */ .chroma .bp { color:#24909d }
|
||||
/* NameVariable */ .chroma .nv { color:#40ffff }
|
||||
/* NameVariableClass */ .chroma .vc { color:#40ffff }
|
||||
/* NameVariableGlobal */ .chroma .vg { color:#40ffff }
|
||||
/* NameVariableInstance */ .chroma .vi { color:#40ffff }
|
||||
/* NameVariableMagic */ .chroma .vm { color:#40ffff }
|
||||
/* NameFunction */ .chroma .nf { color:#447fcf }
|
||||
/* NameFunctionMagic */ .chroma .fm { color:#447fcf }
|
||||
/* LiteralString */ .chroma .s { color:#ed9d13 }
|
||||
/* LiteralStringAffix */ .chroma .sa { color:#ed9d13 }
|
||||
/* LiteralStringBacktick */ .chroma .sb { color:#ed9d13 }
|
||||
/* LiteralStringChar */ .chroma .sc { color:#ed9d13 }
|
||||
/* LiteralStringDelimiter */ .chroma .dl { color:#ed9d13 }
|
||||
/* LiteralStringDoc */ .chroma .sd { color:#ed9d13 }
|
||||
/* LiteralStringDouble */ .chroma .s2 { color:#ed9d13 }
|
||||
/* LiteralStringEscape */ .chroma .se { color:#ed9d13 }
|
||||
/* LiteralStringHeredoc */ .chroma .sh { color:#ed9d13 }
|
||||
/* LiteralStringInterpol */ .chroma .si { color:#ed9d13 }
|
||||
/* LiteralStringOther */ .chroma .sx { color:#ffa500 }
|
||||
/* LiteralStringRegex */ .chroma .sr { color:#ed9d13 }
|
||||
/* LiteralStringSingle */ .chroma .s1 { color:#ed9d13 }
|
||||
/* LiteralStringSymbol */ .chroma .ss { color:#ed9d13 }
|
||||
/* LiteralNumber */ .chroma .m { color:#3677a9 }
|
||||
/* LiteralNumberBin */ .chroma .mb { color:#3677a9 }
|
||||
/* LiteralNumberFloat */ .chroma .mf { color:#3677a9 }
|
||||
/* LiteralNumberHex */ .chroma .mh { color:#3677a9 }
|
||||
/* LiteralNumberInteger */ .chroma .mi { color:#3677a9 }
|
||||
/* LiteralNumberIntegerLong */ .chroma .il { color:#3677a9 }
|
||||
/* LiteralNumberOct */ .chroma .mo { color:#3677a9 }
|
||||
/* OperatorWord */ .chroma .ow { color:#6ab825;font-weight:bold }
|
||||
/* Comment */ .chroma .c { color:#999;font-style:italic }
|
||||
/* CommentHashbang */ .chroma .ch { color:#999;font-style:italic }
|
||||
/* CommentMultiline */ .chroma .cm { color:#999;font-style:italic }
|
||||
/* CommentSingle */ .chroma .c1 { color:#999;font-style:italic }
|
||||
/* CommentSpecial */ .chroma .cs { color:#e50808;background-color:#520000;font-weight:bold }
|
||||
/* CommentPreproc */ .chroma .cp { color:#cd2828;font-weight:bold }
|
||||
/* CommentPreprocFile */ .chroma .cpf { color:#cd2828;font-weight:bold }
|
||||
/* GenericDeleted */ .chroma .gd { color:#d22323 }
|
||||
/* GenericEmph */ .chroma .ge { font-style:italic }
|
||||
/* GenericError */ .chroma .gr { color:#d22323 }
|
||||
/* GenericHeading */ .chroma .gh { color:#fff;font-weight:bold }
|
||||
/* GenericInserted */ .chroma .gi { color:#589819 }
|
||||
/* GenericOutput */ .chroma .go { color:#ccc }
|
||||
/* GenericPrompt */ .chroma .gp { color:#aaa }
|
||||
/* GenericStrong */ .chroma .gs { font-weight:bold }
|
||||
/* GenericSubheading */ .chroma .gu { color:#fff;text-decoration:underline }
|
||||
/* GenericTraceback */ .chroma .gt { color:#d22323 }
|
||||
/* GenericUnderline */ .chroma .gl { text-decoration:underline }
|
||||
/* TextWhitespace */ .chroma .w { color:#666 }
|
||||
/* 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 { }
|
||||
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
|
||||
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
||||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
||||
/* LineHighlight */ .chroma .hl { background-color: #363636 }
|
||||
/* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 }
|
||||
/* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; 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 }
|
||||
/* KeywordNamespace */ .chroma .kn { color: #6ab825; font-weight: bold }
|
||||
/* KeywordPseudo */ .chroma .kp { color: #6ab825 }
|
||||
/* KeywordReserved */ .chroma .kr { color: #6ab825; font-weight: bold }
|
||||
/* KeywordType */ .chroma .kt { color: #6ab825; font-weight: bold }
|
||||
/* Name */ .chroma .n { }
|
||||
/* NameAttribute */ .chroma .na { color: #bbbbbb }
|
||||
/* NameBuiltin */ .chroma .nb { color: #24909d }
|
||||
/* NameBuiltinPseudo */ .chroma .bp { }
|
||||
/* NameClass */ .chroma .nc { color: #447fcf; text-decoration: underline }
|
||||
/* NameConstant */ .chroma .no { color: #40ffff }
|
||||
/* NameDecorator */ .chroma .nd { color: #ffa500 }
|
||||
/* NameEntity */ .chroma .ni { }
|
||||
/* NameException */ .chroma .ne { color: #bbbbbb }
|
||||
/* NameFunction */ .chroma .nf { color: #447fcf }
|
||||
/* NameFunctionMagic */ .chroma .fm { }
|
||||
/* NameLabel */ .chroma .nl { }
|
||||
/* NameNamespace */ .chroma .nn { color: #447fcf; text-decoration: underline }
|
||||
/* NameOther */ .chroma .nx { }
|
||||
/* NameProperty */ .chroma .py { }
|
||||
/* NameTag */ .chroma .nt { color: #6ab825; font-weight: bold }
|
||||
/* NameVariable */ .chroma .nv { color: #40ffff }
|
||||
/* NameVariableClass */ .chroma .vc { }
|
||||
/* NameVariableGlobal */ .chroma .vg { }
|
||||
/* NameVariableInstance */ .chroma .vi { }
|
||||
/* NameVariableMagic */ .chroma .vm { }
|
||||
/* Literal */ .chroma .l { }
|
||||
/* LiteralDate */ .chroma .ld { }
|
||||
/* LiteralString */ .chroma .s { color: #ed9d13 }
|
||||
/* LiteralStringAffix */ .chroma .sa { color: #ed9d13 }
|
||||
/* LiteralStringBacktick */ .chroma .sb { color: #ed9d13 }
|
||||
/* LiteralStringChar */ .chroma .sc { color: #ed9d13 }
|
||||
/* LiteralStringDelimiter */ .chroma .dl { color: #ed9d13 }
|
||||
/* LiteralStringDoc */ .chroma .sd { color: #ed9d13 }
|
||||
/* LiteralStringDouble */ .chroma .s2 { color: #ed9d13 }
|
||||
/* LiteralStringEscape */ .chroma .se { color: #ed9d13 }
|
||||
/* LiteralStringHeredoc */ .chroma .sh { color: #ed9d13 }
|
||||
/* LiteralStringInterpol */ .chroma .si { color: #ed9d13 }
|
||||
/* LiteralStringOther */ .chroma .sx { color: #ffa500 }
|
||||
/* LiteralStringRegex */ .chroma .sr { color: #ed9d13 }
|
||||
/* LiteralStringSingle */ .chroma .s1 { color: #ed9d13 }
|
||||
/* LiteralStringSymbol */ .chroma .ss { color: #ed9d13 }
|
||||
/* LiteralNumber */ .chroma .m { color: #3677a9 }
|
||||
/* LiteralNumberBin */ .chroma .mb { color: #3677a9 }
|
||||
/* LiteralNumberFloat */ .chroma .mf { color: #3677a9 }
|
||||
/* LiteralNumberHex */ .chroma .mh { color: #3677a9 }
|
||||
/* LiteralNumberInteger */ .chroma .mi { color: #3677a9 }
|
||||
/* LiteralNumberIntegerLong */ .chroma .il { color: #3677a9 }
|
||||
/* LiteralNumberOct */ .chroma .mo { color: #3677a9 }
|
||||
/* Operator */ .chroma .o { }
|
||||
/* OperatorWord */ .chroma .ow { color: #6ab825; font-weight: bold }
|
||||
/* Punctuation */ .chroma .p { }
|
||||
/* Comment */ .chroma .c { color: #999999; font-style: italic }
|
||||
/* CommentHashbang */ .chroma .ch { color: #999999; font-style: italic }
|
||||
/* CommentMultiline */ .chroma .cm { color: #999999; font-style: italic }
|
||||
/* CommentSingle */ .chroma .c1 { color: #999999; font-style: italic }
|
||||
/* CommentSpecial */ .chroma .cs { color: #e50808; background-color: #520000; font-weight: bold }
|
||||
/* CommentPreproc */ .chroma .cp { color: #cd2828; font-weight: bold }
|
||||
/* CommentPreprocFile */ .chroma .cpf { color: #cd2828; font-weight: bold }
|
||||
/* Generic */ .chroma .g { }
|
||||
/* GenericDeleted */ .chroma .gd { color: #d22323 }
|
||||
/* GenericEmph */ .chroma .ge { font-style: italic }
|
||||
/* GenericError */ .chroma .gr { color: #d22323 }
|
||||
/* GenericHeading */ .chroma .gh { color: #ffffff; font-weight: bold }
|
||||
/* GenericInserted */ .chroma .gi { color: #589819 }
|
||||
/* GenericOutput */ .chroma .go { color: #cccccc }
|
||||
/* GenericPrompt */ .chroma .gp { color: #aaaaaa }
|
||||
/* GenericStrong */ .chroma .gs { font-weight: bold }
|
||||
/* GenericSubheading */ .chroma .gu { color: #ffffff; text-decoration: underline }
|
||||
/* GenericTraceback */ .chroma .gt { color: #d22323 }
|
||||
/* GenericUnderline */ .chroma .gl { text-decoration: underline }
|
||||
/* TextWhitespace */ .chroma .w { color: #666666 }
|
||||
|
||||
@@ -21,6 +21,11 @@ taxonomies:
|
||||
outputs:
|
||||
page:
|
||||
- html
|
||||
- markdown
|
||||
|
||||
outputFormats:
|
||||
markdown:
|
||||
ugly: true
|
||||
|
||||
privacy:
|
||||
googleAnalytics:
|
||||
|
||||
@@ -32,6 +32,9 @@ readingtime:
|
||||
edit_history:
|
||||
other: "Edit history"
|
||||
|
||||
view_markdown:
|
||||
other: "View raw"
|
||||
|
||||
|
||||
# Post count
|
||||
no_posts:
|
||||
@@ -45,8 +48,6 @@ post_count:
|
||||
# Navigation
|
||||
read_more:
|
||||
other: "Read more"
|
||||
see_posts:
|
||||
other: "See posts"
|
||||
|
||||
related_posts:
|
||||
other: "Related Posts"
|
||||
@@ -71,6 +72,9 @@ aria_rss_link:
|
||||
aria_post_meta_edit_history:
|
||||
other: "link to page edit history"
|
||||
|
||||
aria_post_meta_view_markdown:
|
||||
other: "link to view raw markdown code of page"
|
||||
|
||||
aria_post_meta_categories:
|
||||
other: "categories"
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
{{ $type = . }}
|
||||
{{ end }}
|
||||
<div class="code-block">
|
||||
<div class="code-block-header">
|
||||
<pre class="code-block-type">{{ $type }}</pre>
|
||||
<a href="javascript:void(0)" class="code-block-copy-button">
|
||||
<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>
|
||||
|
||||
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.
|
||||
*/}}
|
||||
@@ -1,20 +1,15 @@
|
||||
{{/* 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" }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||
{{ end }}
|
||||
|
||||
<h2>Comments</h2>
|
||||
<p class="email-address-notice">
|
||||
<h2 style="margin-bottom: 0;">Comments</h2>
|
||||
<p style="margin: 0; font-size: smaller;">
|
||||
If you provide an email address, you can enable notifications for
|
||||
replies to your comment. It will not be shown publicly.
|
||||
</p>
|
||||
|
||||
<noscript>
|
||||
<p class="enable-javascript-notice">
|
||||
Enable JavaScript to see the comment section.
|
||||
</p>
|
||||
<i>Enable JavaScript to see the comment section.</i>
|
||||
</noscript>
|
||||
|
||||
<section id="isso-thread" data-title="{{ .Title }}"></section>
|
||||
|
||||
7
layouts/_partials/description-or-summary.html
Normal file
7
layouts/_partials/description-or-summary.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{ 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
|
||||
* make tracking possible, but my experience says otherwise
|
||||
*/}}
|
||||
<img class="figure-media" src="{{ .Permalink }}" {{ with .Params.alt }}alt="{{ . }}"{{ end }} />
|
||||
<img src="{{ .Permalink }}" {{ with .Params.alt }}alt="{{ . }}"{{ end }} />
|
||||
{{ else if eq .ResourceType "video" }}
|
||||
<video class="figure-media" controls preload="metadata">
|
||||
<video controls preload="metadata">
|
||||
{{ with .Params.alt }}
|
||||
{{ warnf "video does not support alt text, '%s'" . }}
|
||||
{{ end }}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{ with .Resources.Get "feature" }}
|
||||
<div class="featured-media">
|
||||
<div class="post-media">
|
||||
<figure>
|
||||
{{ partial "embed-resource.html" . }}
|
||||
{{ with .Title }}
|
||||
@@ -6,12 +6,6 @@
|
||||
{{ with resources.Get "css/bobastyle.css" | fingerprint "sha512" }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||
{{ 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" }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" media="print" onload="this.media='all'">
|
||||
{{ end }}
|
||||
|
||||
@@ -1 +1 @@
|
||||
{{ partialCached "icon_impl.html" . . }}
|
||||
{{ partialCached "icon_code.html" . . }}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<div class="page-list">
|
||||
{{ with . }}
|
||||
{{ range . }}
|
||||
{{ .Render "summary" }}
|
||||
<article class="page">
|
||||
{{ .Render "summary" }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<div>
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
{{ with .GetTerms "authors" }}
|
||||
<span class="page-metadata-item authors" aria-label="{{ i18n "aria_post_meta_authors" }}">
|
||||
{{ with .Params.authors }}
|
||||
<span class="page-metadata-item" data-pagefind-meta="authors" aria-label="{{ i18n "aria_post_meta_authors" }}">
|
||||
{{ partial "icon.html" "user-circle" }}
|
||||
|
||||
{{ range . }}
|
||||
<a href="{{ .Permalink }}" data-pagefind-filter="author">{{ .LinkTitle }}</a>
|
||||
{{ if index $.Site.Taxonomies "authors" }}
|
||||
{{ $authors := slice }}
|
||||
{{ range . }}
|
||||
{{ $url := (printf "authors/%s" (. | anchorize)) | absLangURL }}
|
||||
{{ $authors = $authors | append (printf `<a href="%s">%s</a>` $url .) }}
|
||||
{{ end }}
|
||||
{{ delimit $authors ", " | safeHTML }}
|
||||
{{ else }}
|
||||
{{ delimit . ", " }}
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
|
||||
@@ -4,10 +4,8 @@
|
||||
{{ $categories = $categories | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
||||
{{ end }}
|
||||
|
||||
<div class="page-metadata-section categories" aria-label="{{ i18n "aria_post_meta_categories" }}">
|
||||
<div class="page-metadata-section categories" data-pagefind-meta="categories" aria-label="{{ i18n "aria_post_meta_categories" }}">
|
||||
{{ partial "icon.html" "folder" }}
|
||||
{{ range . }}
|
||||
<a href="{{ .Permalink }}" data-pagefind-filter="category">{{ .LinkTitle }}</a>
|
||||
{{ end }}
|
||||
{{ delimit $categories ", " | safeHTML }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<span class="page-metadata-item page-meta-comments-counter" aria-label="comments counter">
|
||||
<span class="page-metadata-item" aria-label="comments counter">
|
||||
{{ partial "icon.html" "message" }}
|
||||
{{/* 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
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
{{ with (.GetTerms "series") }}
|
||||
<div class="page-metadata-section series" aria-label="{{ i18n "aria_post_meta_series" }}">
|
||||
{{ $series := slice }}
|
||||
{{ 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" }}
|
||||
{{ range . }}
|
||||
<a href="{{ .Permalink }}" data-pagefind-filter="series">{{ .LinkTitle }}</a>
|
||||
{{ end }}
|
||||
{{ delimit $series ", " | safeHTML }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
{{ with (.GetTerms "tags") }}
|
||||
{{ $tags := slice }}
|
||||
{{ range . }}
|
||||
{{ $tags = $tags | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
||||
{{ end }}
|
||||
|
||||
<div class="page-metadata-section tags" aria-label="{{ i18n "aria_post_meta_tags" }}">
|
||||
<div class="page-metadata-section tags" data-pagefind-meta="tags" aria-label="{{ i18n "aria_post_meta_tags" }}">
|
||||
{{ partial "icon.html" "tag" }}
|
||||
{{ range . }}
|
||||
<a href="{{ .Permalink }}" data-pagefind-filter="tag">{{ .LinkTitle }}</a>
|
||||
{{ end }}
|
||||
{{ delimit $tags ", " | safeHTML }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
8
layouts/_partials/page-metadata/item/viewraw.html
Normal file
8
layouts/_partials/page-metadata/item/viewraw.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{{ with .OutputFormats.Get "markdown" }}
|
||||
<span class="page-metadata-item post-meta-view-markdown" aria-label="{{ i18n "aria_post_meta_view_markdown" }}">
|
||||
{{ partial "icon.html" "code" }}
|
||||
<a href="{{ .Permalink }}" target="_blank">
|
||||
{{- i18n "view_markdown" -}}
|
||||
</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
@@ -1,5 +1,5 @@
|
||||
{{ if or .Date .Params.authors .Site.Params.readingtime .Site.Params.gitFileURL }}
|
||||
<section class="page-metadata" aria-label="{{ i18n "aria_post_metadata" }}">
|
||||
<div class="page-metadata" aria-label="{{ i18n "aria_post_metadata" }}">
|
||||
{{ if .Date }}
|
||||
<span class="page-metadata-item" aria-label="{{ i18n "aria_post_meta_date" }}">
|
||||
{{ partial "icon.html" "calendar" }}
|
||||
@@ -20,10 +20,11 @@
|
||||
{{ partial "page-metadata/item/authors.html" . }}
|
||||
{{ partial "page-metadata/item/readingtime.html" . }}
|
||||
{{ partial "page-metadata/item/edithistory.html" . }}
|
||||
{{ partial "page-metadata/item/viewraw.html" . }}
|
||||
{{ partial "page-metadata/item/comments-counter.html" . }}
|
||||
|
||||
{{ partial "page-metadata/item/categories.html" . }}
|
||||
|
||||
{{ partial "page-metadata/item/tags.html" . }}
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{ if or .Date .Params.authors .Site.Params.readingtime }}
|
||||
<section class="page-metadata" aria-label="{{ i18n "aria_post_metadata" }}">
|
||||
<div class="page-metadata" aria-label="{{ i18n "aria_post_metadata" }}">
|
||||
{{ if .Date }}
|
||||
<span class="page-metadata-item" aria-label="date">
|
||||
{{ partial "icon.html" "calendar" }}
|
||||
@@ -14,5 +14,5 @@
|
||||
{{ partial "page-metadata/item/series.html" . }}
|
||||
{{ partial "page-metadata/item/categories.html" . }}
|
||||
{{ partial "page-metadata/item/tags.html" . }}
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{{ if gt .Paginator.TotalPages 1 }}
|
||||
<nav class="pagination">
|
||||
{{/* https://github.com/gohugoio/hugo/blob/a88b488181279befd50e1d127f9f67604f2f9854/tpl/tplimpl/embedded/templates/_partials/pagination.html */}}
|
||||
{{ partial "pagination-hugo.html" . }}
|
||||
{{ partial "_internal/pagination.html" . }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
||||
@@ -3,6 +3,16 @@
|
||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
|
||||
<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 }}
|
||||
<meta property="article:section" content="{{ . }}">
|
||||
{{ end }}
|
||||
@@ -27,38 +37,12 @@
|
||||
<meta property="og:site_name" content="{{ . }}">
|
||||
{{ 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" }}
|
||||
{{ $featured_video := $videos.GetMatch "*feature*" }}
|
||||
{{ if not $featured_video }}
|
||||
{{ $featured_video = $videos.GetMatch "{*cover*,*thumbnail*}" }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ with $featured_video }}
|
||||
<meta property="og:video" content="{{ $featured_video.Permalink | absURL }}">
|
||||
{{ with .MediaType }}
|
||||
<meta property="og:video:type" content="{{ . }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
@@ -31,8 +31,6 @@
|
||||
*/}}
|
||||
{{ with .Site.Params.social.twitter }}
|
||||
<meta name="twitter:site" content="@{{ . }}">
|
||||
{{ else }}
|
||||
{{ errorf "a twitter username is required for twitter cards to work" }}
|
||||
{{ end }}
|
||||
{{ with .GetTerms "authors" }}
|
||||
{{ range . }}
|
||||
|
||||
@@ -1,4 +1,22 @@
|
||||
<section class="share-buttons">
|
||||
{{ define "_partials/share-button.html" }}
|
||||
<a class="{{ .ShortName }}-share"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
aria-label="{{ i18n (printf "aria_share_%s" .ShortName) }}"
|
||||
onclick="share_event('{{ .ProperName }}');"
|
||||
href="{{ .URL }}">
|
||||
{{- partial "icon.html" (or .IconName .ShortName) -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<div class="share-buttons">
|
||||
{{ $services := dict
|
||||
"twitter" (dict "ProperName" "Twitter" "URL" (printf "https://twitter.com/intent/tweet?url=%s&text=%s&via=bbaovanc" .Permalink .Title))
|
||||
}}
|
||||
{{ range $name, $info := $services }}
|
||||
{{ $data := merge $info (dict "ShortName" $name) }}
|
||||
{{ partial "share-button.html" $data }}
|
||||
{{ end }}
|
||||
{{ if .Site.Params.shareButtons.twitter }}
|
||||
<a class="twitter-share"
|
||||
target="_blank"
|
||||
@@ -66,4 +84,4 @@
|
||||
{{- partial "icon.html" "printer" -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<header class="top">
|
||||
<div class="top-brand">
|
||||
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||
<div class="top">
|
||||
<header class="header">
|
||||
<a class="heading-link" href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||
{{ .Site.Title | markdownify }}
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="top-navbar" aria-label="{{ i18n "aria_navbar" }}">
|
||||
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
||||
{{ with .Site.Home }}
|
||||
<a class="top-navbar-item{{ if $.IsHome }} top-navbar-item--active{{ end }}" href="{{ .Permalink | absLangURL }}">{{ .Title | markdownify }}</a>
|
||||
<a class="navbar-item{{ if $.IsHome }} active{{ end }}" href="{{ .Permalink | absLangURL }}">{{ .Title | markdownify }}</a>
|
||||
{{ end }}
|
||||
|
||||
{{ range .Site.Menus.main }}
|
||||
@@ -16,9 +16,9 @@
|
||||
{{ if or ($.HasMenuCurrent .Menu .) (eq .Page $) }}
|
||||
{{ $isActive = true }}
|
||||
{{ end }}
|
||||
<a class="top-navbar-item{{ if $isActive }} top-navbar-item--active{{ end }}"
|
||||
<a class="navbar-item{{ if $isActive }} active{{ end }}"
|
||||
{{ if strings.HasPrefix .URL "http" }}target="_blank" rel="noopener"{{ end }}
|
||||
href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
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">
|
||||
@@ -11,7 +11,9 @@
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages }}
|
||||
{{ range . }}
|
||||
{{ .Render "summary" }}
|
||||
<article class="page">
|
||||
{{ .Render "summary" }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<div>
|
||||
@@ -1,18 +1,14 @@
|
||||
<article class="summary-card">
|
||||
<h2 class="summary-card-title">
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h2>
|
||||
<h2 class="page-title">
|
||||
<a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h2>
|
||||
|
||||
{{ partial "page-metadata/author.html" . }}
|
||||
{{ partial "page-metadata/author.html" . }}
|
||||
|
||||
{{ with .Summary }}
|
||||
<div class="summary-card-description">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="page-description">
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="summary-card-readmore">
|
||||
<a href="{{ .Permalink }}">{{ i18n "see_posts" }} →</a>
|
||||
</div>
|
||||
</article>
|
||||
<div class="readmore">
|
||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||
</div>
|
||||
|
||||
@@ -13,28 +13,28 @@
|
||||
{{ partial "breadcrumb.html" . }}
|
||||
{{ end }}
|
||||
|
||||
<main id="main-content">
|
||||
<main id="main-content" {{ if .IsPage }}data-pagefind-body{{ end }}>
|
||||
{{ block "main" . }}
|
||||
THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it)
|
||||
{{ end }}
|
||||
</main>
|
||||
|
||||
{{ if or .Site.Copyright .Site.Params.footer }}
|
||||
<footer class="site-footer">
|
||||
{{ with .Site.Copyright }}
|
||||
{{ . | safeHTML }}
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.footer }}
|
||||
{{ . | $.RenderString (dict "display" "block") }}
|
||||
{{ end }}
|
||||
</footer>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ block "post-body" . }}
|
||||
{{/* currently this is only used for related posts */}}
|
||||
{{ 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>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<article class="homepage-content">
|
||||
{{ . }}
|
||||
</article>
|
||||
<hr>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.homepageLatestPosts }}
|
||||
<hr>
|
||||
<section class="homepage-latest-posts">
|
||||
<div class="homepage-latest-posts">
|
||||
<h1>
|
||||
{{ i18n "latest_posts" }}
|
||||
{{ partial "rss-link.html" . }}
|
||||
@@ -16,6 +16,6 @@
|
||||
{{ partial "page-list.html" (.Paginate .Site.RegularPages).Pages }}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
@@ -1,76 +1,74 @@
|
||||
{{ define "main" }}
|
||||
<article>
|
||||
<div class="page-title">
|
||||
<h1>
|
||||
{{ .Title | markdownify }}
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h1>
|
||||
</div>
|
||||
<div class="page-title">
|
||||
<h1>
|
||||
{{ .Title | markdownify }}
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
{{ partial "page-metadata/post-full.html" . }}
|
||||
{{ partial "series-box.html" . }}
|
||||
{{ partial "page-metadata/post-full.html" . }}
|
||||
{{ partial "series-box.html" . }}
|
||||
|
||||
{{ if .Params.Toc }}
|
||||
<section class="table-of-contents" aria-label="{{ i18n "aria_table_of_contents" }}">
|
||||
<details>
|
||||
<summary>{{ i18n "table_of_contents" }}</summary>
|
||||
{{ .TableOfContents }}
|
||||
</details>
|
||||
</section>
|
||||
<div class="table-of-contents print">
|
||||
{{ i18n "table_of_contents" }}
|
||||
{{ if .Params.Toc }}
|
||||
<div class="table-of-contents" aria-label="{{ i18n "aria_table_of_contents" }}">
|
||||
<details>
|
||||
<summary>{{ i18n "table_of_contents" }}</summary>
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "featured-media.html" . }}
|
||||
|
||||
<div class="post-content" data-pagefind-body>
|
||||
{{ .Content }}
|
||||
</details>
|
||||
</div>
|
||||
<div class="table-of-contents print">
|
||||
{{ i18n "table_of_contents" }}
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "series-box.html" . }}
|
||||
{{ partial "feature-figure.html" . }}
|
||||
|
||||
{{ if or .NextInSection .PrevInSection }}
|
||||
<nav class="prevnext">
|
||||
{{ with .NextInSection }}
|
||||
<a class="prev" href="{{ .Permalink }}">
|
||||
<div class="prev-caption">
|
||||
← {{ i18n "newer_post" }}
|
||||
</div>
|
||||
<div class="prev-post">
|
||||
{{ .Title | markdownify }}
|
||||
</div>
|
||||
</a>
|
||||
{{ else }}
|
||||
<div class="prev"></div>
|
||||
{{ end }}
|
||||
|
||||
{{ with .PrevInSection }}
|
||||
<a class="next" href="{{ .Permalink }}">
|
||||
<div class="next-caption">
|
||||
{{ i18n "older_post" }} →
|
||||
</div>
|
||||
<div class="next-post">
|
||||
{{ .Title | markdownify }}
|
||||
</div>
|
||||
</a>
|
||||
{{ else }}
|
||||
<div class="next"></div>
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.shareButtons }}
|
||||
{{ partial "share.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.comments }}
|
||||
<section class="comments">
|
||||
{{ partial "comments.html" . }}
|
||||
</section>
|
||||
{{ end }}
|
||||
<article class="post-content">
|
||||
{{ .Content }}
|
||||
</article>
|
||||
|
||||
{{ partial "series-box.html" . }}
|
||||
|
||||
{{ if or .NextInSection .PrevInSection }}
|
||||
<div class="prevnext">
|
||||
{{ with .NextInSection }}
|
||||
<a class="prev" href="{{ .Permalink }}">
|
||||
<div class="prev-caption">
|
||||
← {{ i18n "newer_post" }}
|
||||
</div>
|
||||
<div class="prev-post">
|
||||
{{ .Title | markdownify }}
|
||||
</div>
|
||||
</a>
|
||||
{{ else }}
|
||||
<div class="prev"></div>
|
||||
{{ end }}
|
||||
|
||||
{{ with .PrevInSection }}
|
||||
<a class="next" href="{{ .Permalink }}">
|
||||
<div class="next-caption">
|
||||
{{ i18n "older_post" }} →
|
||||
</div>
|
||||
<div class="next-post">
|
||||
{{ .Title | markdownify }}
|
||||
</div>
|
||||
</a>
|
||||
{{ else }}
|
||||
<div class="next"></div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.shareButtons }}
|
||||
{{ partial "share.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.comments }}
|
||||
<div class="comments">
|
||||
{{ partial "comments.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -79,7 +77,7 @@
|
||||
{{ with $related }}
|
||||
<div class="related-posts">
|
||||
<hr>
|
||||
<h2>{{ i18n "related_posts" }}</h2>
|
||||
<h1>{{ i18n "related_posts" }}</h1>
|
||||
{{ partial "page-list.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
9
layouts/page.markdown.md
Normal file
9
layouts/page.markdown.md
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ with .File -}}
|
||||
{{ with (.Path | readFile) -}}
|
||||
{{ . -}}
|
||||
{{ else -}}
|
||||
{{ errorf "file not found: %s" .Path -}}
|
||||
{{ end -}}
|
||||
{{ else -}}
|
||||
{{ errorf "no file available for markdown template?" -}}
|
||||
{{ end -}}
|
||||
@@ -1,4 +1,2 @@
|
||||
User-Agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: {{ "sitemap.xml" | absLangURL }}
|
||||
|
||||
@@ -9,15 +9,17 @@
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
{{ with .Sections }}
|
||||
<div class="sections">
|
||||
{{ range . }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="list-page-container">
|
||||
{{ with .Sections }}
|
||||
<div class="sections">
|
||||
{{ range . }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "page-list.html" .Paginator.Pages }}
|
||||
{{ partial "page-list.html" .Paginator.Pages }}
|
||||
</div>
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
||||
|
||||
@@ -1,20 +1,12 @@
|
||||
<a class="section-card-anchor" href="{{ .Permalink }}">
|
||||
<div class="section-card">
|
||||
<div>
|
||||
<h2 class="section-card-title">
|
||||
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
{{ .Title | markdownify }}
|
||||
</h2>
|
||||
<a class="section-anchor" href="{{ .Permalink }}">
|
||||
<div class="section">
|
||||
<h2 class="section-title">
|
||||
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
{{ .Title | markdownify }}
|
||||
</h2>
|
||||
|
||||
{{ with .Summary }}
|
||||
<div class="section-card-description">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="section-card-arrow">
|
||||
{{ partial "icon.html" "arrow-right" }}
|
||||
<div class="section-description">
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
{{ define "main" }}
|
||||
<div class="page-title">
|
||||
<h1>
|
||||
{{ partial "icon.html" "files" }}
|
||||
{{ .Title | markdownify }}
|
||||
</h1>
|
||||
</div>
|
||||
<h1>
|
||||
{{ partial "icon.html" "files" }}
|
||||
{{ .Title | markdownify }}
|
||||
</h1>
|
||||
|
||||
{{ with .Content }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="page-list page-list--series">
|
||||
<div class="page-list series">
|
||||
{{ with .Paginator.Pages }}
|
||||
{{ range . }}
|
||||
{{ .Render "summary" }}
|
||||
<div class="page series">
|
||||
{{ .Render "summary" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<div>
|
||||
@@ -1,21 +1,19 @@
|
||||
<article class="summary-card">
|
||||
<h2 class="summary-card-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="page-title">
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h2>
|
||||
|
||||
{{ partial "page-metadata/series.html" . }}
|
||||
{{ partial "page-metadata/series.html" . }}
|
||||
|
||||
{{ with .Summary }}
|
||||
<div class="summary-card-description">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="page-description">
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="page-list page-list--series-inner">
|
||||
{{ range .Data.Pages.Reverse }}
|
||||
<div class="page-list series-inner">
|
||||
{{ range .Data.Pages.Reverse }}
|
||||
<article class="page">
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
@@ -1,21 +1,17 @@
|
||||
<article class="summary-card">
|
||||
<h2 class="summary-card-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="page-title">
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h2>
|
||||
|
||||
{{ partial "page-metadata/post-short.html" . }}
|
||||
{{ partial "page-metadata/post-short.html" . }}
|
||||
|
||||
{{ partial "featured-media.html" . }}
|
||||
{{ partial "feature-figure.html" . }}
|
||||
|
||||
{{ with .Summary }}
|
||||
<div class="summary-card-description">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="page-description">
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="summary-card-readmore">
|
||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||
</div>
|
||||
</article>
|
||||
<div class="readmore">
|
||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||
</div>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
</a>
|
||||
{{ partial "page-metadata/taxonomy.html" . }}
|
||||
</div>
|
||||
{{ .Summary }}
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
@@ -8,7 +8,7 @@ description = "Simple Hugo theme for boba.best and bbaovanc.com"
|
||||
homepage = "https://bbaovanc.com"
|
||||
tags = []
|
||||
features = []
|
||||
min_version = "0.146.0"
|
||||
min_version = "0.93.0"
|
||||
|
||||
[author]
|
||||
name = "bbaovanc"
|
||||
|
||||
Reference in New Issue
Block a user