Implement base proof of concept site

This commit is contained in:
Tyler Perkins 2023-06-27 20:58:17 -04:00
parent 9f1b65b826
commit 0200086036
13 changed files with 87 additions and 0 deletions

View File

@ -1,3 +1,4 @@
baseURL = 'http://example.org/' baseURL = 'http://example.org/'
languageCode = 'en-us' languageCode = 'en-us'
title = 'My New Hugo Site' title = 'My New Hugo Site'
theme = "clortox"

7
layouts/index.html Normal file
View File

@ -0,0 +1,7 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
<div>
{{ .Content }}
</div>
{{ end }}

20
themes/clortox/LICENSE Normal file
View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2023 YOUR_NAME_HERE
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,2 @@
+++
+++

View File

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -0,0 +1,8 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ range .Pages }}
<article>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
</article>
{{ end }}
{{ end }}

View File

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

View File

View File

@ -0,0 +1,5 @@
<footer>
<p>
<small>Copyright &copy; {{ now.Year }}. All rights Reserved</small>
</p>
</footer>

View File

@ -0,0 +1,4 @@
<header>
<a href="{{ "/" | relURL }}">Home</a>
<a href="{{ "/about/" | relURL }}">About</a>
</header>

21
themes/clortox/theme.toml Normal file
View File

@ -0,0 +1,21 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "Clortox"
license = "MIT"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
description = ""
homepage = "http://example.com/"
tags = []
features = []
min_version = "0.41.0"
[author]
name = ""
homepage = ""
# If porting an existing theme
[original]
name = ""
homepage = ""
repo = ""