From 02000860368c8a9ffafc1ccad361987bac801408 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Tue, 27 Jun 2023 20:58:17 -0400 Subject: [PATCH] Implement base proof of concept site --- config.toml | 1 + layouts/index.html | 7 +++++++ themes/clortox/LICENSE | 20 ++++++++++++++++++++ themes/clortox/archetypes/default.md | 2 ++ themes/clortox/layouts/404.html | 0 themes/clortox/layouts/_default/baseof.html | 11 +++++++++++ themes/clortox/layouts/_default/list.html | 8 ++++++++ themes/clortox/layouts/_default/single.html | 8 ++++++++ themes/clortox/layouts/index.html | 0 themes/clortox/layouts/partials/footer.html | 5 +++++ themes/clortox/layouts/partials/head.html | 0 themes/clortox/layouts/partials/header.html | 4 ++++ themes/clortox/theme.toml | 21 +++++++++++++++++++++ 13 files changed, 87 insertions(+) create mode 100644 layouts/index.html create mode 100644 themes/clortox/LICENSE create mode 100644 themes/clortox/archetypes/default.md create mode 100644 themes/clortox/layouts/404.html create mode 100644 themes/clortox/layouts/_default/baseof.html create mode 100644 themes/clortox/layouts/_default/list.html create mode 100644 themes/clortox/layouts/_default/single.html create mode 100644 themes/clortox/layouts/index.html create mode 100644 themes/clortox/layouts/partials/footer.html create mode 100644 themes/clortox/layouts/partials/head.html create mode 100644 themes/clortox/layouts/partials/header.html create mode 100644 themes/clortox/theme.toml diff --git a/config.toml b/config.toml index 1d7c819..3c586aa 100644 --- a/config.toml +++ b/config.toml @@ -1,3 +1,4 @@ baseURL = 'http://example.org/' languageCode = 'en-us' title = 'My New Hugo Site' +theme = "clortox" diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..3399ec0 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,7 @@ +{{ define "main" }} + +

{{ .Title }}

+
+ {{ .Content }} +
+{{ end }} diff --git a/themes/clortox/LICENSE b/themes/clortox/LICENSE new file mode 100644 index 0000000..17993f6 --- /dev/null +++ b/themes/clortox/LICENSE @@ -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. diff --git a/themes/clortox/archetypes/default.md b/themes/clortox/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/clortox/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/clortox/layouts/404.html b/themes/clortox/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/clortox/layouts/_default/baseof.html b/themes/clortox/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/themes/clortox/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/themes/clortox/layouts/_default/list.html b/themes/clortox/layouts/_default/list.html new file mode 100644 index 0000000..45981cf --- /dev/null +++ b/themes/clortox/layouts/_default/list.html @@ -0,0 +1,8 @@ +{{ define "main" }} +

{{ .Title }}

+ {{ range .Pages }} +
+

{{ .Title }}

+
+ {{ end }} +{{ end }} diff --git a/themes/clortox/layouts/_default/single.html b/themes/clortox/layouts/_default/single.html new file mode 100644 index 0000000..0fb79de --- /dev/null +++ b/themes/clortox/layouts/_default/single.html @@ -0,0 +1,8 @@ +{{ define "main" }} +
+

{{ .Title }}

+
+ {{ .Content }} +
+
+{{ end }} diff --git a/themes/clortox/layouts/index.html b/themes/clortox/layouts/index.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/clortox/layouts/partials/footer.html b/themes/clortox/layouts/partials/footer.html new file mode 100644 index 0000000..3ff4752 --- /dev/null +++ b/themes/clortox/layouts/partials/footer.html @@ -0,0 +1,5 @@ + diff --git a/themes/clortox/layouts/partials/head.html b/themes/clortox/layouts/partials/head.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/clortox/layouts/partials/header.html b/themes/clortox/layouts/partials/header.html new file mode 100644 index 0000000..b3f7c45 --- /dev/null +++ b/themes/clortox/layouts/partials/header.html @@ -0,0 +1,4 @@ +
+ Home + About +
diff --git a/themes/clortox/theme.toml b/themes/clortox/theme.toml new file mode 100644 index 0000000..7c3f317 --- /dev/null +++ b/themes/clortox/theme.toml @@ -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 = ""