summaryrefslogtreecommitdiffstats
path: root/themes/tozt/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'themes/tozt/layouts')
-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
10 files changed, 72 insertions, 11 deletions
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>