First template
Some checks failed
Deploy Hugo site / deploy (push) Failing after 47s

This commit is contained in:
2026-03-16 22:25:02 +01:00
parent d8d15dc0ec
commit daf6b8f55f
17 changed files with 665 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="{{ site.Language.LanguageCode | default `en-us` }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }} | {{ site.Title }}{{ end }}</title>
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ site.Params.intro }}{{ end }}">
{{ $styles := resources.Get "css/main.css" | minify | fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}">
</head>
<body>
{{ partial "header.html" . }}
<main class="page-shell">
{{ block "main" . }}{{ end }}
</main>
{{ partial "footer.html" . }}
</body>
</html>

View File

@@ -0,0 +1,28 @@
{{ define "main" }}
<section class="section page-header">
<p class="eyebrow">Collection</p>
<h1>{{ .Title }}</h1>
{{ with .Content }}
<div class="section-text">{{ . }}</div>
{{ end }}
</section>
<section class="section">
<div class="card-grid">
{{ range .Pages.ByWeight }}
<article class="project-card">
<p class="meta">{{ .Date.Format "Jan 2, 2006" }}</p>
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<p>{{ with .Params.summary }}{{ . }}{{ else }}{{ .Description }}{{ end }}</p>
{{ with .Params.tags }}
<ul class="tag-list">
{{ range . }}
<li>{{ . }}</li>
{{ end }}
</ul>
{{ end }}
</article>
{{ end }}
</div>
</section>
{{ end }}

View File

@@ -0,0 +1,30 @@
{{ define "main" }}
<article class="section project-single">
<p class="eyebrow">Project</p>
<h1>{{ .Title }}</h1>
{{ with .Description }}
<p class="lead">{{ . }}</p>
{{ end }}
<div class="project-links">
{{ with .Params.project_url }}
<a class="button button-primary" href="{{ . }}">Live Project</a>
{{ end }}
{{ with .Params.repo_url }}
<a class="button button-secondary" href="{{ . }}">Source Code</a>
{{ end }}
</div>
{{ with .Params.tags }}
<ul class="tag-list tag-list-spaced">
{{ range . }}
<li>{{ . }}</li>
{{ end }}
</ul>
{{ end }}
<div class="content-body">
{{ .Content }}
</div>
</article>
{{ end }}