From 0d06bb367bf757bfb8abeb8eb6ce2e4e6cc50b49 Mon Sep 17 00:00:00 2001 From: Igor Laborie Date: Sun, 16 Dec 2018 10:59:15 +0100 Subject: [PATCH] chore:init hugo --- .gitignore | 1 + test-hugo/archetypes/default.md | 6 ++++++ test-hugo/config.toml | 3 +++ test-hugo/themes/test-theme-hugo/LICENSE | 20 ++++++++++++++++++ .../test-theme-hugo/archetypes/default.md | 2 ++ .../themes/test-theme-hugo/layouts/404.html | 0 .../layouts/_default/baseof.html | 11 ++++++++++ .../layouts/_default/list.html | 0 .../layouts/_default/single.html | 0 .../themes/test-theme-hugo/layouts/index.html | 0 .../layouts/partials/footer.html | 0 .../layouts/partials/head.html | 0 .../layouts/partials/header.html | 0 test-hugo/themes/test-theme-hugo/theme.toml | 21 +++++++++++++++++++ 14 files changed, 64 insertions(+) create mode 100644 .gitignore create mode 100644 test-hugo/archetypes/default.md create mode 100644 test-hugo/config.toml create mode 100644 test-hugo/themes/test-theme-hugo/LICENSE create mode 100644 test-hugo/themes/test-theme-hugo/archetypes/default.md create mode 100644 test-hugo/themes/test-theme-hugo/layouts/404.html create mode 100644 test-hugo/themes/test-theme-hugo/layouts/_default/baseof.html create mode 100644 test-hugo/themes/test-theme-hugo/layouts/_default/list.html create mode 100644 test-hugo/themes/test-theme-hugo/layouts/_default/single.html create mode 100644 test-hugo/themes/test-theme-hugo/layouts/index.html create mode 100644 test-hugo/themes/test-theme-hugo/layouts/partials/footer.html create mode 100644 test-hugo/themes/test-theme-hugo/layouts/partials/head.html create mode 100644 test-hugo/themes/test-theme-hugo/layouts/partials/header.html create mode 100644 test-hugo/themes/test-theme-hugo/theme.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c67de72 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +_gen/ \ No newline at end of file diff --git a/test-hugo/archetypes/default.md b/test-hugo/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/test-hugo/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/test-hugo/config.toml b/test-hugo/config.toml new file mode 100644 index 0000000..e4b7418 --- /dev/null +++ b/test-hugo/config.toml @@ -0,0 +1,3 @@ +baseURL = "http://example.org/" +languageCode = "en-us" +title = "My New Hugo Site" diff --git a/test-hugo/themes/test-theme-hugo/LICENSE b/test-hugo/themes/test-theme-hugo/LICENSE new file mode 100644 index 0000000..624b3f3 --- /dev/null +++ b/test-hugo/themes/test-theme-hugo/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2018 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/test-hugo/themes/test-theme-hugo/archetypes/default.md b/test-hugo/themes/test-theme-hugo/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/test-hugo/themes/test-theme-hugo/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/test-hugo/themes/test-theme-hugo/layouts/404.html b/test-hugo/themes/test-theme-hugo/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/test-hugo/themes/test-theme-hugo/layouts/_default/baseof.html b/test-hugo/themes/test-theme-hugo/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/test-hugo/themes/test-theme-hugo/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/test-hugo/themes/test-theme-hugo/layouts/_default/list.html b/test-hugo/themes/test-theme-hugo/layouts/_default/list.html new file mode 100644 index 0000000..e69de29 diff --git a/test-hugo/themes/test-theme-hugo/layouts/_default/single.html b/test-hugo/themes/test-theme-hugo/layouts/_default/single.html new file mode 100644 index 0000000..e69de29 diff --git a/test-hugo/themes/test-theme-hugo/layouts/index.html b/test-hugo/themes/test-theme-hugo/layouts/index.html new file mode 100644 index 0000000..e69de29 diff --git a/test-hugo/themes/test-theme-hugo/layouts/partials/footer.html b/test-hugo/themes/test-theme-hugo/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/test-hugo/themes/test-theme-hugo/layouts/partials/head.html b/test-hugo/themes/test-theme-hugo/layouts/partials/head.html new file mode 100644 index 0000000..e69de29 diff --git a/test-hugo/themes/test-theme-hugo/layouts/partials/header.html b/test-hugo/themes/test-theme-hugo/layouts/partials/header.html new file mode 100644 index 0000000..e69de29 diff --git a/test-hugo/themes/test-theme-hugo/theme.toml b/test-hugo/themes/test-theme-hugo/theme.toml new file mode 100644 index 0000000..cb8431c --- /dev/null +++ b/test-hugo/themes/test-theme-hugo/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Test Theme Hugo" +license = "MIT" +licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" +description = "" +homepage = "http://example.com/" +tags = [] +features = [] +min_version = "0.41" + +[author] + name = "" + homepage = "" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = ""