Skip to content
2 changes: 1 addition & 1 deletion doc/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build.environment]
PYTHON_VERSION = "3.13"
HUGO_VERSION = "0.152.2"
HUGO_VERSION = "0.157.0"
DART_SASS_VERSION = "1.93.2"
DART_SASS_URL = "https://github.com/sass/dart-sass/releases/download/"

Expand Down
9 changes: 2 additions & 7 deletions layouts/_default/section.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{{ define "main" }}
<section class="section content-padding">
<div class="content-container">
{{ partial "breadcrumbs.html" . }}
<h1>{{ .Title }}</h1>
{{ if .Params.Subtitle }}
<h5 class="subtitle">{{ .Params.Subtitle }}</h5>
{{ end }}
{{ with partial "_decorators/content-container.html" . }}
{{ if .Content }}
{{ .Content }}
{{ end }}
Expand All @@ -20,7 +15,7 @@ <h5 class="subtitle">{{ .Params.Subtitle }}</h5>
</ul>
</div>
{{ end }}
</div>
{{ end }}
{{ if .Content }}
{{ partial "shortcuts.html" . }}
{{ end }}
Expand Down
9 changes: 2 additions & 7 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
{{ define "main" }}
<section class="content-padding">
<div class="content-container">
{{ partial "breadcrumbs.html" . }}
<h1>{{ .Title }}</h1>
{{ if .Params.Subtitle }}
<h5 class="subtitle">{{ .Params.Subtitle }}</h5>
{{ end }}
{{ with partial "_decorators/content-container.html" . }}
{{ .Content }}
</div>
{{ end }}
{{ partial "shortcuts.html" . }}
</section>
{{ end }}
6 changes: 6 additions & 0 deletions layouts/partials/_decorators/article.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<article>
<div class="post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></div>
<div>
{{- inner . -}}
</div>
</article>
8 changes: 8 additions & 0 deletions layouts/partials/_decorators/content-container.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div class="content-container">
{{ partial "breadcrumbs.html" . }}
<h1>{{ .Title }}</h1>
{{ if .Params.Subtitle }}
<h5 class="subtitle">{{ .Params.Subtitle }}</h5>
{{ end }}
{{- inner . -}}
</div>
11 changes: 4 additions & 7 deletions layouts/partials/posts/list-with-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

<div class="post-list">
{{ range $posts }}
<article>
<div class="post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></div>
<div>
{{ partial "posts/meta.html" . }}
{{ partial "posts/summary.html" . }}
</div>
</article>
{{ with partial "_decorators/article.html" . }}
{{ partial "posts/meta.html" . }}
{{ partial "posts/summary.html" . }}
{{ end }}
{{ end }}
</div>
11 changes: 5 additions & 6 deletions layouts/partials/posts/list-without-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

<div class="post-list">
{{ range $posts }}
<article>
<div class="post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></div>
<div class="post-meta">
<div>{{ partial "posts/meta.html" . }}</div>
</div>
</article>
{{ with partial "_decorators/article.html" . }}
<div class="post-meta">
<div>{{ partial "posts/meta.html" . }}</div>
</div>
{{ end }}
{{ end }}
</div>
9 changes: 2 additions & 7 deletions layouts/partials/posts/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,13 @@ <h2 class="tag-cloud-title">{{ i18n "tags" }}</h2>
</ul>
{{ end }}
</div>
<div class="content-container">
{{ partial "breadcrumbs.html" . }}
<h1>{{ .Title }}</h1>
{{ if .Params.Subtitle }}
<h5 class="subtitle">{{ .Params.Subtitle }}</h5>
{{ end }}
{{ with partial "_decorators/content-container.html" . }}
{{ if .Content }}
{{ .Content }}
{{ end }}
{{ $posts := .RegularPagesRecursive.ByPublishDate.Reverse }}
{{ partial "posts/list-without-summary.html" $posts }}
</div>
{{ end }}
{{ if .Content }}
{{ partial "shortcuts.html" . }}
{{ end }}
Expand Down
11 changes: 3 additions & 8 deletions layouts/partials/posts/post.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{{- $featuredImage := .Resources.GetMatch "featuredImage" -}}
<section class="post content-padding">
<div class="content-container">
{{ partial "breadcrumbs.html" . }}
<h1>{{ .Title }}</h1>
{{ if .Params.Subtitle }}
<h5 class="subtitle">{{ .Params.Subtitle }}</h5>
{{ end }}
{{ with partial "_decorators/content-container.html" . }}
<div class="post-meta">{{ partial "posts/meta.html" . }}
<span class="post-please-comment">🖊️ Please add your comments <a href="#discourse-comments">below!</a></span>
</div>
{{- $featuredImage := .Resources.GetMatch "featuredImage" -}}
<div class="post-content">
{{ with $featuredImage }}
{{ if .Params.showOnTop }}
Expand All @@ -20,6 +15,6 @@ <h5 class="subtitle">{{ .Params.Subtitle }}</h5>
{{ .Content }}
{{ partial "posts/comments.html" .}}
</div>
</div>
{{ end }}
{{ partial "shortcuts.html" . }}
</section>
9 changes: 2 additions & 7 deletions layouts/partials/section/section.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<section class="content-padding">
<div class="content-container">
{{ partial "breadcrumbs.html" . }}
<h1>{{ .Title }}</h1>
{{ if .Params.Subtitle }}
<h5 class="subtitle">{{ .Params.Subtitle }}</h5>
{{ end }}
{{ with partial "_decorators/content-container.html" . }}
{{ if .Content }}
{{ .Content }}
{{ else }}
Expand All @@ -28,7 +23,7 @@ <h5 class="subtitle">{{ .Params.Subtitle }}</h5>
</div>
{{ end }}
{{ end }}
</div>
{{ end }}
<div id="shortcuts-container">
<div id="shortcuts">
<div id="shortcuts-header"><i class="fa-solid fa-list"></i> On this page</div>
Expand Down