1 Commits

Author SHA1 Message Date
0790ed94b9 WIP 2025-08-25 18:23:39 -05:00
14 changed files with 195 additions and 206 deletions

View File

@@ -174,6 +174,30 @@ video {
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 {
color: var(--link-0);
text-decoration: inherit;
@@ -316,7 +340,7 @@ body {
* or it will need its hover background to be chopped off on the left */
}
.top-brand {
.brand {
flex-grow: 1;
margin: 8px var(--page-margin);
font-size: 1.25em;
@@ -324,27 +348,27 @@ body {
align-items: center;
}
.top-brand > a {
.brand a {
color: inherit;
font-weight: bold;
}
.top-navbar {
.navbar {
display: flex;
flex-wrap: wrap;
}
.top-navbar-item {
.navbar-item {
padding: 12px var(--page-margin);
white-space: nowrap;
}
.top-navbar-item:hover {
.navbar-item:hover {
background-color: var(--background-2);
text-decoration: none;
}
.top-navbar-item--active {
.navbar-item.active {
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;
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 +481,18 @@ body {
}
*/
.page-title {
margin-bottom: 10px;
}
.page-title a {
color: inherit;
}
.page-title h1 {
margin: 0;
}
.page-metadata {
margin-bottom: 24px;
}
@@ -471,74 +514,20 @@ body {
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;
}
.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 +578,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 +597,7 @@ figcaption {
padding: 8px;
border-radius: 16px;
}
.page-list--series-inner > .summary-card {
.page-list.series-inner > .page {
flex: 1;
min-width: 49%;
}
@@ -612,7 +607,6 @@ figcaption {
/* Subsections on list pages {{{ */
.sections {
margin-bottom: 60px;
display: flex;
flex-direction: column;
gap: 10px;
@@ -623,9 +617,6 @@ figcaption {
color: var(--text-1);
border-radius: 12px;
padding: 1px 25px;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.section:hover {
@@ -649,16 +640,6 @@ figcaption {
margin-bottom: 5px;
}
.section-arrow {
margin-block: auto;
max-height: fit-content;
float: right;
}
.section-arrow > .icon {
height: 48px;
width: 48px;
}
/* }}} */
@@ -788,16 +769,16 @@ figcaption {
margin: var(--page-margin);
}
.related-posts .summary-card {
.related-posts .page {
min-width: 300px;
max-width: 300px;
}
.related-posts .summary-card:first-child {
.related-posts .page:first-child {
margin-left: var(--page-margin);
}
.related-posts .summary-card:last-child {
.related-posts .page:last-child {
margin-right: var(--page-margin);
}

View File

@@ -48,8 +48,6 @@ post_count:
# Navigation
read_more:
other: "Read more"
see_posts:
other: "See posts"
related_posts:
other: "Related Posts"

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" }}
<div class="featured-media">
<div class="post-media">
<figure>
{{ partial "embed-resource.html" . }}
{{ with .Title }}

View File

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

View File

@@ -1,13 +1,13 @@
<header class="top">
<div class="top-brand">
<div class="brand">
<a href="{{ .Site.Home.Permalink | absLangURL }}">
{{ .Site.Title | markdownify }}
</a>
</div>
<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,7 +16,7 @@
{{ 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 }}

View File

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

View File

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

View File

@@ -23,7 +23,7 @@
</div>
{{ end }}
{{ partial "featured-media.html" . }}
{{ partial "feature-figure.html" . }}
<div class="post-content" data-pagefind-body>
{{ .Content }}

View File

@@ -1,23 +1,27 @@
{{ define "main" }}
<h1>
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
{{ .Title | markdownify }}
{{ partial "rss-link.html" . }}
</h1>
<section>
<h1>
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
{{ .Title | markdownify }}
{{ partial "rss-link.html" . }}
</h1>
{{ with .Content }}
{{ . }}
{{ end }}
{{ with .Content }}
{{ . }}
{{ end }}
{{ with .Sections }}
<div class="sections">
{{ range . }}
{{ .Render "summary" }}
<div class="list-page-container">
{{ with .Sections }}
<div class="sections">
{{ range . }}
{{ .Render "summary" }}
{{ end }}
</div>
{{ end }}
{{ partial "page-list.html" .Paginator.Pages }}
</div>
{{ end }}
{{ partial "page-list.html" .Paginator.Pages }}
{{ partial "pagination.html" . }}
{{ partial "pagination.html" . }}
</section>
{{ end }}

View File

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

View File

@@ -1,21 +1,21 @@
<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 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-list page-list--series-inner">
{{ range .Data.Pages.Reverse }}
{{ .Render "summary" }}
{{ end }}
{{ with .Summary }}
<div class="page-description">
{{ . }}
</div>
</article>
{{ end }}
<div class="page-list series-inner">
{{ range .Data.Pages.Reverse }}
<article class="page">
{{ .Render "summary" }}
</article>
{{ end }}
</div>

View File

@@ -10,10 +10,12 @@
{{ . }}
{{ 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>

View File

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