about summary refs log tree commit diff stats
path: root/themes/xmin/layouts
diff options
context:
space:
mode:
authorAlan Pearce2020-11-14 21:17:02 +0100
committerAlan Pearce2020-11-14 21:52:50 +0100
commit5de7de4e64cb20183ebfe86e16578f4abd62a23e (patch)
treed3e24ee322d24c03a5e6563ace11c1c588881368 /themes/xmin/layouts
parentd996657be5efda94f4a934d5d78c407ba47bf76c (diff)
downloadwebsite-5de7de4e64cb20183ebfe86e16578f4abd62a23e.tar.xz
website-5de7de4e64cb20183ebfe86e16578f4abd62a23e.zip
Port theme to zola template
Diffstat (limited to 'themes/xmin/layouts')
-rw-r--r--themes/xmin/layouts/404.html5
-rw-r--r--themes/xmin/layouts/_default/baseof.html31
-rw-r--r--themes/xmin/layouts/_default/list.html23
-rw-r--r--themes/xmin/layouts/_default/single.html19
-rw-r--r--themes/xmin/layouts/_default/terms.html13
-rw-r--r--themes/xmin/layouts/partials/foot_custom.html0
-rw-r--r--themes/xmin/layouts/partials/footer.html9
-rw-r--r--themes/xmin/layouts/partials/head_custom.html0
-rw-r--r--themes/xmin/layouts/partials/header.html19
9 files changed, 0 insertions, 119 deletions
diff --git a/themes/xmin/layouts/404.html b/themes/xmin/layouts/404.html deleted file mode 100644 index 2f77920..0000000 --- a/themes/xmin/layouts/404.html +++ /dev/null
@@ -1,5 +0,0 @@
1{{ define "main" }}
2
3404 Not Found
4
5{{- end }}
diff --git a/themes/xmin/layouts/_default/baseof.html b/themes/xmin/layouts/_default/baseof.html deleted file mode 100644 index f934ea8..0000000 --- a/themes/xmin/layouts/_default/baseof.html +++ /dev/null
@@ -1,31 +0,0 @@
1<!DOCTYPE html>
2<html lang="{{ .Site.LanguageCode }}" {{- if .Page.IsNode }} class="h-feed"{{ end }}>
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title {{- if .Page.IsNode }} class="p-name"{{ end }}>{{ .Title }} | {{ .Site.Title }}</title>
7 <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" />
8 {{- range .AlternativeOutputFormats }}
9 {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }}
10 {{- end }}
11 </head>
12
13 <body>
14 <nav>
15 <ul>
16 {{- range .Site.Menus.main }}
17 <li><a {{- if eq .URL "/" }} class="author"{{ end }} href="{{ .URL | relURL }}">{{ .Name }}</a></li>
18 {{- end }}
19 </ul>
20 </nav>
21
22 {{ block "main" . }}
23 {{ end }}
24
25 <footer>
26 {{- with .Site.Params.footer }}
27 {{ . | markdownify }}
28 {{- end }}
29 </footer>
30 </body>
31</html>
diff --git a/themes/xmin/layouts/_default/list.html b/themes/xmin/layouts/_default/list.html deleted file mode 100644 index 6780bba..0000000 --- a/themes/xmin/layouts/_default/list.html +++ /dev/null
@@ -1,23 +0,0 @@
1{{ define "main" }}
2
3{{ if not .IsHome }}
4<h1>{{ .Title | markdownify }}</h1>
5{{ else }}
6<h1>{{ .Site.Title | markdownify }}</h1>
7{{ end }}
8
9
10{{ .Content }}
11
12<ul>
13 {{ $pages := .Pages }}
14 {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
15 {{ range (where $pages "Section" "!=" "") }}
16 <li class="h-entry">
17 <span class="date dt-published">{{ .Date.Format "2006-01-02" }}</span>
18 <a class="u-url p-name" href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
19 </li>
20 {{ end }}
21</ul>
22
23{{- end }}
diff --git a/themes/xmin/layouts/_default/single.html b/themes/xmin/layouts/_default/single.html deleted file mode 100644 index b69ed7c..0000000 --- a/themes/xmin/layouts/_default/single.html +++ /dev/null
@@ -1,19 +0,0 @@
1{{ define "main" }}
2<article class="h-entry">
3 <header>
4 <h1><span class="title p-name">{{ .Title | markdownify }}</span></h1>
5 {{ if (gt .Params.date 0) }}<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
6 <p class="terms">
7 {{- range $i := (slice "categories" "tags") }}
8 {{- with ($.Param $i) }}
9 {{ $i | title }}: {{ range $k := . }}<a class="p-category" href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}
10 {{- end }}
11 {{- end }}
12 </p>
13 </header>
14
15 <div class="e-content">
16 {{ .Content }}
17 </div>
18</article>
19{{- end }}
diff --git a/themes/xmin/layouts/_default/terms.html b/themes/xmin/layouts/_default/terms.html deleted file mode 100644 index 15de7a9..0000000 --- a/themes/xmin/layouts/_default/terms.html +++ /dev/null
@@ -1,13 +0,0 @@
1{{ define "main" }}
2
3<h1>{{ .Title }}</h1>
4
5<ul class="terms">
6 {{ range .Data.Terms }}
7 <li>
8 <a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }})
9 </li>
10 {{ end }}
11</ul>
12
13{{- end }}
diff --git a/themes/xmin/layouts/partials/foot_custom.html b/themes/xmin/layouts/partials/foot_custom.html deleted file mode 100644 index e69de29..0000000 --- a/themes/xmin/layouts/partials/foot_custom.html +++ /dev/null
diff --git a/themes/xmin/layouts/partials/footer.html b/themes/xmin/layouts/partials/footer.html deleted file mode 100644 index 3f46ea5..0000000 --- a/themes/xmin/layouts/partials/footer.html +++ /dev/null
@@ -1,9 +0,0 @@
1 <footer>
2 {{ partial "foot_custom.html" . }}
3 {{ with .Site.Params.footer }}
4 <hr/>
5 {{ . | markdownify }}
6 {{ end }}
7 </footer>
8 </body>
9</html>
diff --git a/themes/xmin/layouts/partials/head_custom.html b/themes/xmin/layouts/partials/head_custom.html deleted file mode 100644 index e69de29..0000000 --- a/themes/xmin/layouts/partials/head_custom.html +++ /dev/null
diff --git a/themes/xmin/layouts/partials/header.html b/themes/xmin/layouts/partials/header.html deleted file mode 100644 index b3dbf64..0000000 --- a/themes/xmin/layouts/partials/header.html +++ /dev/null
@@ -1,19 +0,0 @@
1<!DOCTYPE html>
2<html lang="{{ .Site.LanguageCode }}">
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title>{{ .Title }} | {{ .Site.Title }}</title>
7 <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" />
8 {{ partial "head_custom.html" . }}
9 </head>
10
11 <body>
12 <nav>
13 <ul class="menu">
14 {{ range .Site.Menus.main }}
15 <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
16 {{ end }}
17 </ul>
18 <hr/>
19 </nav>