1 Commits

Author SHA1 Message Date
0790ed94b9 WIP 2025-08-25 18:23:39 -05:00
24 changed files with 425 additions and 392 deletions

View File

@@ -174,6 +174,30 @@ video {
max-width: 100%; max-width: 100%;
} }
figure > .figure-media {
padding: 5px;
}
figure > .figure-media.border {
border: 2px solid var(--figure-border);
}
.post-media > figure > .figure-media {
border: 7px solid var(--figure-border);
}
figure {
display: block;
text-align: center;
margin: 0;
}
figcaption {
font-style: italic;
font-size: small;
text-align: center;
}
a { a {
color: var(--link-0); color: var(--link-0);
text-decoration: inherit; text-decoration: inherit;
@@ -316,7 +340,7 @@ body {
* or it will need its hover background to be chopped off on the left */ * or it will need its hover background to be chopped off on the left */
} }
.top-brand { .brand {
flex-grow: 1; flex-grow: 1;
margin: 8px var(--page-margin); margin: 8px var(--page-margin);
font-size: 1.25em; font-size: 1.25em;
@@ -324,27 +348,27 @@ body {
align-items: center; align-items: center;
} }
.top-brand > a { .brand a {
color: inherit; color: inherit;
font-weight: bold; font-weight: bold;
} }
.top-navbar { .navbar {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.top-navbar-item { .navbar-item {
padding: 12px var(--page-margin); padding: 12px var(--page-margin);
white-space: nowrap; white-space: nowrap;
} }
.top-navbar-item:hover { .navbar-item:hover {
background-color: var(--background-2); background-color: var(--background-2);
text-decoration: none; text-decoration: none;
} }
.top-navbar-item--active { .navbar-item.active {
font-weight: bold; font-weight: bold;
} }
@@ -420,26 +444,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; padding: 24px;
border-radius: 12px; border-radius: 12px;
background-color: var(--background-1); background-color: var(--background-1);
color: var(--text-1); color: var(--text-1);
} }
.summary-card-title { .page > .page-title {
margin-top: 0; margin-top: 0;
margin-bottom: 10px;
}
.summary-card-title a {
color: inherit;
}
.summary-card-title h1 {
margin: 0;
} }
/* hugo just can't handle this feature /* hugo just can't handle this feature
@@ -450,6 +481,18 @@ body {
} }
*/ */
.page-title {
margin-bottom: 10px;
}
.page-title a {
color: inherit;
}
.page-title h1 {
margin: 0;
}
.page-metadata { .page-metadata {
margin-bottom: 24px; margin-bottom: 24px;
} }
@@ -471,74 +514,20 @@ body {
content: ","; content: ",";
} }
/* for formatting of the featured image/media, see the .featured-media class */ .post-media {
margin-top: 15px;
}
.summary-card-description { .page-description {
margin-top: 10px; margin-top: 10px;
} }
.summary-card-readmore { .readmore {
margin-top: 5px; margin-top: 5px;
} }
/* }}} */ /* }}} */
/* Figures, and featured media component (used in page.html and summary-card) {{{ */
figure > .figure-media {
padding: 5px;
}
figure > .figure-media.border {
border: 2px solid var(--figure-border);
}
figure {
display: block;
text-align: center;
margin: 0;
}
figcaption {
font-style: italic;
font-size: small;
text-align: center;
}
.featured-media {
margin-top: 15px;
}
.featured-media > figure > .figure-media {
border: 7px solid var(--figure-border);
}
/* }}} */
/* List layout {{{ */
.page-list {
display: flex;
flex-direction: column;
list-style: none;
padding: 0;
gap: 40px;
margin-top: 16px;
}
.page-title {
margin-bottom: 10px;
}
.page-title a {
color: inherit;
}
.page-title h1 {
margin: 0;
}
/* }}} */
/* Taxonomy list layout {{{ */ /* Taxonomy list layout {{{ */
.taxonomy-list a, .taxonomy-list a,
@@ -589,11 +578,17 @@ figcaption {
/* Series list layout {{{ */ /* Series list layout {{{ */
.page-list--series { .page-list.series {
display: flex;
gap: 80px; gap: 80px;
flex-flow: row wrap;
list-style: none;
color: var(--text-0);
padding: 8px;
border-radius: 16px;
} }
.page-list--series-inner { .page-list.series-inner {
gap: 10px; gap: 10px;
flex-direction: row; flex-direction: row;
flex-flow: row wrap; flex-flow: row wrap;
@@ -602,7 +597,7 @@ figcaption {
padding: 8px; padding: 8px;
border-radius: 16px; border-radius: 16px;
} }
.page-list--series-inner > .summary-card { .page-list.series-inner > .page {
flex: 1; flex: 1;
min-width: 49%; min-width: 49%;
} }
@@ -612,53 +607,39 @@ figcaption {
/* Subsections on list pages {{{ */ /* Subsections on list pages {{{ */
.sections { .sections {
margin-bottom: 60px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
} }
.section-card { .section {
background-color: var(--background-1); background-color: var(--background-1);
color: var(--text-1); color: var(--text-1);
border-radius: 12px; border-radius: 12px;
padding: 1px 25px; padding: 1px 25px;
display: flex;
flex-direction: row;
justify-content: space-between;
} }
.section-card:hover { .section:hover {
background-color: var(--background-2); background-color: var(--background-2);
color: var(--text-2); color: var(--text-2);
} }
.section-card-title { .section-title {
margin: 10px 0; margin: 10px 0;
} }
.section-card-anchor { .section-anchor {
color: inherit; color: inherit;
} }
.section-card-anchor:hover { .section-anchor:hover {
text-decoration: none; text-decoration: none;
} }
.section-card-description { .section-description {
margin-bottom: 5px; margin-bottom: 5px;
} }
.section-card-arrow {
margin-block: auto;
max-height: fit-content;
float: right;
}
.section-card-arrow > .icon {
height: 48px;
width: 48px;
}
/* }}} */ /* }}} */
@@ -784,20 +765,20 @@ figcaption {
*/ */
.related-posts > hr, .related-posts > hr,
.related-posts > h2 { .related-posts > h1 {
margin: var(--page-margin); margin: var(--page-margin);
} }
.related-posts .summary-card { .related-posts .page {
min-width: 300px; min-width: 300px;
max-width: 300px; max-width: 300px;
} }
.related-posts .summary-card:first-child { .related-posts .page:first-child {
margin-left: var(--page-margin); margin-left: var(--page-margin);
} }
.related-posts .summary-card:last-child { .related-posts .page:last-child {
margin-right: var(--page-margin); margin-right: var(--page-margin);
} }
@@ -823,7 +804,7 @@ figcaption {
background-color: var(--background-1); background-color: var(--background-1);
border-radius: 8px; border-radius: 8px;
} }
.code-block-header { .code-block > .code-header {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
@@ -833,17 +814,17 @@ figcaption {
border-top-right-radius: 8px; border-top-right-radius: 8px;
height: 2em; height: 2em;
} }
.code-block-header > * { .code-block > .code-header > * {
margin: auto 0; margin: auto 0;
} }
.code-block-type { .code-block > .code-header > .code-type {
border-top-left-radius: 8px; border-top-left-radius: 8px;
} }
/* TODO: make the code copy button prettier */ /* TODO: make the code copy button prettier */
.code-block-copy-button { .code-block > .code-header > .code-copy-button {
color: var(--link-1); color: var(--link-1);
} }
.code-block-copy-button:hover { .code-block > .code-header > .code-copy-button:hover {
cursor: pointer; cursor: pointer;
} }
.code-block > .highlight { .code-block > .highlight {
@@ -877,7 +858,7 @@ figcaption {
overflow-wrap: break-word; overflow-wrap: break-word;
} }
.code-block-type, .code-block > .code-header > .code-type,
code { code {
border-radius: 5px; border-radius: 5px;
} }
@@ -960,7 +941,7 @@ aside.quote {
/* Print compatibility {{{ */ /* Print compatibility {{{ */
@media print { @media print {
.top-navbar, .top > .navbar,
.content-heading-link, .content-heading-link,
.post-meta-edit-history, .post-meta-edit-history,
.post-meta-view-markdown, .post-meta-view-markdown,
@@ -979,7 +960,7 @@ aside.quote {
.top { .top {
background-color: unset; background-color: unset;
} }
.top-brand { .top > .header {
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
} }

View File

@@ -1,95 +1,96 @@
/* tango style */
@media print, (prefers-color-scheme: light) { @media print, (prefers-color-scheme: light) {
.chroma { .chroma {
color: black; color: black;
} }
/* Generated using: hugo gen chromastyles --style tango */ /* Background */ .bg { background-color: #f8f8f8; }
/* PreWrapper */ .chroma { background-color: #f8f8f8; }
/* Background */ .bg { background-color:#f8f8f8; } /* Other */ .chroma .x { color: #000000 }
/* PreWrapper */ .chroma { background-color:#f8f8f8; } /* Error */ .chroma .err { color: #a40000 }
/* Other */ .chroma .x { color:#000 } /* CodeLine */ .chroma .cl { }
/* Error */ .chroma .err { color:#a40000 } /* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
/* LineLink */ .chroma .lnlinks { outline:none;text-decoration:none;color:inherit } /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTableTD */ .chroma .lntd { vertical-align:top;padding:0;margin:0;border:0; } /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing:0;padding:0;margin:0;border:0; } /* LineHighlight */ .chroma .hl { background-color: #dfdfdf }
/* 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 }
/* 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 }
/* 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; }
/* Line */ .chroma .line { display:flex; } /* Keyword */ .chroma .k { color: #204a87; font-weight: bold }
/* Keyword */ .chroma .k { color:#204a87;font-weight:bold } /* KeywordConstant */ .chroma .kc { color: #204a87; font-weight: bold }
/* KeywordConstant */ .chroma .kc { color:#204a87;font-weight:bold } /* KeywordDeclaration */ .chroma .kd { color: #204a87; font-weight: bold }
/* KeywordDeclaration */ .chroma .kd { color:#204a87;font-weight:bold } /* KeywordNamespace */ .chroma .kn { color: #204a87; font-weight: bold }
/* KeywordNamespace */ .chroma .kn { color:#204a87;font-weight:bold } /* KeywordPseudo */ .chroma .kp { color: #204a87; font-weight: bold }
/* KeywordPseudo */ .chroma .kp { color:#204a87;font-weight:bold } /* KeywordReserved */ .chroma .kr { color: #204a87; font-weight: bold }
/* KeywordReserved */ .chroma .kr { color:#204a87;font-weight:bold } /* KeywordType */ .chroma .kt { color: #204a87; font-weight: bold }
/* KeywordType */ .chroma .kt { color:#204a87;font-weight:bold } /* Name */ .chroma .n { color: #000000 }
/* Name */ .chroma .n { color:#000 } /* NameAttribute */ .chroma .na { color: #c4a000 }
/* NameAttribute */ .chroma .na { color:#c4a000 } /* NameBuiltin */ .chroma .nb { color: #204a87 }
/* NameClass */ .chroma .nc { color:#000 } /* NameBuiltinPseudo */ .chroma .bp { color: #3465a4 }
/* NameConstant */ .chroma .no { color:#000 } /* NameClass */ .chroma .nc { color: #000000 }
/* NameDecorator */ .chroma .nd { color:#5c35cc;font-weight:bold } /* NameConstant */ .chroma .no { color: #000000 }
/* NameEntity */ .chroma .ni { color:#ce5c00 } /* NameDecorator */ .chroma .nd { color: #5c35cc; font-weight: bold }
/* NameException */ .chroma .ne { color:#c00;font-weight:bold } /* NameEntity */ .chroma .ni { color: #ce5c00 }
/* NameLabel */ .chroma .nl { color:#f57900 } /* NameException */ .chroma .ne { color: #cc0000; font-weight: bold }
/* NameNamespace */ .chroma .nn { color:#000 } /* NameFunction */ .chroma .nf { color: #000000 }
/* NameOther */ .chroma .nx { color:#000 } /* NameFunctionMagic */ .chroma .fm { color: #000000 }
/* NameProperty */ .chroma .py { color:#000 } /* NameLabel */ .chroma .nl { color: #f57900 }
/* NameTag */ .chroma .nt { color:#204a87;font-weight:bold } /* NameNamespace */ .chroma .nn { color: #000000 }
/* NameBuiltin */ .chroma .nb { color:#204a87 } /* NameOther */ .chroma .nx { color: #000000 }
/* NameBuiltinPseudo */ .chroma .bp { color:#3465a4 } /* NameProperty */ .chroma .py { color: #000000 }
/* NameVariable */ .chroma .nv { color:#000 } /* NameTag */ .chroma .nt { color: #204a87; font-weight: bold }
/* NameVariableClass */ .chroma .vc { color:#000 } /* NameVariable */ .chroma .nv { color: #000000 }
/* NameVariableGlobal */ .chroma .vg { color:#000 } /* NameVariableClass */ .chroma .vc { color: #000000 }
/* NameVariableInstance */ .chroma .vi { color:#000 } /* NameVariableGlobal */ .chroma .vg { color: #000000 }
/* NameVariableMagic */ .chroma .vm { color:#000 } /* NameVariableInstance */ .chroma .vi { color: #000000 }
/* NameFunction */ .chroma .nf { color:#000 } /* NameVariableMagic */ .chroma .vm { color: #000000 }
/* NameFunctionMagic */ .chroma .fm { color:#000 } /* Literal */ .chroma .l { color: #000000 }
/* Literal */ .chroma .l { color:#000 } /* LiteralDate */ .chroma .ld { color: #000000 }
/* LiteralDate */ .chroma .ld { color:#000 } /* LiteralString */ .chroma .s { color: #4e9a06 }
/* LiteralString */ .chroma .s { color:#4e9a06 } /* LiteralStringAffix */ .chroma .sa { color: #4e9a06 }
/* LiteralStringAffix */ .chroma .sa { color:#4e9a06 } /* LiteralStringBacktick */ .chroma .sb { color: #4e9a06 }
/* LiteralStringBacktick */ .chroma .sb { color:#4e9a06 } /* LiteralStringChar */ .chroma .sc { color: #4e9a06 }
/* LiteralStringChar */ .chroma .sc { color:#4e9a06 } /* LiteralStringDelimiter */ .chroma .dl { color: #4e9a06 }
/* LiteralStringDelimiter */ .chroma .dl { color:#4e9a06 } /* LiteralStringDoc */ .chroma .sd { color: #8f5902; font-style: italic }
/* LiteralStringDoc */ .chroma .sd { color:#8f5902;font-style:italic } /* LiteralStringDouble */ .chroma .s2 { color: #4e9a06 }
/* LiteralStringDouble */ .chroma .s2 { color:#4e9a06 } /* LiteralStringEscape */ .chroma .se { color: #4e9a06 }
/* LiteralStringEscape */ .chroma .se { color:#4e9a06 } /* LiteralStringHeredoc */ .chroma .sh { color: #4e9a06 }
/* LiteralStringHeredoc */ .chroma .sh { color:#4e9a06 } /* LiteralStringInterpol */ .chroma .si { color: #4e9a06 }
/* LiteralStringInterpol */ .chroma .si { color:#4e9a06 } /* LiteralStringOther */ .chroma .sx { color: #4e9a06 }
/* LiteralStringOther */ .chroma .sx { color:#4e9a06 } /* LiteralStringRegex */ .chroma .sr { color: #4e9a06 }
/* LiteralStringRegex */ .chroma .sr { color:#4e9a06 } /* LiteralStringSingle */ .chroma .s1 { color: #4e9a06 }
/* LiteralStringSingle */ .chroma .s1 { color:#4e9a06 } /* LiteralStringSymbol */ .chroma .ss { color: #4e9a06 }
/* LiteralStringSymbol */ .chroma .ss { color:#4e9a06 } /* LiteralNumber */ .chroma .m { color: #0000cf; font-weight: bold }
/* LiteralNumber */ .chroma .m { color:#0000cf;font-weight:bold } /* LiteralNumberBin */ .chroma .mb { color: #0000cf; font-weight: bold }
/* LiteralNumberBin */ .chroma .mb { color:#0000cf;font-weight:bold } /* LiteralNumberFloat */ .chroma .mf { color: #0000cf; font-weight: bold }
/* LiteralNumberFloat */ .chroma .mf { color:#0000cf;font-weight:bold } /* LiteralNumberHex */ .chroma .mh { color: #0000cf; font-weight: bold }
/* LiteralNumberHex */ .chroma .mh { color:#0000cf;font-weight:bold } /* LiteralNumberInteger */ .chroma .mi { color: #0000cf; font-weight: bold }
/* LiteralNumberInteger */ .chroma .mi { color:#0000cf;font-weight:bold } /* LiteralNumberIntegerLong */ .chroma .il { color: #0000cf; font-weight: bold }
/* LiteralNumberIntegerLong */ .chroma .il { color:#0000cf;font-weight:bold } /* LiteralNumberOct */ .chroma .mo { color: #0000cf; font-weight: bold }
/* LiteralNumberOct */ .chroma .mo { color:#0000cf;font-weight:bold } /* Operator */ .chroma .o { color: #ce5c00; font-weight: bold }
/* Operator */ .chroma .o { color:#ce5c00;font-weight:bold } /* OperatorWord */ .chroma .ow { color: #204a87; font-weight: bold }
/* OperatorWord */ .chroma .ow { color:#204a87;font-weight:bold } /* Punctuation */ .chroma .p { color: #000000; font-weight: bold }
/* Punctuation */ .chroma .p { color:#000;font-weight:bold } /* Comment */ .chroma .c { color: #8f5902; font-style: italic }
/* Comment */ .chroma .c { color:#8f5902;font-style:italic } /* CommentHashbang */ .chroma .ch { color: #8f5902; font-style: italic }
/* CommentHashbang */ .chroma .ch { color:#8f5902;font-style:italic } /* CommentMultiline */ .chroma .cm { color: #8f5902; font-style: italic }
/* CommentMultiline */ .chroma .cm { color:#8f5902;font-style:italic } /* CommentSingle */ .chroma .c1 { color: #8f5902; font-style: italic }
/* CommentSingle */ .chroma .c1 { color:#8f5902;font-style:italic } /* CommentSpecial */ .chroma .cs { color: #8f5902; font-style: italic }
/* CommentSpecial */ .chroma .cs { color:#8f5902;font-style:italic } /* CommentPreproc */ .chroma .cp { color: #8f5902; font-style: italic }
/* CommentPreproc */ .chroma .cp { color:#8f5902;font-style:italic } /* CommentPreprocFile */ .chroma .cpf { color: #8f5902; font-style: italic }
/* CommentPreprocFile */ .chroma .cpf { color:#8f5902;font-style:italic } /* Generic */ .chroma .g { color: #000000 }
/* Generic */ .chroma .g { color:#000 } /* GenericDeleted */ .chroma .gd { color: #a40000 }
/* GenericDeleted */ .chroma .gd { color:#a40000 } /* GenericEmph */ .chroma .ge { color: #000000; font-style: italic }
/* GenericEmph */ .chroma .ge { color:#000;font-style:italic } /* GenericError */ .chroma .gr { color: #ef2929 }
/* GenericError */ .chroma .gr { color:#ef2929 } /* GenericHeading */ .chroma .gh { color: #000080; font-weight: bold }
/* GenericHeading */ .chroma .gh { color:#000080;font-weight:bold } /* GenericInserted */ .chroma .gi { color: #00a000 }
/* GenericInserted */ .chroma .gi { color:#00a000 } /* GenericOutput */ .chroma .go { color: #000000; font-style: italic }
/* GenericOutput */ .chroma .go { color:#000;font-style:italic } /* GenericPrompt */ .chroma .gp { color: #8f5902 }
/* GenericPrompt */ .chroma .gp { color:#8f5902 } /* GenericStrong */ .chroma .gs { color: #000000; font-weight: bold }
/* GenericStrong */ .chroma .gs { color:#000;font-weight:bold } /* GenericSubheading */ .chroma .gu { color: #800080; font-weight: bold }
/* GenericSubheading */ .chroma .gu { color:#800080;font-weight:bold } /* GenericTraceback */ .chroma .gt { color: #a40000; font-weight: bold }
/* GenericTraceback */ .chroma .gt { color:#a40000;font-weight:bold } /* GenericUnderline */ .chroma .gl { color: #000000; text-decoration: underline }
/* GenericUnderline */ .chroma .gl { color:#000;text-decoration:underline } /* TextWhitespace */ .chroma .w { color: #f8f8f8; text-decoration: underline }
/* TextWhitespace */ .chroma .w { color:#f8f8f8 }
} }

View File

@@ -1,76 +1,88 @@
/* Generated using: hugo gen chromastyles --style native */ /* native style */
/* Background */ .bg { color:#d0d0d0;background-color:#202020; } /* Background */ .bg { color: #d0d0d0; background-color: #202020; }
/* PreWrapper */ .chroma { color:#d0d0d0;background-color:#202020; } /* PreWrapper */ .chroma { color: #d0d0d0; background-color: #202020; }
/* Error */ .chroma .err { color:#a61717;background-color:#e3d2d2 } /* Other */ .chroma .x { }
/* LineLink */ .chroma .lnlinks { outline:none;text-decoration:none;color:inherit } /* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 }
/* LineTableTD */ .chroma .lntd { vertical-align:top;padding:0;margin:0;border:0; } /* CodeLine */ .chroma .cl { }
/* LineTable */ .chroma .lntable { border-spacing:0;padding:0;margin:0;border:0; } /* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
/* LineHighlight */ .chroma .hl { background-color:#363636 } /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* 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 } /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
/* 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 } /* LineHighlight */ .chroma .hl { background-color: #363636 }
/* Line */ .chroma .line { display:flex; } /* 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 }
/* Keyword */ .chroma .k { color:#6ab825;font-weight:bold } /* 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 }
/* KeywordConstant */ .chroma .kc { color:#6ab825;font-weight:bold } /* Line */ .chroma .line { display: flex; }
/* KeywordDeclaration */ .chroma .kd { color:#6ab825;font-weight:bold } /* Keyword */ .chroma .k { color: #6ab825; font-weight: bold }
/* KeywordNamespace */ .chroma .kn { color:#6ab825;font-weight:bold } /* KeywordConstant */ .chroma .kc { color: #6ab825; font-weight: bold }
/* KeywordPseudo */ .chroma .kp { color:#6ab825 } /* KeywordDeclaration */ .chroma .kd { color: #6ab825; font-weight: bold }
/* KeywordReserved */ .chroma .kr { color:#6ab825;font-weight:bold } /* KeywordNamespace */ .chroma .kn { color: #6ab825; font-weight: bold }
/* KeywordType */ .chroma .kt { color:#6ab825;font-weight:bold } /* KeywordPseudo */ .chroma .kp { color: #6ab825 }
/* NameAttribute */ .chroma .na { color:#bbb } /* KeywordReserved */ .chroma .kr { color: #6ab825; font-weight: bold }
/* NameClass */ .chroma .nc { color:#447fcf;text-decoration:underline } /* KeywordType */ .chroma .kt { color: #6ab825; font-weight: bold }
/* NameConstant */ .chroma .no { color:#40ffff } /* Name */ .chroma .n { }
/* NameDecorator */ .chroma .nd { color:#ffa500 } /* NameAttribute */ .chroma .na { color: #bbbbbb }
/* NameException */ .chroma .ne { color:#bbb } /* NameBuiltin */ .chroma .nb { color: #24909d }
/* NameNamespace */ .chroma .nn { color:#447fcf;text-decoration:underline } /* NameBuiltinPseudo */ .chroma .bp { }
/* NameTag */ .chroma .nt { color:#6ab825;font-weight:bold } /* NameClass */ .chroma .nc { color: #447fcf; text-decoration: underline }
/* NameBuiltin */ .chroma .nb { color:#24909d } /* NameConstant */ .chroma .no { color: #40ffff }
/* NameBuiltinPseudo */ .chroma .bp { color:#24909d } /* NameDecorator */ .chroma .nd { color: #ffa500 }
/* NameVariable */ .chroma .nv { color:#40ffff } /* NameEntity */ .chroma .ni { }
/* NameVariableClass */ .chroma .vc { color:#40ffff } /* NameException */ .chroma .ne { color: #bbbbbb }
/* NameVariableGlobal */ .chroma .vg { color:#40ffff } /* NameFunction */ .chroma .nf { color: #447fcf }
/* NameVariableInstance */ .chroma .vi { color:#40ffff } /* NameFunctionMagic */ .chroma .fm { }
/* NameVariableMagic */ .chroma .vm { color:#40ffff } /* NameLabel */ .chroma .nl { }
/* NameFunction */ .chroma .nf { color:#447fcf } /* NameNamespace */ .chroma .nn { color: #447fcf; text-decoration: underline }
/* NameFunctionMagic */ .chroma .fm { color:#447fcf } /* NameOther */ .chroma .nx { }
/* LiteralString */ .chroma .s { color:#ed9d13 } /* NameProperty */ .chroma .py { }
/* LiteralStringAffix */ .chroma .sa { color:#ed9d13 } /* NameTag */ .chroma .nt { color: #6ab825; font-weight: bold }
/* LiteralStringBacktick */ .chroma .sb { color:#ed9d13 } /* NameVariable */ .chroma .nv { color: #40ffff }
/* LiteralStringChar */ .chroma .sc { color:#ed9d13 } /* NameVariableClass */ .chroma .vc { }
/* LiteralStringDelimiter */ .chroma .dl { color:#ed9d13 } /* NameVariableGlobal */ .chroma .vg { }
/* LiteralStringDoc */ .chroma .sd { color:#ed9d13 } /* NameVariableInstance */ .chroma .vi { }
/* LiteralStringDouble */ .chroma .s2 { color:#ed9d13 } /* NameVariableMagic */ .chroma .vm { }
/* LiteralStringEscape */ .chroma .se { color:#ed9d13 } /* Literal */ .chroma .l { }
/* LiteralStringHeredoc */ .chroma .sh { color:#ed9d13 } /* LiteralDate */ .chroma .ld { }
/* LiteralStringInterpol */ .chroma .si { color:#ed9d13 } /* LiteralString */ .chroma .s { color: #ed9d13 }
/* LiteralStringOther */ .chroma .sx { color:#ffa500 } /* LiteralStringAffix */ .chroma .sa { color: #ed9d13 }
/* LiteralStringRegex */ .chroma .sr { color:#ed9d13 } /* LiteralStringBacktick */ .chroma .sb { color: #ed9d13 }
/* LiteralStringSingle */ .chroma .s1 { color:#ed9d13 } /* LiteralStringChar */ .chroma .sc { color: #ed9d13 }
/* LiteralStringSymbol */ .chroma .ss { color:#ed9d13 } /* LiteralStringDelimiter */ .chroma .dl { color: #ed9d13 }
/* LiteralNumber */ .chroma .m { color:#3677a9 } /* LiteralStringDoc */ .chroma .sd { color: #ed9d13 }
/* LiteralNumberBin */ .chroma .mb { color:#3677a9 } /* LiteralStringDouble */ .chroma .s2 { color: #ed9d13 }
/* LiteralNumberFloat */ .chroma .mf { color:#3677a9 } /* LiteralStringEscape */ .chroma .se { color: #ed9d13 }
/* LiteralNumberHex */ .chroma .mh { color:#3677a9 } /* LiteralStringHeredoc */ .chroma .sh { color: #ed9d13 }
/* LiteralNumberInteger */ .chroma .mi { color:#3677a9 } /* LiteralStringInterpol */ .chroma .si { color: #ed9d13 }
/* LiteralNumberIntegerLong */ .chroma .il { color:#3677a9 } /* LiteralStringOther */ .chroma .sx { color: #ffa500 }
/* LiteralNumberOct */ .chroma .mo { color:#3677a9 } /* LiteralStringRegex */ .chroma .sr { color: #ed9d13 }
/* OperatorWord */ .chroma .ow { color:#6ab825;font-weight:bold } /* LiteralStringSingle */ .chroma .s1 { color: #ed9d13 }
/* Comment */ .chroma .c { color:#999;font-style:italic } /* LiteralStringSymbol */ .chroma .ss { color: #ed9d13 }
/* CommentHashbang */ .chroma .ch { color:#999;font-style:italic } /* LiteralNumber */ .chroma .m { color: #3677a9 }
/* CommentMultiline */ .chroma .cm { color:#999;font-style:italic } /* LiteralNumberBin */ .chroma .mb { color: #3677a9 }
/* CommentSingle */ .chroma .c1 { color:#999;font-style:italic } /* LiteralNumberFloat */ .chroma .mf { color: #3677a9 }
/* CommentSpecial */ .chroma .cs { color:#e50808;background-color:#520000;font-weight:bold } /* LiteralNumberHex */ .chroma .mh { color: #3677a9 }
/* CommentPreproc */ .chroma .cp { color:#cd2828;font-weight:bold } /* LiteralNumberInteger */ .chroma .mi { color: #3677a9 }
/* CommentPreprocFile */ .chroma .cpf { color:#cd2828;font-weight:bold } /* LiteralNumberIntegerLong */ .chroma .il { color: #3677a9 }
/* GenericDeleted */ .chroma .gd { color:#d22323 } /* LiteralNumberOct */ .chroma .mo { color: #3677a9 }
/* GenericEmph */ .chroma .ge { font-style:italic } /* Operator */ .chroma .o { }
/* GenericError */ .chroma .gr { color:#d22323 } /* OperatorWord */ .chroma .ow { color: #6ab825; font-weight: bold }
/* GenericHeading */ .chroma .gh { color:#fff;font-weight:bold } /* Punctuation */ .chroma .p { }
/* GenericInserted */ .chroma .gi { color:#589819 } /* Comment */ .chroma .c { color: #999999; font-style: italic }
/* GenericOutput */ .chroma .go { color:#ccc } /* CommentHashbang */ .chroma .ch { color: #999999; font-style: italic }
/* GenericPrompt */ .chroma .gp { color:#aaa } /* CommentMultiline */ .chroma .cm { color: #999999; font-style: italic }
/* GenericStrong */ .chroma .gs { font-weight:bold } /* CommentSingle */ .chroma .c1 { color: #999999; font-style: italic }
/* GenericSubheading */ .chroma .gu { color:#fff;text-decoration:underline } /* CommentSpecial */ .chroma .cs { color: #e50808; background-color: #520000; font-weight: bold }
/* GenericTraceback */ .chroma .gt { color:#d22323 } /* CommentPreproc */ .chroma .cp { color: #cd2828; font-weight: bold }
/* GenericUnderline */ .chroma .gl { text-decoration:underline } /* CommentPreprocFile */ .chroma .cpf { color: #cd2828; font-weight: bold }
/* TextWhitespace */ .chroma .w { color:#666 } /* 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 }

View File

@@ -21,6 +21,11 @@ taxonomies:
outputs: outputs:
page: page:
- html - html
- markdown
outputFormats:
markdown:
ugly: true
privacy: privacy:
googleAnalytics: googleAnalytics:

View File

@@ -32,6 +32,9 @@ readingtime:
edit_history: edit_history:
other: "Edit history" other: "Edit history"
view_markdown:
other: "View raw"
# Post count # Post count
no_posts: no_posts:
@@ -45,8 +48,6 @@ post_count:
# Navigation # Navigation
read_more: read_more:
other: "Read more" other: "Read more"
see_posts:
other: "See posts"
related_posts: related_posts:
other: "Related Posts" other: "Related Posts"
@@ -71,6 +72,9 @@ aria_rss_link:
aria_post_meta_edit_history: aria_post_meta_edit_history:
other: "link to page 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: aria_post_meta_categories:
other: "categories" other: "categories"

View File

@@ -3,9 +3,9 @@
{{ $type = . }} {{ $type = . }}
{{ end }} {{ end }}
<div class="code-block"> <div class="code-block">
<div class="code-block-header"> <div class="code-header">
<pre class="code-block-type">{{ $type }}</pre> <pre class="code-type">{{ $type }}</pre>
<a href="javascript:void(0)" class="code-block-copy-button"> <a href="javascript:void(0)" class="code-copy-button">
{{ i18n "copy_to_clipboard" }} {{ i18n "copy_to_clipboard" }}
</a> </a>
</div> </div>

View 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.
*/}}

View File

@@ -1,5 +1,5 @@
{{ with .Resources.Get "feature" }} {{ with .Resources.Get "feature" }}
<div class="featured-media"> <div class="post-media">
<figure> <figure>
{{ partial "embed-resource.html" . }} {{ partial "embed-resource.html" . }}
{{ with .Title }} {{ with .Title }}

View File

@@ -1 +1 @@
{{ partialCached "icon_impl.html" . . }} {{ partialCached "icon_code.html" . . }}

View File

@@ -1,7 +1,9 @@
<div class="page-list"> <div class="page-list">
{{ with . }} {{ with . }}
{{ range . }} {{ range . }}
<article class="page">
{{ .Render "summary" }} {{ .Render "summary" }}
</article>
{{ end }} {{ end }}
{{ else }} {{ else }}
<div> <div>

View 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 }}

View File

@@ -20,6 +20,7 @@
{{ partial "page-metadata/item/authors.html" . }} {{ partial "page-metadata/item/authors.html" . }}
{{ partial "page-metadata/item/readingtime.html" . }} {{ partial "page-metadata/item/readingtime.html" . }}
{{ partial "page-metadata/item/edithistory.html" . }} {{ partial "page-metadata/item/edithistory.html" . }}
{{ partial "page-metadata/item/viewraw.html" . }}
{{ partial "page-metadata/item/comments-counter.html" . }} {{ partial "page-metadata/item/comments-counter.html" . }}
{{ partial "page-metadata/item/categories.html" . }} {{ partial "page-metadata/item/categories.html" . }}

View File

@@ -1,13 +1,13 @@
<header class="top"> <header class="top">
<div class="top-brand"> <div class="brand">
<a href="{{ .Site.Home.Permalink | absLangURL }}"> <a href="{{ .Site.Home.Permalink | absLangURL }}">
{{ .Site.Title | markdownify }} {{ .Site.Title | markdownify }}
</a> </a>
</div> </div>
<nav class="top-navbar" aria-label="{{ i18n "aria_navbar" }}"> <nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
{{ with .Site.Home }} {{ 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 }} {{ end }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
@@ -16,7 +16,7 @@
{{ if or ($.HasMenuCurrent .Menu .) (eq .Page $) }} {{ if or ($.HasMenuCurrent .Menu .) (eq .Page $) }}
{{ $isActive = true }} {{ $isActive = true }}
{{ end }} {{ end }}
<a class="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 }} {{ if strings.HasPrefix .URL "http" }}target="_blank" rel="noopener"{{ end }}
href="{{ .URL }}">{{ .Name }}</a> href="{{ .URL }}">{{ .Name }}</a>
{{ end }} {{ end }}

View File

@@ -1,18 +1,16 @@
<article class="summary-card"> <h2 class="page-title">
<h2 class="summary-card-title">
<a 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" . }}
{{ with .Summary }} {{ with .Summary }}
<div class="summary-card-description"> <div class="page-description">
{{ . }} {{ . }}
</div> </div>
{{ end }} {{ end }}
<div class="summary-card-readmore"> <div class="readmore">
<a href="{{ .Permalink }}">{{ i18n "see_posts" }} &rarr;</a> <a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a>
</div> </div>
</article>

View File

@@ -1,4 +1,7 @@
{{ define "main" }} {{ define "main" }}
<section>
{{ if .Content }}<article>{{ end }}
<h1> <h1>
{{ partial "icon.html" "user-circle" }} {{ partial "icon.html" "user-circle" }}
{{ .Title | markdownify }} {{ .Title | markdownify }}
@@ -8,15 +11,20 @@
{{ . }} {{ . }}
{{ end }} {{ end }}
<div class="page-list"> {{ if .Content }}</article>{{ end }}
<section class="page-list">
{{ with .Paginator.Pages }} {{ with .Paginator.Pages }}
{{ range . }} {{ range . }}
<article class="page">
{{ .Render "summary" }} {{ .Render "summary" }}
</article>
{{ end }} {{ end }}
{{ else }} {{ else }}
<div> <div>
{{ i18n "no_posts" }} {{ i18n "no_posts" }}
</div> </div>
{{ end }} {{ end }}
</div> </section>
</section>
{{ end }} {{ end }}

View File

@@ -23,7 +23,7 @@
</div> </div>
{{ end }} {{ end }}
{{ partial "featured-media.html" . }} {{ partial "feature-figure.html" . }}
<div class="post-content" data-pagefind-body> <div class="post-content" data-pagefind-body>
{{ .Content }} {{ .Content }}
@@ -79,7 +79,7 @@
{{ with $related }} {{ with $related }}
<div class="related-posts"> <div class="related-posts">
<hr> <hr>
<h2>{{ i18n "related_posts" }}</h2> <h1>{{ i18n "related_posts" }}</h1>
{{ partial "page-list.html" . }} {{ partial "page-list.html" . }}
</div> </div>
{{ end }} {{ end }}

9
layouts/page.markdown.md Normal file
View 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 -}}

View File

@@ -1,4 +1,6 @@
User-Agent: * User-Agent: *
Allow: /
Sitemap: {{ "sitemap.xml" | absLangURL }} Sitemap: {{ "sitemap.xml" | absLangURL }}
{{/* It complains about the raw markdown output having no title tag */ -}}
User-Agent: Bingbot
Disallow: /blog/*.md$

View File

@@ -1,4 +1,5 @@
{{ define "main" }} {{ define "main" }}
<section>
<h1> <h1>
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }} {{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
{{ .Title | markdownify }} {{ .Title | markdownify }}
@@ -9,6 +10,7 @@
{{ . }} {{ . }}
{{ end }} {{ end }}
<div class="list-page-container">
{{ with .Sections }} {{ with .Sections }}
<div class="sections"> <div class="sections">
{{ range . }} {{ range . }}
@@ -18,6 +20,8 @@
{{ end }} {{ end }}
{{ partial "page-list.html" .Paginator.Pages }} {{ partial "page-list.html" .Paginator.Pages }}
</div>
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
</section>
{{ end }} {{ end }}

View File

@@ -1,20 +1,14 @@
<a class="section-card-anchor" href="{{ .Permalink }}"> <a class="section-anchor" href="{{ .Permalink }}">
<div class="section-card"> <div class="section">
<div> <h2 class="section-title">
<h2 class="section-card-title">
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }} {{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
{{ .Title | markdownify }} {{ .Title | markdownify }}
</h2> </h2>
{{ with .Summary }} {{ with .Summary }}
<div class="section-card-description"> <div class="section-description">
{{ . }} {{ . }}
</div> </div>
{{ end }} {{ end }}
</div> </div>
<div class="section-card-arrow">
{{ partial "icon.html" "arrow-right" }}
</div>
</div>
</a> </a>

View File

@@ -1,21 +1,21 @@
<article class="summary-card"> <h2 class="page-title">
<h2 class="summary-card-title">
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ 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" . }}
{{ with .Summary }} {{ with .Summary }}
<div class="summary-card-description"> <div class="page-description">
{{ . }} {{ . }}
</div> </div>
{{ end }} {{ end }}
<div class="page-list page-list--series-inner"> <div class="page-list series-inner">
{{ range .Data.Pages.Reverse }} {{ range .Data.Pages.Reverse }}
<article class="page">
{{ .Render "summary" }} {{ .Render "summary" }}
</article>
{{ end }} {{ end }}
</div> </div>
</article>

View File

@@ -10,10 +10,12 @@
{{ . }} {{ . }}
{{ end }} {{ end }}
<div class="page-list page-list--series"> <div class="page-list series">
{{ with .Paginator.Pages }} {{ with .Paginator.Pages }}
{{ range . }} {{ range . }}
<div class="page series">
{{ .Render "summary" }} {{ .Render "summary" }}
</div>
{{ end }} {{ end }}
{{ else }} {{ else }}
<div> <div>

View File

@@ -1,21 +1,19 @@
<article class="summary-card"> <h2 class="page-title">
<h2 class="summary-card-title">
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
</h2> </h2>
{{ partial "page-metadata/post-short.html" . }} {{ partial "page-metadata/post-short.html" . }}
{{ partial "featured-media.html" . }} {{ partial "feature-figure.html" . }}
{{ with .Summary }} {{ with .Summary }}
<div class="summary-card-description"> <div class="page-description">
{{ . }} {{ . }}
</div> </div>
{{ end }} {{ end }}
<div class="summary-card-readmore"> <div class="readmore">
<a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a> <a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a>
</div> </div>
</article>