summaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-10-13 02:17:44 -0400
committerJesse Luehrs <doy@tozt.net>2018-10-13 02:37:01 -0400
commitaa403b978860210fcbace7fcdf5830066f3e14e0 (patch)
tree0d8cf5a8855765ec2d83a865a12814d3b04454e7 /themes
parentecd7793846441ba90b57140db19474f295f3e6d7 (diff)
downloadtozt-hugo-aa403b978860210fcbace7fcdf5830066f3e14e0.tar.gz
tozt-hugo-aa403b978860210fcbace7fcdf5830066f3e14e0.zip
import site content
Diffstat (limited to 'themes')
-rw-r--r--themes/tozt/LICENSE2
-rw-r--r--themes/tozt/README1
-rw-r--r--themes/tozt/archetypes/default.md2
-rw-r--r--themes/tozt/layouts/404.html5
-rw-r--r--themes/tozt/layouts/_default/baseof.html11
-rw-r--r--themes/tozt/layouts/_default/list.html0
-rw-r--r--themes/tozt/layouts/_default/single.html9
-rw-r--r--themes/tozt/layouts/blog/list.html14
-rw-r--r--themes/tozt/layouts/blog/single.html10
-rw-r--r--themes/tozt/layouts/index.html7
-rw-r--r--themes/tozt/layouts/partials/footer.html7
-rw-r--r--themes/tozt/layouts/partials/head.html0
-rw-r--r--themes/tozt/layouts/partials/header.html20
-rw-r--r--themes/tozt/static/css/fonts.css7
-rw-r--r--themes/tozt/static/css/style.css56
-rw-r--r--themes/tozt/theme.toml27
16 files changed, 146 insertions, 32 deletions
diff --git a/themes/tozt/LICENSE b/themes/tozt/LICENSE
index 624b3f3..0098881 100644
--- a/themes/tozt/LICENSE
+++ b/themes/tozt/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2018 YOUR_NAME_HERE
+Copyright (c) 2017 Yihui Xie, Jesse Luehrs
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
diff --git a/themes/tozt/README b/themes/tozt/README
new file mode 100644
index 0000000..b064e13
--- /dev/null
+++ b/themes/tozt/README
@@ -0,0 +1 @@
+based on https://github.com/yihui/hugo-xmin
diff --git a/themes/tozt/archetypes/default.md b/themes/tozt/archetypes/default.md
deleted file mode 100644
index ac36e06..0000000
--- a/themes/tozt/archetypes/default.md
+++ /dev/null
@@ -1,2 +0,0 @@
-+++
-+++
diff --git a/themes/tozt/layouts/404.html b/themes/tozt/layouts/404.html
index e69de29..c2e4e40 100644
--- a/themes/tozt/layouts/404.html
+++ b/themes/tozt/layouts/404.html
@@ -0,0 +1,5 @@
+{{ partial "header.html" . }}
+
+404 NOT FOUND
+
+{{ partial "footer.html" . }}
diff --git a/themes/tozt/layouts/_default/baseof.html b/themes/tozt/layouts/_default/baseof.html
deleted file mode 100644
index 5f8e2ec..0000000
--- a/themes/tozt/layouts/_default/baseof.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html>
- {{- partial "head.html" . -}}
- <body>
- {{- partial "header.html" . -}}
- <div id="content">
- {{- block "main" . }}{{- end }}
- </div>
- {{- partial "footer.html" . -}}
- </body>
-</html>
diff --git a/themes/tozt/layouts/_default/list.html b/themes/tozt/layouts/_default/list.html
deleted file mode 100644
index e69de29..0000000
--- a/themes/tozt/layouts/_default/list.html
+++ /dev/null
diff --git a/themes/tozt/layouts/_default/single.html b/themes/tozt/layouts/_default/single.html
index e69de29..9e2cd9a 100644
--- a/themes/tozt/layouts/_default/single.html
+++ b/themes/tozt/layouts/_default/single.html
@@ -0,0 +1,9 @@
+{{ partial "header.html" . }}
+
+<h2>{{ .Title }}</h2>
+
+<main>
+{{ .Content }}
+</main>
+
+{{ partial "footer.html" . }}
diff --git a/themes/tozt/layouts/blog/list.html b/themes/tozt/layouts/blog/list.html
new file mode 100644
index 0000000..9483571
--- /dev/null
+++ b/themes/tozt/layouts/blog/list.html
@@ -0,0 +1,14 @@
+{{ partial "header.html" . }}
+
+{{ .Content }}
+
+<ul>
+ {{ range (where .Data.Pages "Section" "!=" "") }}
+ <li>
+ <span class="date">{{ .Date.Format "2006/01/02" }}</span>
+ <a href="{{ .URL }}">{{ .Title | markdownify }}</a>
+ </li>
+ {{ end }}
+</ul>
+
+{{ partial "footer.html" . }}
diff --git a/themes/tozt/layouts/blog/single.html b/themes/tozt/layouts/blog/single.html
new file mode 100644
index 0000000..762678e
--- /dev/null
+++ b/themes/tozt/layouts/blog/single.html
@@ -0,0 +1,10 @@
+{{ partial "header.html" . }}
+
+<h2>{{ .Title }}</h2>
+<h3>{{ .Date.Format "Mon, Jan 2, 2006" }}</h3>
+
+<main>
+{{ .Content }}
+</main>
+
+{{ partial "footer.html" . }}
diff --git a/themes/tozt/layouts/index.html b/themes/tozt/layouts/index.html
index e69de29..5ea7912 100644
--- a/themes/tozt/layouts/index.html
+++ b/themes/tozt/layouts/index.html
@@ -0,0 +1,7 @@
+{{ partial "header.html" . }}
+
+<main>
+{{ .Content }}
+</main>
+
+{{ partial "footer.html" . }}
diff --git a/themes/tozt/layouts/partials/footer.html b/themes/tozt/layouts/partials/footer.html
index e69de29..6a2722e 100644
--- a/themes/tozt/layouts/partials/footer.html
+++ b/themes/tozt/layouts/partials/footer.html
@@ -0,0 +1,7 @@
+ <footer>
+ <div class="lastmod">
+ Last modified {{ .Lastmod }}
+ </div>
+ </footer>
+ </body>
+</html>
diff --git a/themes/tozt/layouts/partials/head.html b/themes/tozt/layouts/partials/head.html
deleted file mode 100644
index e69de29..0000000
--- a/themes/tozt/layouts/partials/head.html
+++ /dev/null
diff --git a/themes/tozt/layouts/partials/header.html b/themes/tozt/layouts/partials/header.html
index e69de29..11a00f3 100644
--- a/themes/tozt/layouts/partials/header.html
+++ b/themes/tozt/layouts/partials/header.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode }}">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>{{ .Title }} | {{ .Site.Title }}</title>
+ <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" />
+ <link rel="stylesheet" href="{{ "/css/fonts.css" | relURL }}" />
+ </head>
+
+ <body>
+ <h1><span class="title">{{ .Site.Title | markdownify }}</span></h1>
+ <nav>
+ <ul class="menu">
+ {{ range .Site.Menus.main }}
+ <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
+ {{ end }}
+ </ul>
+ <hr/>
+ </nav>
diff --git a/themes/tozt/static/css/fonts.css b/themes/tozt/static/css/fonts.css
new file mode 100644
index 0000000..8ffcecd
--- /dev/null
+++ b/themes/tozt/static/css/fonts.css
@@ -0,0 +1,7 @@
+body {
+ font-family: Optima, Candara, Calibri, Arial, sans-serif;
+}
+code {
+ font-family: "Lucida Console", Monaco, monospace;
+ font-size: 85%;
+}
diff --git a/themes/tozt/static/css/style.css b/themes/tozt/static/css/style.css
new file mode 100644
index 0000000..5fc24c6
--- /dev/null
+++ b/themes/tozt/static/css/style.css
@@ -0,0 +1,56 @@
+body {
+ max-width: 800px;
+ margin: auto;
+ padding: 1em;
+ line-height: 1.5em;
+}
+
+/* header and footer areas */
+.menu { padding: 0; }
+.menu li { display: inline-block; }
+.article-meta, .menu a {
+ text-decoration: none;
+ background: #eee;
+ padding: 5px;
+ border-radius: 5px;
+}
+.menu, .article-meta, footer { text-align: center; }
+.title { font-size: 1.1em; }
+footer a { text-decoration: none; }
+hr {
+ border-style: dashed;
+ color: #ddd;
+}
+
+/* code */
+pre {
+ border: 1px solid #ddd;
+ box-shadow: 5px 5px 5px #eee;
+ padding: 1em;
+ overflow-x: auto;
+}
+code { background: #f9f9f9; }
+pre code { background: none; }
+
+/* misc elements */
+img, iframe, video { max-width: 100%; }
+main { hyphens: auto; }
+blockquote {
+ background: #f9f9f9;
+ border-left: 5px solid #ccc;
+ padding: 3px 1em 3px;
+}
+
+table {
+ margin: auto;
+ border-top: 1px solid #666;
+ border-bottom: 1px solid #666;
+}
+table thead th { border-bottom: 1px solid #ddd; }
+th, td { padding: 5px; }
+thead, tfoot, tr:nth-child(even) { background: #eee }
+
+.lastmod {
+ font-size: smaller;
+ font-style: italic;
+}
diff --git a/themes/tozt/theme.toml b/themes/tozt/theme.toml
index fcd60cf..8733afd 100644
--- a/themes/tozt/theme.toml
+++ b/themes/tozt/theme.toml
@@ -1,21 +1,12 @@
-# theme.toml template for a Hugo theme
-# See https://github.com/gohugoio/hugoThemes#themetoml for an example
-
-name = "Tozt"
+name = "XMin"
license = "MIT"
-licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
-description = ""
-homepage = "http://example.com/"
-tags = []
-features = []
-min_version = "0.41"
+licenselink = "https://github.com/yihui/hugo-xmin/blob/master/LICENSE.md"
+description = "eXtremely Minimal Hugo theme: about 150 lines of code in total, including HTML and CSS"
+homepage = "https://xmin.yihui.name"
+tags = ["minimal", "blog", "personal", "clean", "simple", "starter", "minimalist"]
+features = ["blog"]
+min_version = "0.18"
[author]
- name = ""
- homepage = ""
-
-# If porting an existing theme
-[original]
- name = ""
- homepage = ""
- repo = ""
+ name = "Yihui Xie"
+ homepage = "https://yihui.name"