This commit is contained in:
18
layouts/_default/baseof.html
Normal file
18
layouts/_default/baseof.html
Normal 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>
|
||||
28
layouts/_default/list.html
Normal file
28
layouts/_default/list.html
Normal 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 }}
|
||||
30
layouts/_default/single.html
Normal file
30
layouts/_default/single.html
Normal 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
54
layouts/index.html
Normal 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 }}
|
||||
16
layouts/partials/footer.html
Normal file
16
layouts/partials/footer.html
Normal 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>
|
||||
10
layouts/partials/header.html
Normal file
10
layouts/partials/header.html
Normal 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>
|
||||
Reference in New Issue
Block a user