21 Commits

Author SHA1 Message Date
ee1ba12df5 Rename icon_code partial to icon_impl
Fixes #126
2025-12-24 01:42:45 -06:00
d6c8dd65de Rename .section to .section-card
To keep the classes more organized, by having better scoping of classes.

Fixes #121
2025-12-24 01:29:37 -06:00
f7dadb821c Fix hiding of navbar on print
Regression introduced in c2b10a6c99 where
the navbar is no longer hidden when printing. I did not make sure to
grep for all usages of the top bar classes after changing them.

Updates #109
2025-12-24 01:20:07 -06:00
b150aad217 Update chromastyles with Hugo 0.153.2
Since Arch's isn't updated yet, I downloaded the hugo extended
executable from the releases.

hugo v0.153.2-798533a2013eab97198b0a155a8f4afab7e79865+extended linux/amd64 BuildDate=2025-12-22T16:53:01Z VendorInfo=gohugoio
2025-12-24 01:05:45 -06:00
3a17e0037a Update chromastyles with Hugo 0.152.2 2025-12-24 01:02:47 -06:00
7368e82cf8 Remove raw markdown output
I don't think it's ever been that useful. It was originally implemented
as kind of a test of what Hugo output formats were capable of. It waited
for the `ugly` option to get added in `outputFormats` and the novelty of
a new Hugo feature was part of the fun of it.

As mentioned in 7a65f92f53:

    I believe I originally added it because I thought it was somewhat
    hard to get from the "View history" commit list to the actual page
    but I feel like people who care enough to go looking for the source
    code will be willing to use GitHub to find the actual source file.
2025-10-09 01:35:38 -05:00
7a65f92f53 robots.txt: Remove Bingbot exception for *.md files
Bing wins this one. It seems like their crawler is too stupid. I might
just remove the raw markdown output anyways as it doesn't really serve
much purpose. You can go to GitHub and see the raw files if you really
want.

