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 }}

54
layouts/index.html Normal file
View File

@@ -0,0 +1,54 @@
{{ define "main" }}
{{ $projects := where site.RegularPages "Section" "projects" }}
{{ $featured := where $projects "Params.featured" true }}
<section class="hero">
<div class="hero-copy">
<p class="eyebrow">{{ site.Params.role }}</p>
<h1>{{ site.Params.tagline }}</h1>
<p class="hero-text">{{ site.Params.intro }}</p>
<div class="hero-actions">
<a class="button button-primary" href="/projects/">View Projects</a>
<a class="button button-secondary" href="mailto:{{ site.Params.email }}">Contact</a>
</div>
</div>
<div class="hero-panel">
<p class="panel-label">Focus</p>
<ul>
<li>Portfolio-driven presentation</li>
<li>Fast static delivery with Hugo</li>
<li>Clean, maintainable content structure</li>
</ul>
</div>
</section>
<section class="section">
<div class="section-heading">
<p class="eyebrow">Selected Work</p>
<h2>Featured projects</h2>
</div>
<div class="card-grid">
{{ range $featured }}
<article class="project-card">
<p class="meta">{{ .Date.Format "Jan 2006" }}</p>
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
<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>
<section class="section section-alt">
<div class="section-heading">
<p class="eyebrow">About this site</p>
<h2>Built to evolve with the portfolio</h2>
</div>
<p class="section-text">This Hugo setup is designed to make project updates straightforward. Add Markdown content, adjust templates when needed, and keep the site fast without introducing unnecessary complexity.</p>
</section>
{{ end }}

View File

@@ -0,0 +1,16 @@
<footer class="site-footer">
<div class="page-shell footer-inner">
<p>{{ site.Title }}.</p>
<div class="footer-links">
{{ with site.Params.github }}
<a href="{{ . }}">GitHub</a>
{{ end }}
{{ with site.Params.linkedin }}
<a href="{{ . }}">LinkedIn</a>
{{ end }}
{{ with site.Params.email }}
<a href="mailto:{{ . }}">Email</a>
{{ end }}
</div>
</div>
</footer>

View File

@@ -0,0 +1,10 @@
<header class="site-header">
<div class="page-shell header-inner">
<a class="brand" href="/">{{ site.Title }}</a>
<nav class="site-nav" aria-label="Main navigation">
{{ range site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
</nav>
</div>
</header>