From aa403b978860210fcbace7fcdf5830066f3e14e0 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 13 Oct 2018 02:17:44 -0400 Subject: import site content --- themes/tozt/LICENSE | 2 +- themes/tozt/README | 1 + themes/tozt/archetypes/default.md | 2 -- themes/tozt/layouts/404.html | 5 +++ themes/tozt/layouts/_default/baseof.html | 11 ------- themes/tozt/layouts/_default/list.html | 0 themes/tozt/layouts/_default/single.html | 9 +++++ themes/tozt/layouts/blog/list.html | 14 ++++++++ themes/tozt/layouts/blog/single.html | 10 ++++++ themes/tozt/layouts/index.html | 7 ++++ themes/tozt/layouts/partials/footer.html | 7 ++++ themes/tozt/layouts/partials/head.html | 0 themes/tozt/layouts/partials/header.html | 20 ++++++++++++ themes/tozt/static/css/fonts.css | 7 ++++ themes/tozt/static/css/style.css | 56 ++++++++++++++++++++++++++++++++ themes/tozt/theme.toml | 27 +++++---------- 16 files changed, 146 insertions(+), 32 deletions(-) create mode 100644 themes/tozt/README delete mode 100644 themes/tozt/archetypes/default.md delete mode 100644 themes/tozt/layouts/_default/baseof.html delete mode 100644 themes/tozt/layouts/_default/list.html create mode 100644 themes/tozt/layouts/blog/list.html create mode 100644 themes/tozt/layouts/blog/single.html delete mode 100644 themes/tozt/layouts/partials/head.html create mode 100644 themes/tozt/static/css/fonts.css create mode 100644 themes/tozt/static/css/style.css (limited to 'themes') 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 @@ - - - {{- partial "head.html" . -}} - - {{- partial "header.html" . -}} -
- {{- block "main" . }}{{- end }} -
- {{- partial "footer.html" . -}} - - diff --git a/themes/tozt/layouts/_default/list.html b/themes/tozt/layouts/_default/list.html deleted file mode 100644 index e69de29..0000000 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" . }} + +

{{ .Title }}

+ +
+{{ .Content }} +
+ +{{ 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 }} + + + +{{ 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" . }} + +

{{ .Title }}

+

{{ .Date.Format "Mon, Jan 2, 2006" }}

+ +
+{{ .Content }} +
+ +{{ 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" . }} + +
+{{ .Content }} +
+ +{{ 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 @@ + + + diff --git a/themes/tozt/layouts/partials/head.html b/themes/tozt/layouts/partials/head.html deleted file mode 100644 index e69de29..0000000 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 @@ + + + + + + {{ .Title }} | {{ .Site.Title }} + + + + + +

{{ .Site.Title | markdownify }}

+ 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" -- cgit v1.2.3-54-g00ecf