From 56e20ec2e351e2403d33f6461113eeebfa616b20 Mon Sep 17 00:00:00 2001 From: niqdev Date: Sun, 30 May 2021 14:50:25 +0100 Subject: [PATCH] update layouts --- config.toml | 4 ---- config.yaml | 3 +++ content/_index.md | 5 +++++ dev.txt | 7 +++++-- layouts/.gitkeep | 0 layouts/404.html | 1 + .../layouts => layouts}/_default/baseof.html | 2 +- layouts/_default/list.html | 3 +++ layouts/_default/single.html | 3 +++ layouts/partials/footer.html | 1 + layouts/partials/head.html | 10 +++++++++ layouts/partials/header.html | 1 + {content => themes}/.gitkeep | 0 themes/awesome/LICENSE | 20 ------------------ themes/awesome/archetypes/default.md | 2 -- themes/awesome/layouts/404.html | 0 themes/awesome/layouts/_default/list.html | 0 themes/awesome/layouts/_default/single.html | 0 themes/awesome/layouts/index.html | 0 themes/awesome/layouts/partials/footer.html | 0 themes/awesome/layouts/partials/head.html | 0 themes/awesome/layouts/partials/header.html | 0 themes/awesome/static/css/.gitkeep | 0 themes/awesome/static/js/.gitkeep | 0 themes/awesome/theme.toml | 21 ------------------- 25 files changed, 33 insertions(+), 50 deletions(-) delete mode 100644 config.toml create mode 100644 config.yaml create mode 100644 content/_index.md delete mode 100644 layouts/.gitkeep create mode 100644 layouts/404.html rename {themes/awesome/layouts => layouts}/_default/baseof.html (93%) create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/head.html create mode 100644 layouts/partials/header.html rename {content => themes}/.gitkeep (100%) delete mode 100644 themes/awesome/LICENSE delete mode 100644 themes/awesome/archetypes/default.md delete mode 100644 themes/awesome/layouts/404.html delete mode 100644 themes/awesome/layouts/_default/list.html delete mode 100644 themes/awesome/layouts/_default/single.html delete mode 100644 themes/awesome/layouts/index.html delete mode 100644 themes/awesome/layouts/partials/footer.html delete mode 100644 themes/awesome/layouts/partials/head.html delete mode 100644 themes/awesome/layouts/partials/header.html delete mode 100644 themes/awesome/static/css/.gitkeep delete mode 100644 themes/awesome/static/js/.gitkeep delete mode 100644 themes/awesome/theme.toml diff --git a/config.toml b/config.toml deleted file mode 100644 index 04f6d21..0000000 --- a/config.toml +++ /dev/null @@ -1,4 +0,0 @@ -baseURL = "http://example.org/" -languageCode = "en-us" -title = "My New Hugo Site" -theme = "awesome" diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..bedd1e2 --- /dev/null +++ b/config.yaml @@ -0,0 +1,3 @@ +baseURL: "https://myawesome.dev/" +languageCode: "en-us" +title: "My Awesome" diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..9f70f9e --- /dev/null +++ b/content/_index.md @@ -0,0 +1,5 @@ +--- +title: "TODO Home" +--- + +No notes diff --git a/dev.txt b/dev.txt index 975fb12..6ae898c 100644 --- a/dev.txt +++ b/dev.txt @@ -1,10 +1,13 @@ https://gohugo.io/documentation +# tutorial +https://www.youtube.com/watch?v=ccCx2jrJ8zQ + # setup hugo new site . --force -hugo new theme awesome -echo theme = \"awesome\" >> config.toml hugo server -D http://localhost:1313 # TODO custom archetype +# html best practice +https://gist.github.com/ryansechrest/8693303 diff --git a/layouts/.gitkeep b/layouts/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..57db2e9 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1 @@ +404 \ No newline at end of file diff --git a/themes/awesome/layouts/_default/baseof.html b/layouts/_default/baseof.html similarity index 93% rename from themes/awesome/layouts/_default/baseof.html rename to layouts/_default/baseof.html index 5f8e2ec..0ddd37e 100644 --- a/themes/awesome/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{- partial "head.html" . -}} {{- partial "header.html" . -}} diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..7b5cdc0 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,3 @@ +{{ define "main" }} +
list
+{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..4024fec --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} +
single
+{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..a56ca53 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1 @@ +footer \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..da07e12 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,10 @@ + + + + + {{ .Site.Title }} + + + + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..6a6dd10 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1 @@ +header \ No newline at end of file diff --git a/content/.gitkeep b/themes/.gitkeep similarity index 100% rename from content/.gitkeep rename to themes/.gitkeep diff --git a/themes/awesome/LICENSE b/themes/awesome/LICENSE deleted file mode 100644 index e4483e2..0000000 --- a/themes/awesome/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2021 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/awesome/archetypes/default.md b/themes/awesome/archetypes/default.md deleted file mode 100644 index ac36e06..0000000 --- a/themes/awesome/archetypes/default.md +++ /dev/null @@ -1,2 +0,0 @@ -+++ -+++ diff --git a/themes/awesome/layouts/404.html b/themes/awesome/layouts/404.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/awesome/layouts/_default/list.html b/themes/awesome/layouts/_default/list.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/awesome/layouts/_default/single.html b/themes/awesome/layouts/_default/single.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/awesome/layouts/index.html b/themes/awesome/layouts/index.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/awesome/layouts/partials/footer.html b/themes/awesome/layouts/partials/footer.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/awesome/layouts/partials/head.html b/themes/awesome/layouts/partials/head.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/awesome/layouts/partials/header.html b/themes/awesome/layouts/partials/header.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/awesome/static/css/.gitkeep b/themes/awesome/static/css/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/themes/awesome/static/js/.gitkeep b/themes/awesome/static/js/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/themes/awesome/theme.toml b/themes/awesome/theme.toml deleted file mode 100644 index d944ca2..0000000 --- a/themes/awesome/theme.toml +++ /dev/null @@ -1,21 +0,0 @@ -# theme.toml template for a Hugo theme -# See https://github.com/gohugoio/hugoThemes#themetoml for an example - -name = "Awesome" -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 = ""