From 5fe2fbbddd798f0fc54afe888e5652fe72fecc59 Mon Sep 17 00:00:00 2001 From: Benny Mei Date: Mon, 1 Jan 2018 15:33:04 -0500 Subject: initial commit --- LICENSE.md | 20 ++++++++++++++++++++ archetypes/default.md | 2 ++ layouts/404.html | 0 layouts/_default/list.html | 1 + layouts/_default/single.html | 13 +++++++++++++ layouts/index.html | 18 ++++++++++++++++++ layouts/partials/footer.html | 2 ++ layouts/partials/header.html | 17 +++++++++++++++++ static/css/stylesheet.css | 34 ++++++++++++++++++++++++++++++++++ theme.toml | 15 +++++++++++++++ 10 files changed, 122 insertions(+) create mode 100644 LICENSE.md create mode 100644 archetypes/default.md create mode 100644 layouts/404.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/header.html create mode 100644 static/css/stylesheet.css create mode 100644 theme.toml diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..a1f7830 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2018 Benny Mei + +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/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..5c3f32f --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1 @@ +Hello List \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..3db642b --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,13 @@ +{{ partial "header.html" . }} + +
+

{{ .Title }}

+
+ {{ .Date.Format (.Site.Params.dateform | default "January 2, 2006") }} +
+
+ {{ .Content }} +
+
+ +{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..6efa0b1 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,18 @@ +{{ partial "header.html" . }} + +
+ +
+ +{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..b317cc2 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..634e9ae --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,17 @@ + + + + + + + + + {{.Title}} + + + + +
+

{{ .Site.Params.sitename }}

+
+ diff --git a/static/css/stylesheet.css b/static/css/stylesheet.css new file mode 100644 index 0000000..0a4736d --- /dev/null +++ b/static/css/stylesheet.css @@ -0,0 +1,34 @@ +body { + font-family: 'Ubuntu', sans-serif; + color: black; + margin: auto; + max-width: 50em; +} + +#page-title { + text-align: center; +} + +#page-title h1 a, .post a { + color: black; +} + +a { + text-decoration: none; +} + +#page-title a:hover, .post a:hover { + text-decoration: underline; +} + +.date-time-title { + display: inline-block; +} + +#posts { + padding-left: 2em; +} + +.post { + padding-left: 1em; +} \ No newline at end of file diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..8e18657 --- /dev/null +++ b/theme.toml @@ -0,0 +1,15 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Elephants" +license = "MIT" +licenselink = "https://github.com/meibenny/elephants/blob/master/LICENSE.md" +description = "Minimal theme using the Ubuntu font." +homepage = "http://example.com/" +tags = [] +features = [] +min_version = "0.31.1" + +[author] + name = "Benny Mei" + homepage = "www.example.com" \ No newline at end of file -- cgit v1.2.3