add stuff & i dont really want to do this but i have no choice. testing in prod....
This commit is contained in:
parent
df2491f0c0
commit
73a51d5fbd
27 changed files with 311 additions and 19 deletions
5
themes/fzmin/layouts/404.html
Normal file
5
themes/fzmin/layouts/404.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
404 NOT FOUND
|
||||
|
||||
{{ partial "footer.html" . }}
|
20
themes/fzmin/layouts/_default/list.html
Normal file
20
themes/fzmin/layouts/_default/list.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
{{if not .IsHome }}
|
||||
<h1>{{ .Title | markdownify }}</h1>
|
||||
{{ end }}
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<ul>
|
||||
{{ $pages := .Pages }}
|
||||
{{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
|
||||
{{ range (where $pages "Section" "!=" "") }}
|
||||
<li>
|
||||
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ partial "footer.html" . }}
|
12
themes/fzmin/layouts/_default/single.html
Normal file
12
themes/fzmin/layouts/_default/single.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{{ partial "header.html" . }}
|
||||
<div class="article-meta">
|
||||
<h1><span class="title">{{ .Title | markdownify }}</span></h1>
|
||||
{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
|
||||
{{ if (gt .Params.date 0) }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
|
||||
</div>
|
||||
|
||||
<main>
|
||||
{{ .Content }}
|
||||
</main>
|
||||
|
||||
{{ partial "footer.html" . }}
|
13
themes/fzmin/layouts/_default/terms.html
Normal file
13
themes/fzmin/layouts/_default/terms.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<ul class="terms">
|
||||
{{ range .Data.Terms }}
|
||||
<li>
|
||||
<a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }})
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ partial "footer.html" . }}
|
6
themes/fzmin/layouts/partials/foot_custom.html
Normal file
6
themes/fzmin/layouts/partials/foot_custom.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<div>
|
||||
<select id="themes">
|
||||
</select>
|
||||
<button onclick="changetheme()">Change theme</button>
|
||||
</div>
|
||||
<div id="aaa"></div>
|
9
themes/fzmin/layouts/partials/footer.html
Normal file
9
themes/fzmin/layouts/partials/footer.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<footer>
|
||||
{{ partial "foot_custom.html" . }}
|
||||
{{ with .Site.Params.footer }}
|
||||
<hr/>
|
||||
{{ replace . "{Year}" now.Year | markdownify}}
|
||||
{{ end }}
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
2
themes/fzmin/layouts/partials/head_custom.html
Normal file
2
themes/fzmin/layouts/partials/head_custom.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<script defer src="/js/themes.js"></script>
|
||||
<link rel="stylesheet" href="/css/themes/default.css">
|
21
themes/fzmin/layouts/partials/header.html
Normal file
21
themes/fzmin/layouts/partials/header.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!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 }}" />
|
||||
{{ partial "head_custom.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav>
|
||||
<ul class="menu">
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
{{ range .Site.Menus.main }}
|
||||
<li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<hr/>
|
||||
</nav>
|
Loading…
Add table
Add a link
Reference in a new issue