1 Commits

Author SHA1 Message Date
0790ed94b9 WIP 2025-08-25 18:23:39 -05:00
6 changed files with 73 additions and 76 deletions

View File

@@ -340,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;
@@ -348,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;
} }
@@ -446,6 +446,13 @@ body {
/* List layout {{{ */ /* List layout {{{ */
/* flexbox container for sections and main page list */
.list-page-container {
display: flex;
flex-direction: column;
gap: 40px;
}
.page-list { .page-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -600,7 +607,6 @@ 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;
@@ -611,9 +617,6 @@ body {
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:hover {
@@ -637,16 +640,6 @@ body {
margin-bottom: 5px; margin-bottom: 5px;
} }
.section-arrow {
margin-block: auto;
max-height: fit-content;
float: right;
}
.section-arrow > .icon {
height: 48px;
width: 48px;
}
/* }}} */ /* }}} */

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

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

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

View File

@@ -1,20 +1,14 @@
<a class="section-anchor" href="{{ .Permalink }}"> <a class="section-anchor" href="{{ .Permalink }}">
<div class="section"> <div class="section">
<div> <h2 class="section-title">
<h2 class="section-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-description">
{{ . }} {{ . }}
</div> </div>
{{ end }} {{ end }}
</div>
<div class="section-arrow">
{{ partial "icon.html" "arrow-right" }}
</div>
</div> </div>
</a> </a>