Merge pull request #42 from davidsneighbour/master

Create a simple one-page website from README.md
This commit is contained in:
Bud Parr 2020-12-16 15:10:06 -05:00 committed by GitHub
commit 9c47934ef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 0 deletions

17
.gitignore vendored Normal file
View File

@ -0,0 +1,17 @@
.idea
# Created by https://www.toptal.com/developers/gitignore/api/hugo
# Edit at https://www.toptal.com/developers/gitignore?templates=hugo
### Hugo ###
# Generated files by hugo
/public/
/resources/_gen/
hugo_stats.json
# Executable may be added to repository
hugo.exe
hugo.darwin
hugo.linux
# End of https://www.toptal.com/developers/gitignore/api/hugo

3
config.toml Normal file
View File

@ -0,0 +1,3 @@
baseURL = "https://awesome-hugo.dev/"
languageCode = "en-us"
title = "Awesome Hugo"

View File

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
<link href="https://fonts.googleapis.com/css2?family=Exo+2:wght@200;900&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Exo 2', sans-serif;
font-weight: 200;
max-width: 800px;
margin: 0 auto;
}
h1, h2, h3, h4, h5, h6, strong {
font-weight: 900;
}
</style>
</head>
<body>
{{ block "main" . }}{{ end }}
{{ block "footer" . }}{{ end }}
</body>
</html>

5
layouts/index.html Normal file
View File

@ -0,0 +1,5 @@
{{ define "main" }}
<main aria-role="main">
{{ readFile "README.md" | markdownify }}
</main>
{{ end }}