I believe I originally added it because I thought it was somewhat hard
to get from the "View history" commit list to the actual page but I feel
like people who care enough to go looking for the source code will be
willing to use GitHub to find the actual source file.
2025-10-09 01:24:05 -05:00
bb6346bbad Change related posts heading from h1 to h2
This was caught by a Bing Webmaster check:
"There are multiple <h1> tags on the page."
2025-09-08 19:52:01 -05:00
f091b366be Attempt to fix robots.txt blocking /blog/*.md for all bots
According to Semrush, 741b3bc01b added a
block for /blog/*.md for User-Agent: *, even though everything I can
read says that it shouldn't apply since the blocks are separated.

I tried reordering the rules and explicitly adding an `Allow: /` rule,
both to match what's shown on Google Search documentation[1].

[1]: https://developers.google.com/search/docs/crawling-indexing/robots/create-robots-txt,
and
2025-09-08 19:27:12 -05:00
94bfef19a1 Merge branch 'page-list-and-summary-css-cleanup' 2025-09-01 02:51:40 -05:00
9b2509c0d5 Change "Read more" to "See posts" on author summary card
I never noticed this; you can read more of an article, but it doesn't
really make any sense to "Read more" on an author.
2025-09-01 02:45:12 -05:00
c02ceb2dc4 Reorganize series page list and series summary card class names
- Use namespaced class names to prevent accidental name collisions in
  the future
- Clean up whatever the hell I was doing with the flex config on the
  outer series list. I have no clue why it's set up as a wrapping row,
  or what the border radius is for. It seems to look the same if I just
  make it a page-list that gets its gap overridden.
- Remove page.series wrapper around the summary card render which was
  accidentally left in after 8eb343132c6b57f692f87a72a5aca1bc9c563d1b.
2025-09-01 02:45:12 -05:00
8e22007bfd Rename feature-figure.html to featured-media and combine CSS with figures
- Rename feature-figure.html and its class from post-media to
  featured-media
- Move all <figure> formatting to a separate section
- Put the .featured-media CSS next to the rest of the figure formatting
  as it's sorta a special case of regular figure
2025-09-01 02:45:12 -05:00
1ee8d314c0 Rename summary card classes from .page to .summary-card 2025-09-01 02:44:57 -05:00
22fdeadf78 Move summary card CSS to a new fold section 2025-09-01 00:57:41 -05:00
6251b033d5 Move article.page wrapping to summary.html instead of at list template
I am trying to make various templates and partials act more like
self-contained components.

This is in preparation for #113.
2025-09-01 00:50:54 -05:00
37dbdc53af Use section tag for homepage latest posts section
This improves semantic HTML compliance.
2025-08-30 22:25:05 -05:00
ef91527ed6 Remove leftover additional-head partial
This was removed from use in d50a4dc6bd,
but the actual file was left in on accident.
2025-08-30 22:00:09 -05:00
4bc8184593 Add arrow in the right side of list page section buttons
This makes it more obvious that you can click this to view a different
area.
2025-08-27 11:38:29 -05:00
22e7ad4b77 Remove nested list-page-container to simplify layout CSS on section page
Originally I was using gap on a flexbox to separate the .sections
container from the rest of the page list. But it's simpler if I just use
block layout and a bottom margin, then I don't need an extra layer of
div.
2025-08-27 11:13:48 -05:00
c2b10a6c99 Use hierarchical naming on top and its elements
Any element that can't stand on its own as a self-contained component
should have its naming nested under whatever parent it's supposed to
have.

Fixes #109
2025-08-27 10:50:52 -05:00
24 changed files with 361 additions and 386 deletions

View File

@@ -174,30 +174,6 @@ 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;
@@ -340,7 +316,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 */
} }
.brand { .top-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;
@@ -348,27 +324,27 @@ body {
align-items: center; align-items: center;
} }
.brand a { .top-brand > a {
color: inherit; color: inherit;
font-weight: bold; font-weight: bold;
} }
.navbar { .top-navbar {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.navbar-item { .top-navbar-item {
padding: 12px var(--page-margin); padding: 12px var(--page-margin);
white-space: nowrap; white-space: nowrap;
} }
.navbar-item:hover { .top-navbar-item:hover {
background-color: var(--background-2); background-color: var(--background-2);
text-decoration: none; text-decoration: none;
} }
.navbar-item.active { .top-navbar-item--active {
font-weight: bold; font-weight: bold;
} }
@@ -444,33 +420,26 @@ body {
/* }}} */ /* }}} */
/* List layout {{{ */ /* Summary card formatting {{{ */
/* flexbox container for sections and main page list */ .summary-card {
.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);
} }
.page > .page-title { .summary-card-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
@@ -481,18 +450,6 @@ 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;
} }
@@ -514,20 +471,74 @@ body {
content: ","; content: ",";
} }
.post-media { /* for formatting of the featured image/media, see the .featured-media class */
margin-top: 15px;
}
.page-description { .summary-card-description {
margin-top: 10px; margin-top: 10px;
} }
.readmore { .summary-card-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,
@@ -578,17 +589,11 @@ body {
/* 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;
@@ -597,7 +602,7 @@ body {
padding: 8px; padding: 8px;
border-radius: 16px; border-radius: 16px;
} }
.page-list.series-inner > .page { .page-list--series-inner > .summary-card {
flex: 1; flex: 1;
min-width: 49%; min-width: 49%;
} }
@@ -607,39 +612,53 @@ body {
/* 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 { .section-card {
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:hover { .section-card:hover {
background-color: var(--background-2); background-color: var(--background-2);
color: var(--text-2); color: var(--text-2);
} }
.section-title { .section-card-title {
margin: 10px 0; margin: 10px 0;
} }
.section-anchor { .section-card-anchor {
color: inherit; color: inherit;
} }
.section-anchor:hover { .section-card-anchor:hover {
text-decoration: none; text-decoration: none;
} }
.section-description { .section-card-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;
}
/* }}} */ /* }}} */
@@ -765,20 +784,20 @@ body {
*/ */
.related-posts > hr, .related-posts > hr,
.related-posts > h1 { .related-posts > h2 {
margin: var(--page-margin); margin: var(--page-margin);
} }
.related-posts .page { .related-posts .summary-card {
min-width: 300px; min-width: 300px;
max-width: 300px; max-width: 300px;
} }
.related-posts .page:first-child { .related-posts .summary-card:first-child {
margin-left: var(--page-margin); margin-left: var(--page-margin);
} }
.related-posts .page:last-child { .related-posts .summary-card:last-child {
margin-right: var(--page-margin); margin-right: var(--page-margin);
} }
@@ -941,7 +960,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,
@@ -960,7 +979,7 @@ aside.quote {
.top { .top {
background-color: unset; background-color: unset;
} }
.top > .header { .top-brand {
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
} }

View File

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

View File

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

View File

@@ -32,9 +32,6 @@ readingtime:
edit_history: edit_history:
other: "Edit history" other: "Edit history"
view_markdown:
other: "View raw"
# Post count # Post count
no_posts: no_posts:
@@ -48,6 +45,8 @@ 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"
@@ -72,9 +71,6 @@ 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

@@ -1,4 +0,0 @@
{{/*
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="post-media"> <div class="featured-media">
<figure> <figure>
{{ partial "embed-resource.html" . }} {{ partial "embed-resource.html" . }}
{{ with .Title }} {{ with .Title }}

View File

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

View File

@@ -1,9 +1,7 @@
<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

@@ -1,8 +0,0 @@
{{ 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,7 +20,6 @@
{{ 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="brand"> <div class="top-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="navbar" aria-label="{{ i18n "aria_navbar" }}"> <nav class="top-navbar" aria-label="{{ i18n "aria_navbar" }}">
{{ with .Site.Home }} {{ with .Site.Home }}
<a class="navbar-item{{ if $.IsHome }} active{{ end }}" href="{{ .Permalink | absLangURL }}">{{ .Title | markdownify }}</a> <a class="top-navbar-item{{ if $.IsHome }} top-navbar-item--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="navbar-item{{ if $isActive }} active{{ end }}" <a class="top-navbar-item{{ if $isActive }} top-navbar-item--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,16 +1,18 @@
<h2 class="page-title"> <article class="summary-card">
<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="page-description"> <div class="summary-card-description">
{{ . }} {{ . }}
</div> </div>
{{ end }} {{ end }}
<div class="readmore"> <div class="summary-card-readmore">
<a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a> <a href="{{ .Permalink }}">{{ i18n "see_posts" }} &rarr;</a>
</div> </div>
</article>

View File

@@ -11,9 +11,7 @@
<div class="page-list"> <div 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>

View File

@@ -7,7 +7,7 @@
{{ if .Site.Params.homepageLatestPosts }} {{ if .Site.Params.homepageLatestPosts }}
<hr> <hr>
<div class="homepage-latest-posts"> <section class="homepage-latest-posts">
<h1> <h1>
{{ i18n "latest_posts" }} {{ i18n "latest_posts" }}
{{ partial "rss-link.html" . }} {{ partial "rss-link.html" . }}
@@ -16,6 +16,6 @@
{{ partial "page-list.html" (.Paginate .Site.RegularPages).Pages }} {{ partial "page-list.html" (.Paginate .Site.RegularPages).Pages }}
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
</div> </section>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@@ -23,7 +23,7 @@
</div> </div>
{{ end }} {{ end }}
{{ partial "feature-figure.html" . }} {{ partial "featured-media.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>
<h1>{{ i18n "related_posts" }}</h1> <h2>{{ i18n "related_posts" }}</h2>
{{ partial "page-list.html" . }} {{ partial "page-list.html" . }}
</div> </div>
{{ end }} {{ end }}

View File

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

View File

@@ -9,7 +9,6 @@
{{ . }} {{ . }}
{{ end }} {{ end }}
<div class="list-page-container">
{{ with .Sections }} {{ with .Sections }}
<div class="sections"> <div class="sections">
{{ range . }} {{ range . }}
@@ -19,7 +18,6 @@
{{ end }} {{ end }}
{{ partial "page-list.html" .Paginator.Pages }} {{ partial "page-list.html" .Paginator.Pages }}
</div>
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
{{ end }} {{ end }}

View File

@@ -1,14 +1,20 @@
<a class="section-anchor" href="{{ .Permalink }}"> <a class="section-card-anchor" href="{{ .Permalink }}">
<div class="section"> <div class="section-card">
<h2 class="section-title"> <div>
<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-description"> <div class="section-card-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 @@
<h2 class="page-title"> <article class="summary-card">
<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="page-description"> <div class="summary-card-description">
{{ . }} {{ . }}
</div> </div>
{{ end }}
<div class="page-list series-inner">
{{ range .Data.Pages.Reverse }}
<article class="page">
{{ .Render "summary" }}
</article>
{{ end }} {{ end }}
</div>
<div class="page-list page-list--series-inner">
{{ range .Data.Pages.Reverse }}
{{ .Render "summary" }}
{{ end }}
</div>
</article>

View File

@@ -10,12 +10,10 @@
{{ . }} {{ . }}
{{ end }} {{ end }}
<div class="page-list series"> <div class="page-list 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,19 +1,21 @@
<h2 class="page-title"> <article class="summary-card">
<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 "feature-figure.html" . }} {{ partial "featured-media.html" . }}
{{ with .Summary }} {{ with .Summary }}
<div class="page-description"> <div class="summary-card-description">
{{ . }} {{ . }}
</div> </div>
{{ end }} {{ end }}
<div class="readmore"> <div class="summary-card-readmore">
<a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a> <a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a>
</div> </div>
</article>