init commit

This commit is contained in:
2024-08-20 23:05:39 -07:00
commit 0f90d0ec4b
35 changed files with 10389 additions and 0 deletions

View File

@ -0,0 +1,10 @@
<div class="site-branding">
<div class="u-wrapper site-branding-wrap">
<a href="{{ .Site.BaseURL | safeURL }}" aria-label="{{ i18n "homepage" }}">
<img id="wordmark"
src="{{ with .Site.Params.wordmark.image }}{{ . | safeURL }}{{ end }}"
alt="{{ with .Site.Params.wordmark.alt }}{{ . }}{{ end }}"
loading="lazy" />
</a>
</div>
</div>

View File

@ -0,0 +1,15 @@
{{ if not .Site.Params.footeroff }}
<footer id="colophon" class="site-footer">
<div class="copyright-text">
<div class="u-wrapper copyright-text-wrap">
<p>{{ with .Site.Params.copyright }} {{ . }} {{ end }}
{{ if not .Site.Params.production }}
<br>
<strong>[{{ i18n "not-for-production" }}]</strong>
{{ end }}
</p>
</div>
</div>
</footer>
{{ end }}
<a href="#" class="go-to-top" aria-label="{{ i18n "go-to-top" }}"></a>

View File

@ -0,0 +1,32 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ hugo.Generator }}
<link rel="canonical" href="{{ .Permalink }}" />
<link rel="dns-prefetch" href="{{ .Site.Params.cdnURL }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ if hugo.IsServer }}{{ "apple-touch-icon.png" | absURL }}{{ else }}{{ .Site.Params.cdnURL }}/apple-touch-icon.png{{ end }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ if hugo.IsServer }}{{ "favicon-32x32.png" | absURL }}{{ else }}{{ .Site.Params.cdnURL }}/favicon-32x32.png{{ end }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ if hugo.IsServer }}{{ "favicon-16x16.png" | absURL }}{{ else }}{{ .Site.Params.cdnURL }}/favicon-16x16.png{{ end }}">
<link rel="mask-icon" href="{{ if hugo.IsServer }}{{ "safari-pinned-tab.svg" | absURL }}{{ else }}{{ .Site.Params.cdnURL }}/safari-pinned-tab.svg{{ end }}" color="{{ .Site.Params.hexcolour }}">
<meta name="keywords" content="{{ .Site.Params.keywords }}">
<meta name="msapplication-TileColor" content="{{ .Site.Params.hexcolour}}">
<meta name="theme-color" content="{{ .Site.Params.hexcolour}}">
{{ template "_internal/opengraph.html" . }}
{{ $cond := "" }}
{{ if .IsHome }}
{{ with .Site.Params.description }}
{{ $cond = . | plainify }}
{{ end }}
{{ else }}
{{ $cond = trim (.Summary | plainify | htmlUnescape) "\n\r" | default .Title }}
{{ end }}
<meta name="description" content="{{ $cond }}">
<meta name="author" content="{{ .Params.author | default "Unknown" }}">
{{ $cssOpts := (dict "targetPath" "css/styles.css" "enableSourceMap" hugo.IsServer ) }}
{{ $styles := resources.Get "scss/template-styles.scss" | resources.ExecuteAsTemplate "style.styles.css" . | toCSS $cssOpts }}
{{ if hugo.IsServer }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
{{ else }}
{{ $minifiedStyles := $styles | minify | fingerprint }}
<link rel="stylesheet" href="{{ .Site.Params.cdnURL }}{{ $minifiedStyles.RelPermalink }}" integrity="{{ $minifiedStyles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
{{ end }}
{{ partial "noscript.html" . }}

View File

@ -0,0 +1,5 @@
<a class="skip-link screen-reader-text" href="#content">{{ i18n "skip-to-content" }}</a>
<header id="masthead" class="site-header">
{{ partial "branding.html" . }}
{{ partial "navbar.html" . }}
</header>

View File

@ -0,0 +1,13 @@
<div id="content" class="site-content">
<div class="ctb-content-sidebar u-wrapper">
<main id="primary" class="site-main">
<article class="ctb-article ctb-singular page type-page hentry">
<div class="ctb-content">
<div class="entry-content">
{{ .Content }}
</div>
</div>
</article>
</main>
</div>
</div>

View File

@ -0,0 +1,53 @@
<li class="menu-item menu-item-has-children">
<button class="main-navigation-arrow-btn" aria-expanded="false">
<span class="screen-reader-text">{{ i18n "sub-menu-toggle" }}</span>
<a href="#">{{ i18n "projects" }}</a>
<svg class="svg-icon" width="24" height="24" version="1.1" id="svg3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs1">
<path d="m 0,4.125 h 48 v 6 H 0 Z m 0,0" fill="#5bcefa" id="aXRKiF9KfND" />
<path d="m 0,20.625 h 36 v 6 H 0 Z m 0,0" fill="#ffffff" id="bEbTfLzOf3X" />
<path d="m 0,37.125 h 24 v 6 H 0 Z m 0,0" fill="#f5a9b8" id="cCW18mz3Gnz" />
</defs>
<use xlink:href="#aXRKiF9KfND" mask="url(#f)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use1" />
<use xlink:href="#bEbTfLzOf3X" mask="url(#h)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use2" />
<use xlink:href="#cCW18mz3Gnz" mask="url(#j)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use3" />
</svg>
</button>
<ul class="sub-menu">
{{ with .Site.Menus.projects }}
{{ range sort . }}
<li class="menu-item menu-item-type-post_type menu-item-object-page">
<a href="{{ .URL }}" {{ if eq $.RelPermalink .URL }} class="active" {{ end }}>{{ .Name }}</a>
</li>
{{ end }}
{{ end }}
</ul>
</li>
<li class="menu-item menu-item-has-children">
<button class="main-navigation-arrow-btn" aria-expanded="false">
<span class="screen-reader-text">{{ i18n "sub-menu-toggle" }}</span>
<a href="#">{{ i18n "resources" }}</a>
<svg class="svg-icon" width="24" height="24" version="1.1" id="svg3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs1">
<path d="m 0,4.125 h 48 v 6 H 0 Z m 0,0" fill="#5bcefa" id="aXRKiF9KfND" />
<path d="m 0,20.625 h 36 v 6 H 0 Z m 0,0" fill="#ffffff" id="bEbTfLzOf3X" />
<path d="m 0,37.125 h 24 v 6 H 0 Z m 0,0" fill="#f5a9b8" id="cCW18mz3Gnz" />
</defs>
<use xlink:href="#aXRKiF9KfND" mask="url(#f)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use1" />
<use xlink:href="#bEbTfLzOf3X" mask="url(#h)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use2" />
<use xlink:href="#cCW18mz3Gnz" mask="url(#j)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use3" />
</svg>
</button>
<ul class="sub-menu">
{{ with .Site.Menus.resources }}
{{ range sort . }}
<li class="menu-item menu-item-type-post_type menu-item-object-page">
<a href="{{ .URL }}" {{ if eq $.RelPermalink .URL }} class="active" {{ end }}>{{ .Name }}</a>
</li>
{{ end }}
{{ end }}
</ul>
</li>

View File

@ -0,0 +1,43 @@
{{ if not .Site.Params.navbaroff }}
<div class="primary-navbar">
<div class="u-wrapper primary-navbar-wrap">
<nav id="site-navigation" class="main-navigation main-navigation--touch" aria-label="{{ i18n "primary-menu" }}">
<button class="primary-menu-toggle" aria-controls="primary-menu" aria-expanded="false"
aria-label="{{ i18n "primary-menu-toggle" }}">
<svg class="svg-icon" width="24" height="24" version="1.1" id="svg3" xml:space="preserve" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs1">
<path d="m 0,4.125 h 48 v 6 H 0 Z m 0,0" fill="#5bcefa" id="arC7LGJHqIl" />
<path d="m 0,20.625 h 48 v 6 H 0 Z m 0,0" fill="#ffffff" id="btvA0con2GG" />
<path d="m 0,37.125 h 48 v 6 H 0 Z m 0,0" fill="#f5a9b8" id="c0HevgVXuEU" />
</defs>
<use xlink:href="#arC7LGJHqIl" mask="url(#f)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use1" />
<use xlink:href="#btvA0con2GG" mask="url(#h)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use2" />
<use xlink:href="#c0HevgVXuEU" mask="url(#j)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use3" />
</svg>
<svg class="svg-icon" width="24" height="24" version="1.1" id="svg3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs1">
<path d="m 0,4.125 h 48 v 6 H 0 Z m 0,0" fill="#5bcefa" id="a7GzjZ8qyzW" />
<path d="m 6,21 h 36 v 6 H 6 Z m 0,0" fill="#ffffff" id="bOr33eznzSN" />
<path d="m 12,37.024 h 24 v 6 H 12 Z m 0,0" fill="#f5a9b8" id="cTmbadvPD0z" />
</defs>
<use xlink:href="#a7GzjZ8qyzW" mask="url(#f)" transform="matrix(0.375,0,0,0.35990642,3,3.515386)" id="use1" />
<use xlink:href="#bOr33eznzSN" mask="url(#h)" transform="matrix(0.375,0,0,0.35990642,3,3.515386)" id="use2" />
<use xlink:href="#cTmbadvPD0z" mask="url(#j)" transform="matrix(0.375,0,0,0.35990642,3,3.515386)" id="use3" />
</svg>
</button>
<div class="menu-primary-container">
<ul id="primary-menu" class="menu nav-menu">
{{ with .Site.Menus.main }}
{{ range . }}
<li class="menu-item">
<a href="{{ .URL }}"{{ if eq $.RelPermalink .URL }} class="active"{{ end }}>{{ .Name }}</a>
</li>
{{ end }}
{{ end }}
{{ partial "manualnavbar.html" . }}
</ul>
</div>
</nav>
</div>
</div>
{{ end }}

View File

@ -0,0 +1,7 @@
<noscript>
<style>
.primary-navbar{
display: none;
}
</style>
</noscript>

View File

@ -0,0 +1,31 @@
{{ with $.Paginator }}
{{ if gt .TotalPages 1 }}
<ul class="pagination">
{{ with .Prev }}
<li class="page-item">
<a class="page-link" href="{{ .URL }}">
<svg class="svg-icon-prev" width="15" height="15" viewBox="0 0 6 6" fill="none" stroke="#fff" xmlns="http://www.w3.org/2000/svg">
<path d="M.375 3h5.25M.375 3L2.625.75M.375 3l2.25 2.25" stroke-width=".75" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</a>
</li>
{{ end }}
{{ range .Pagers }}
<li class="page-item{{ if eq .PageNumber $.Paginator.PageNumber }} active{{ end }}">
<a class="page-link" href="{{ .URL }}">{{ .PageNumber }}</a>
</li>
{{ end }}
{{ with .Next }}
<li class="page-item">
<a class="page-link" href="{{ .URL }}">
<svg class="svg-icon-next" width="15" height="15" viewBox="0 0 6 6" fill="none" stroke="#fff" xmlns="http://www.w3.org/2000/svg">
<path d="M5.625 3H.375m5.25 0L3.375.75M5.625 3l-2.25 2.25" stroke-width=".75" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</a>
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}

View File

@ -0,0 +1,7 @@
{{ $script := resources.Get "js/bundle.js" }}
{{ $processedScript := $script | default $script }}
{{ if not hugo.IsServer }}
{{ $processedScript = $script | minify | fingerprint }}
{{ end }}
<script src="{{ if hugo.IsServer }}{{ $script.RelPermalink }}{{ else }}{{ .Site.Params.cdnURL }}{{ $processedScript.RelPermalink }}{{ end }}"></script>
<script>twemoji.parse(document.body)</script>

View File

@ -0,0 +1,5 @@
{{- with .Title -}}
<header class="entry-header">
<h1 id="title" class="entry-title">{{ . }}</h1>
</header>
{{- end -}}