Initial commit
This commit is contained in:
commit
00474fdb13
20
layouts/_default/baseof.html
Normal file
20
layouts/_default/baseof.html
Normal 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>© {{ now.Year }} {{ .Site.Author }}</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
12
layouts/_default/list.html
Normal file
12
layouts/_default/list.html
Normal 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 }}
|
6
layouts/_default/single.html
Normal file
6
layouts/_default/single.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<article>
|
||||
<h2>{{ .Title }}</h2>
|
||||
<div>{{ .Content }}</div>
|
||||
</article>
|
||||
{{ end }}
|
26
static/css/style.css
Normal file
26
static/css/style.css
Normal 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
5
theme.toml
Normal 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"
|
Loading…
x
Reference in New Issue
Block a user