some changes to themes
This commit is contained in:
parent
26c526e433
commit
8237b6aa19
51 changed files with 852 additions and 12 deletions
6
themes/fzmin2/layouts/partials/foot_custom.html
Normal file
6
themes/fzmin2/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/fzmin2/layouts/partials/footer.html
Normal file
9
themes/fzmin2/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/fzmin2/layouts/partials/head_custom.html
Normal file
2
themes/fzmin2/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/fzmin2/layouts/partials/header.html
Normal file
21
themes/fzmin2/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