commit 4c457910ed03527d3b6c0f74b2a55cebcc6bedbc Author: Adrian Short Date: Tue Aug 8 16:46:28 2017 +0100 Initial commit diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..315bcec --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2017 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/archetypes/asides.md b/archetypes/asides.md new file mode 100644 index 0000000..83a7439 --- /dev/null +++ b/archetypes/asides.md @@ -0,0 +1,6 @@ +--- +date: {{ .Date }} +draft: false +type: aside +tags: +--- diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..f5a9e45 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .TranslationBaseName "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/archetypes/images.md b/archetypes/images.md new file mode 100644 index 0000000..3d5258b --- /dev/null +++ b/archetypes/images.md @@ -0,0 +1,12 @@ +--- +title: "{{ replace .TranslationBaseName "-" " " | title }}" +date: {{ .Date }} +draft: false +author: +year: +type: image +# image_filename is relative to /static/images/ +image_filename: {{ .TranslationBaseName }}.jpg +show_title: false +tags: +--- diff --git a/archetypes/posts.md b/archetypes/posts.md new file mode 100644 index 0000000..2c6d04d --- /dev/null +++ b/archetypes/posts.md @@ -0,0 +1,8 @@ +--- +title: "{{ replace .TranslationBaseName "-" " " | title }}" +date: {{ .Date }} +draft: true +type: post +tags: +--- + diff --git a/archetypes/quotes.md b/archetypes/quotes.md new file mode 100644 index 0000000..755085d --- /dev/null +++ b/archetypes/quotes.md @@ -0,0 +1,10 @@ +--- +title: "{{ replace .TranslationBaseName "-" " " | title }}" +date: {{ .Date }} +draft: false +author: +work: +year: +type: quote +tags: +--- diff --git a/archetypes/videos.md b/archetypes/videos.md new file mode 100644 index 0000000..443da7b --- /dev/null +++ b/archetypes/videos.md @@ -0,0 +1,8 @@ +--- +title: "{{ replace .TranslationBaseName "-" " " | title }}" +date: {{ .Date }} +draft: false +embed_url: +type: video +tags: +--- diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/li.html b/layouts/_default/li.html new file mode 100644 index 0000000..a08decf --- /dev/null +++ b/layouts/_default/li.html @@ -0,0 +1,8 @@ +
+ + {{ partial .Type . }} +
+ + {{ partial "tags.html" . }} +
+
diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..275e434 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1 @@ +

Default list template

diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..ec8d538 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,2 @@ +

Default single template

