Github repo: GitHub - jpnfighter/steve-site: hugo website
- When trying to make a theme from scratch I am greeted with ‘Page Not Found’ being displayed when I ‘hugo server -D’
- Any help would be appreciated, thank-you in advance
- I have made a new theme from scratch and added the following:
hugo.toml
baseURL = 'http://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = 'steve-theme'
list.html
<html>
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8"/>
<style>
.align {
max-width: 500;
margin: auto;
}
</style>
<div class="align">
<link rel="stylesheet" href="style.css">
<html>
<body>
{{ range .Pages }}
<ul>
<li><a href="{{.Permalink}}">{{.Title}}</a></li>
</ul>
{{end}}
<center>
<a href="website.com">
Home
</a>
</center>
</body>
</html>
single.html
<html>
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8"/>
<style>
.align {
max-width: 500;
margin: auto;
}
</style>
<div class="align">
<link rel="stylesheet" href="style.css">
<html>
<body>
{{.Content}}
<center>
<a href="website.com">
Home
</a>
</center>
</body>
</html>
style.css (located at Hugo\steve-site\themes\steve-theme\static\css)
h1 {
color: red
}
body {
background: #14141E
}
post.md
---
title: "post"
---
# Post heading
Hello world.