Added Hugo Simple theme and configured some basic customizations.

This commit is contained in:
2024-12-24 12:08:41 -08:00
parent fe34121c13
commit dc3b327d41
12 changed files with 191 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
{{ define "main" }}
<main aria-role="main">
<header class="home-page-header">
<h1>{{ .Title }}</h1>
{{ with .Params.subtitle }}
<span class="subtitle">{{ . }}</span>
{{ end }}
</header>
<div class="home-page-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{ .Content }}
</div>
<div>
{{ range first 10 .Site.RegularPages }}
{{ .Render "summary" }}
{{ end }}
</div>
</main>
{{ end }}

View File

@@ -0,0 +1,9 @@
{{ with .Site.Copyright }}
<span>{{ . }}</span>
{{ end }}
{{ if not .Site.Params.hideMadeWithLine }}
<span>
{{ if .Site.Copyright }}|{{ end }}
<p>Just some dude.</p>
</span>
{{ end }}

View File

@@ -0,0 +1,6 @@
<nav>{{- partial "nav.html" . -}}</nav>
<h1>{{ .Title }}</h1>
{{ with .Description }}
<p>{{ . }}</p>
{{ end }}

34
layouts/partials/nav.html Normal file
View File

@@ -0,0 +1,34 @@
{{ $currentPage := . -}}
{{ range .Site.Menus.main.ByWeight }}
<a
href="{{ .URL }}"
{{ if eq $currentPage .Page }}class="current"{{ end }}
>{{ .Name }}</a
>
{{ end }}
{{ if not .Site.Params.hideRSSLink }}
<a href="/about/">
About
</a>
<a href="/">
Contact
</a>
<a href="/music/">
Music
</a>
<a href="/posts/">
Posts
</a>
<a href="/wiki/">
Wiki
</a>
<a href="{{ relURL "index.xml" }}">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 448 512">
<!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
<path
d="M0 64C0 46.3 14.3 32 32 32c229.8 0 416 186.2 416 416c0 17.7-14.3 32-32 32s-32-14.3-32-32C384 253.6 226.4 96 32 96C14.3 96 0 81.7 0 64zM0 416a64 64 0 1 1 128 0A64 64 0 1 1 0 416zM32 160c159.1 0 288 128.9 288 288c0 17.7-14.3 32-32 32s-32-14.3-32-32c0-123.7-100.3-224-224-224c-17.7 0-32-14.3-32-32s14.3-32 32-32z"
/>
</svg>
RSS
</a>
{{ end }}