mirror of
https://github.com/theNewDynamic/awesome-hugo.git
synced 2025-02-02 17:04:41 -05:00
Merge pull request #42 from davidsneighbour/master
Create a simple one-page website from README.md
This commit is contained in:
commit
9c47934ef7
17
.gitignore
vendored
Normal file
17
.gitignore
vendored
Normal 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
3
config.toml
Normal file
@ -0,0 +1,3 @@
|
||||
baseURL = "https://awesome-hugo.dev/"
|
||||
languageCode = "en-us"
|
||||
title = "Awesome Hugo"
|
23
layouts/_default/baseof.html
Normal file
23
layouts/_default/baseof.html
Normal 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
5
layouts/index.html
Normal file
@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<main aria-role="main">
|
||||
{{ readFile "README.md" | markdownify }}
|
||||
</main>
|
||||
{{ end }}
|
Loading…
x
Reference in New Issue
Block a user