@@ -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. |
@@ -0,0 +1,6 @@ | |||||
--- | |||||
date: {{ .Date }} | |||||
draft: false | |||||
type: aside | |||||
tags: | |||||
--- |
@@ -0,0 +1,6 @@ | |||||
--- | |||||
title: "{{ replace .TranslationBaseName "-" " " | title }}" | |||||
date: {{ .Date }} | |||||
draft: true | |||||
--- | |||||
@@ -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: | |||||
--- |
@@ -0,0 +1,8 @@ | |||||
--- | |||||
title: "{{ replace .TranslationBaseName "-" " " | title }}" | |||||
date: {{ .Date }} | |||||
draft: true | |||||
type: post | |||||
tags: | |||||
--- | |||||
@@ -0,0 +1,10 @@ | |||||
--- | |||||
title: "{{ replace .TranslationBaseName "-" " " | title }}" | |||||
date: {{ .Date }} | |||||
draft: false | |||||
author: | |||||
work: | |||||
year: | |||||
type: quote | |||||
tags: | |||||
--- |
@@ -0,0 +1,8 @@ | |||||
--- | |||||
title: "{{ replace .TranslationBaseName "-" " " | title }}" | |||||
date: {{ .Date }} | |||||
draft: false | |||||
embed_url: | |||||
type: video | |||||
tags: | |||||
--- |
@@ -0,0 +1,8 @@ | |||||
<div class="list-item list-{{ .Type }}"> | |||||
<!-- {{ partial ( print .Type ".html" ) . }} --> | |||||
{{ partial .Type . }} | |||||
<div class="listmeta"> | |||||
<!-- <a href="{{ .Permalink | relURL }}">#</a> --> | |||||
{{ partial "tags.html" . }} | |||||
</div> | |||||
</div> |
@@ -0,0 +1 @@ | |||||
<h2>Default list template</h2> |
@@ -0,0 +1,2 @@ | |||||
<h2>Default single template</h2> | |||||
{{ .Content }} |
@@ -0,0 +1,6 @@ | |||||
{{ partial "header" . }} | |||||
<div id="aside-single"> | |||||
{{ .Content }} | |||||
</div> | |||||
{{ partial "postmeta" . }} | |||||
{{ partial "footer" . }} |
@@ -0,0 +1,4 @@ | |||||
{{ partial "header" . }} | |||||
{{ partial "image" . }} | |||||
{{ partial "postmeta" . }} | |||||
{{ partial "footer" . }} |
@@ -0,0 +1,6 @@ | |||||
{{ partial "header" . }} | |||||
{{ range .Paginator.Pages }} | |||||
{{ .Render "li" }} | |||||
{{ end }} | |||||
{{ template "_internal/pagination.html" . }} | |||||
{{ partial "footer" . }} |
@@ -0,0 +1 @@ | |||||
<div class="aside-list">{{ .Content }}</div> |
@@ -0,0 +1,2 @@ | |||||
</body> | |||||
</html> |
@@ -0,0 +1,9 @@ | |||||
<!DOCTYPE html> | |||||
<html> | |||||
<head> | |||||
<title>{{ .Site.Title }}</title> | |||||
<meta name="viewport" content="width=device-width, initial-scale=1"> | |||||
<link rel="stylesheet" href="{{ relURL "/css/main.css" }}"> | |||||
</head> | |||||
<body> | |||||
<h1 id="site-title"><a href="{{ relURL "/" }}">{{ .Site.Title }}</a></h1> |
@@ -0,0 +1,8 @@ | |||||
<figure> | |||||
<a href="{{ .Permalink | relURL }}"> | |||||
<img src="{{ relURL "/images/" }}{{ .Params.image_filename }}" alt="{{ .Params.title }}"> | |||||
</a> | |||||
{{ if .Params.show_title }} | |||||
{{ with .Params.title }}<figcaption>{{ . }}</figcaption>{{ end }} | |||||
{{ end }} | |||||
</figure> |
@@ -0,0 +1,2 @@ | |||||
<h2><a href="{{ .Permalink | relURL }}">{{ .Title }}</a></h2> | |||||
{{ .Summary }} |
@@ -0,0 +1,6 @@ | |||||
<div class="postmeta"> | |||||
<p>{{ .Date.Format "2 Jan 2006" }} | |||||
<a title="Permalink" href="{{ .Permalink | relURL }}">#</a> | |||||
</p> | |||||
{{ partial "tags.html" . }} | |||||
</div> |
@@ -0,0 +1,5 @@ | |||||
<div class="quote"> | |||||
{{ .Content }} | |||||
{{- with .Params -}}<p class="quote-credit">— {{ .author }}{{ with .work }}, {{ . }}{{ end }}{{ with .year }}, {{ . }}{{ end }} | |||||
</p>{{- end -}} | |||||
</div> |
@@ -0,0 +1,5 @@ | |||||
<ul class="tags"> | |||||
{{ range .Params.tags }} | |||||
<li><a href="{{ relURL "/tags/" }}{{ . | urlize }}/">{{ . }}</a></li> | |||||
{{ end }} | |||||
</ul> |
@@ -0,0 +1,2 @@ | |||||
<iframe width="100%" height="360" src="{{ .Params.embed_url }}" frameborder="0" allowfullscreen></iframe> | |||||
{{ .Summary }} |
@@ -0,0 +1,9 @@ | |||||
{{ partial "header" . }} | |||||
<article> | |||||
<h1>{{ .Title }}</h1> | |||||
{{ .Content }} | |||||
</article> | |||||
{{ partial "postmeta" . }} | |||||
{{ partial "footer" . }} |
@@ -0,0 +1,4 @@ | |||||
{{ partial "header" . }} | |||||
{{ partial "quote" . }} | |||||
{{ partial "postmeta" . }} | |||||
{{ partial "footer" . }} |
@@ -0,0 +1,6 @@ | |||||
{{ partial "header" . }} | |||||
<h1>{{ .Title | lower }}</h1> | |||||
{{ range .Data.Pages }} | |||||
{{ .Render "li" }} | |||||
{{ end }} | |||||
{{ partial "footer" . }} |
@@ -0,0 +1,8 @@ | |||||
{{ partial "header" . }} | |||||
<h1>{{ .Title }}</h1> | |||||
<ul> | |||||
{{ range $name, $taxonomy := .Site.Taxonomies.tags }} | |||||
<li><a href="{{ "/tags/" | relURL }}{{ $name | urlize }}/">{{ $name }}</a></li> | |||||
{{ end}} | |||||
</ul> | |||||
{{ partial "footer" . }} |
@@ -0,0 +1,6 @@ | |||||
{{ partial "header" . }} | |||||
<style>body { background-color: black; color: white; }</style> | |||||
{{ partial "video" . }} | |||||
{{ .Content }} | |||||
{{ partial "postmeta" . }} | |||||
{{ partial "footer" . }} |
@@ -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%; | |||||
} | |||||
} |
@@ -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/" |