From 03cc689b0102248589b357d8743c297ce45a46d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20M=C3=BCller=20Madsen?= Date: Sat, 5 Aug 2017 02:16:16 +0200 Subject: [PATCH] Initial commit --- LICENSE.md | 20 +++++++++ archetypes/default.md | 2 + layouts/404.html | 0 layouts/_default/list.html | 19 +++++++++ layouts/_default/single.html | 7 ++++ layouts/index.html | 34 +++++++++++++++ layouts/partials/footer.html | 2 + layouts/partials/header.html | 13 ++++++ layouts/partials/modified.html | 2 + layouts/partials/nav.html | 1 + static/css/style.css | 77 ++++++++++++++++++++++++++++++++++ theme.toml | 15 +++++++ 12 files changed, 192 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 layouts/partials/modified.html create mode 100644 layouts/partials/nav.html create mode 100644 static/css/style.css create mode 100644 theme.toml diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..6730188 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2017 Christoffer Müller Madsen + +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..2498292 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,19 @@ + + + + {{ .Site.Title }} + + + + + +

Christoffer Müller Madsen

+ +

All writings

+ + + diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..97be7e6 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,7 @@ +{{ partial "header.html" . }} +{{ partial "nav.html" . }} +

{{ .Title }}

+{{ .Date.Format "January 2, 2006" }} +{{ .Content }} +{{ partial "modified.html" . }} +{{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..162a3dd --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,34 @@ +{{ partial "header.html" . }} +

Christoffer Müller Madsen

+ +

Contact

+ email: christoffer (at) guava.space +
+ +

Writings

+ + +

Pages

+ + +

Where to find me on the internet

+ +{{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..b605728 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,2 @@ + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..4daad12 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,13 @@ + + + + {{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }} + + + + + + + {{.Hugo.Generator}} + + diff --git a/layouts/partials/modified.html b/layouts/partials/modified.html new file mode 100644 index 0000000..3626ff7 --- /dev/null +++ b/layouts/partials/modified.html @@ -0,0 +1,2 @@ +
+Page last updated at {{ .Lastmod.Format "Jan 2, 2006 15:04" }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..862e85b --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1 @@ +← Back to front page diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..7ef2eb5 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,77 @@ +body { + font-family: sans-serif; + background-color: #fff; + color: #000; + margin-left: 30px; +} + + +h1, h2, h3, h4 { + font-weight: normal; +} + +a:link, a:visited { + /*color: #ff9900;*/ + color: #4682B4; + transition-duration: 0.3s; + text-decoration: none; +} + +a:hover, a:active { + /*color: #ffb84d;*/ + color: lightblue; + transition-duration: 0.3s; +} + +.introduction { + margin-left: 20px; + width: 600px; + margin-bottom: 4ex; +} + +.cover { + float: left; + width: 190px; +} + +.cover img { + display: block; +} + +.description { + margin-left: 180px; + margin-bottom: 6ex; + width: 600px; + height: 220px; +} + +ul { + list-style-type: square; + +} + +h3.booktitle, h4.authorname { + font-weight: 400; + font-style: italic; +} + +ul.covers { + list-style: none; +} + +.emailaddr { + font-family: monospace; +} + +td.right-align { + text-align: right; +} + +td { + padding: 2pt; + border-bottom: 1px solid #ddd; +} + +th { + border-bottom: 1px solid #aaa; +} \ No newline at end of file diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..7054851 --- /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 = "Graceful Simplicity" +license = "MIT" +licenselink = "https://gitfub.space/christoffermadsen/hugo-graceful-simplicity/LICENSE.md" +description = "" +homepage = "https://gitfub.space/christoffermadsen/hugo-graceful-simplicity/" +tags = [] +features = [] +min_version = "0.25.1" + +[author] + name = "Christoffer Müller Madsen" + homepage = "https://christoffer.space/"