+{{ .Content }} diff --git a/layouts/aside/single.html b/layouts/aside/single.html new file mode 100644 index 0000000..6d4dead --- /dev/null +++ b/layouts/aside/single.html @@ -0,0 +1,6 @@ +{{ partial "header" . }} +
+ {{ .Content }} +
+{{ partial "postmeta" . }} +{{ partial "footer" . }} diff --git a/layouts/image/single.html b/layouts/image/single.html new file mode 100644 index 0000000..51dcad3 --- /dev/null +++ b/layouts/image/single.html @@ -0,0 +1,4 @@ +{{ partial "header" . }} +{{ partial "image" . }} +{{ partial "postmeta" . }} +{{ partial "footer" . }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..40c37a2 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,6 @@ +{{ partial "header" . }} + {{ range .Paginator.Pages }} + {{ .Render "li" }} + {{ end }} + {{ template "_internal/pagination.html" . }} +{{ partial "footer" . }} diff --git a/layouts/partials/aside.html b/layouts/partials/aside.html new file mode 100644 index 0000000..a5d4248 --- /dev/null +++ b/layouts/partials/aside.html @@ -0,0 +1 @@ +
{{ .Content }}
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..983bea5 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,9 @@ + + + + {{ .Site.Title }} + + + + +

{{ .Site.Title }}

diff --git a/layouts/partials/image.html b/layouts/partials/image.html new file mode 100644 index 0000000..88e1add --- /dev/null +++ b/layouts/partials/image.html @@ -0,0 +1,8 @@ +
+ + {{ .Params.title }} + + {{ if .Params.show_title }} + {{ with .Params.title }}
{{ . }}
{{ end }} + {{ end }} +
diff --git a/layouts/partials/post.html b/layouts/partials/post.html new file mode 100644 index 0000000..a61fb52 --- /dev/null +++ b/layouts/partials/post.html @@ -0,0 +1,2 @@ +

{{ .Title }}

+{{ .Summary }} diff --git a/layouts/partials/postmeta.html b/layouts/partials/postmeta.html new file mode 100644 index 0000000..6a81e14 --- /dev/null +++ b/layouts/partials/postmeta.html @@ -0,0 +1,6 @@ +
+

{{ .Date.Format "2 Jan 2006" }} + # +

+ {{ partial "tags.html" . }} +
diff --git a/layouts/partials/quote.html b/layouts/partials/quote.html new file mode 100644 index 0000000..fa56fc5 --- /dev/null +++ b/layouts/partials/quote.html @@ -0,0 +1,5 @@ +
+ {{ .Content }} +{{- with .Params -}}

— {{ .author }}{{ with .work }}, {{ . }}{{ end }}{{ with .year }}, {{ . }}{{ end }} +

{{- end -}} +
diff --git a/layouts/partials/tags.html b/layouts/partials/tags.html new file mode 100644 index 0000000..4d6b821 --- /dev/null +++ b/layouts/partials/tags.html @@ -0,0 +1,5 @@ + diff --git a/layouts/partials/video.html b/layouts/partials/video.html new file mode 100644 index 0000000..51a1503 --- /dev/null +++ b/layouts/partials/video.html @@ -0,0 +1,2 @@ + +{{ .Summary }} diff --git a/layouts/post/single.html b/layouts/post/single.html new file mode 100644 index 0000000..4d496a7 --- /dev/null +++ b/layouts/post/single.html @@ -0,0 +1,9 @@ +{{ partial "header" . }} + +
+

{{ .Title }}

+ {{ .Content }} +
+ +{{ partial "postmeta" . }} +{{ partial "footer" . }} \ No newline at end of file diff --git a/layouts/quote/single.html b/layouts/quote/single.html new file mode 100644 index 0000000..e870163 --- /dev/null +++ b/layouts/quote/single.html @@ -0,0 +1,4 @@ +{{ partial "header" . }} +{{ partial "quote" . }} +{{ partial "postmeta" . }} +{{ partial "footer" . }} diff --git a/layouts/taxonomy/tag.html b/layouts/taxonomy/tag.html new file mode 100644 index 0000000..e7438a9 --- /dev/null +++ b/layouts/taxonomy/tag.html @@ -0,0 +1,6 @@ +{{ partial "header" . }} +

{{ .Title | lower }}

+{{ range .Data.Pages }} +{{ .Render "li" }} +{{ end }} +{{ partial "footer" . }} diff --git a/layouts/taxonomy/tag.terms.html b/layouts/taxonomy/tag.terms.html new file mode 100644 index 0000000..ae42545 --- /dev/null +++ b/layouts/taxonomy/tag.terms.html @@ -0,0 +1,8 @@ +{{ partial "header" . }} +

{{ .Title }}

+ +{{ partial "footer" . }} diff --git a/layouts/video/single.html b/layouts/video/single.html new file mode 100644 index 0000000..7876cc5 --- /dev/null +++ b/layouts/video/single.html @@ -0,0 +1,6 @@ +{{ partial "header" . }} + +{{ partial "video" . }} +{{ .Content }} +{{ partial "postmeta" . }} +{{ partial "footer" . }} \ No newline at end of file diff --git a/static/css/main.css b/static/css/main.css new file mode 100644 index 0000000..1b8227d --- /dev/null +++ b/static/css/main.css @@ -0,0 +1,144 @@ +body { + background-color: #777; + width: 600px; + margin: 50px auto; + font-family: Helvetica, Arial, sans-serif; +} + +.quote { + font-family: monospace; + border: 0px #777 solid; + /*background-color: #eee;*/ + font-size: 1.8rem; + line-height: 2.0rem; + /*padding: 20px;*/ + margin: 30px 0; +} + +.quote-credit { + /*font-style: italic;*/ + text-align: right; + font-size: 1.0rem; +} + +.list-item { + display: block; + border: 0px #777 solid; + background-color: white; + padding: 10px 20px; + margin: 60px 0; + border-radius: 10px; +} + +.list-item img { + margin: 0px 0 20px 0; + border-radius: 10px; +} + +.list-quote { + background-color: #444; + color: white; +} + +.list-video { + background-color: #000; + color: white; +} + + + +.postmeta, .listmeta { + font-size: 100%; + color: #aaa; + font-family: monospace; + text-align: right; +} + +.aside-list { + font-family: Georgia, "Times New Roman", serif; + font-size: 2.7rem; + line-height: 3.5rem; +} + +#aside-single { + margin: 10rem 0; + color: white; + font-family: Georgia, "Times New Roman", serif; + font-size: 4.0rem; + line-height: 4.5rem; +} + +img { + width: 100%; + border-radius: 10px; +} + +figure { + margin: 20px 0; + padding: 0; +} + +figcaption { + text-transform: lowercase; + letter-spacing: 0.2rem; + text-align: center; + font-size: 1.8rem; +} + +article { + font-size: 1.2rem; + line-height: 1.6rem; +} + +h1 { + color: white; + text-transform: lowercase; +} + +article h1 { + font-size: 2.0rem; + line-height: 2.4rem; + margin: 50px 0; +} + +#site-title { + margin: 70px 0; +} + +#site-title a, #site-title a:visited { + font-size: 4.0rem; + color: white; + text-decoration: none; + text-transform: lowercase; +} + +.tags li { + display: inline; + list-style-type: none; + margin: 0 0 0 10px; + text-transform: lowercase; +} + +.tags li a, .tags li a:hover, .tags li a:visited { + color: #777; + text-decoration: none; +} + +ul.pagination li { + display: inline; + background-color: white; + color: black; + padding: 10px; + margin: 0 10px 0 0; +} + +@media screen and (max-width: 599px) { + body { + width: 90%; + margin: 20px auto; + } + + img { + width: 100%; + } +} diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..cb29f6c --- /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 = "Tumble" +license = "MIT" +licenselink = "https://github.com/adrianshort/tumble/blob/master/LICENSE.md" +description = "A minimal tumblelog. Content types: aside, image, post, quote, video." +homepage = "http://example.com/" +tags = ["tumblelog", "minimal", "clean", "fun", "personal"] +features = [] +min_version = "0.25.1" + +[author] + name = "Adrian Short" + homepage = "https://www.adrianshort.org/"