Initial commit

This commit is contained in:
Phil 2025-01-07 13:02:12 -07:00
commit 00474fdb13
5 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Title }}</title>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<header>
<h1>{{ .Site.Title }}</h1>
</header>
<main>
{{ block "main" . }}{{ end }}
</main>
<footer>
<p>&copy; {{ now.Year }} {{ .Site.Author }}</p>
</footer>
</body>
</html>

View File

@ -0,0 +1,12 @@
{{ define "main" }}
<section>
<h2>Posts</h2>
<ul>
{{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
</section>
{{ end }}

View File

@ -0,0 +1,6 @@
{{ define "main" }}
<article>
<h2>{{ .Title }}</h2>
<div>{{ .Content }}</div>
</article>
{{ end }}

26
static/css/style.css Normal file
View File

@ -0,0 +1,26 @@
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
}
header, footer {
background: #333;
color: #fff;
padding: 10px 20px;
text-align: center;
}
main {
padding: 20px;
}
a {
color: #007bff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}

5
theme.toml Normal file
View File

@ -0,0 +1,5 @@
name = "Indieweb Starter"
author = "Phil Skentelbery"
description = "A minimal Hugo theme for getting started with the Indieweb"
version = "0.0.1"
license = "MIT"