Readme.md update
This commit is contained in:
parent
07200cf8fd
commit
948fb6dafe
18
README.md
18
README.md
|
@ -101,20 +101,10 @@ git submodule update --remote --merge
|
||||||
|
|
||||||
## Run example site
|
## Run example site
|
||||||
|
|
||||||
1. Add this folder to your project static folder
|
From the root of themes/zen/exampleSite:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
root
|
hugo server --themesDir ../..
|
||||||
├── static
|
|
||||||
│ ├── gallery
|
|
||||||
│ │ ├── cartoon
|
|
||||||
│ │ ├── photo
|
|
||||||
```
|
|
||||||
|
|
||||||
2. From the root of your project, type this command:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
hugo server --contentDir themes/zzo/exampleSite/content
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
@ -362,13 +352,13 @@ config/_default/menus.ko.toml
|
||||||
[[main]]
|
[[main]]
|
||||||
identifier = "about"
|
identifier = "about"
|
||||||
name = "about"
|
name = "about"
|
||||||
url = "/ko/about/"
|
url = "/about/"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
|
||||||
[[main]]
|
[[main]]
|
||||||
identifier = "archive"
|
identifier = "archive"
|
||||||
name = "archive"
|
name = "archive"
|
||||||
url = "/ko/archive/"
|
url = "/archive/"
|
||||||
weight = 2
|
weight = 2
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
|
@ -24,9 +24,13 @@
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
{{ $defaultTheme := "" }}
|
||||||
|
{{ if .Site.Params.themeOptions }}
|
||||||
{{ $defaultTheme := (index .Site.Params.themeOptions 0) }}
|
{{ $defaultTheme := (index .Site.Params.themeOptions 0) }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var defaultTheme = JSON.parse({{ $defaultTheme | jsonify }});
|
var defaultTheme = JSON.parse({{ $defaultTheme | jsonify }}) || "dark";
|
||||||
var localTheme = localStorage.getItem('theme');
|
var localTheme = localStorage.getItem('theme');
|
||||||
|
|
||||||
if (localTheme) {
|
if (localTheme) {
|
||||||
|
|
|
@ -1,15 +1,21 @@
|
||||||
<label class="label p2">{{ i18n "footer-theme" }}</label>
|
<label class="label p2">{{ i18n "footer-theme" }}</label>
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="dropdown-trigger">
|
<button class="dropdown-trigger">
|
||||||
<span class="select-theme__label caption">{{ index .Site.Params.themeOptions 0 }}</span>
|
<span class="select-theme__label caption">
|
||||||
|
{{ if .Site.Params.themeOptions }}
|
||||||
|
{{ index .Site.Params.themeOptions 0 }}
|
||||||
|
{{ end }}
|
||||||
|
</span>
|
||||||
{{ partial "svgs/arrow/keyboard-arrow-up.svg" (dict "width" 20 "height" 20) }}
|
{{ partial "svgs/arrow/keyboard-arrow-up.svg" (dict "width" 20 "height" 20) }}
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-content select-theme">
|
<div class="dropdown-content select-theme">
|
||||||
|
{{ if .Site.Params.themeOptions }}
|
||||||
{{ range $index, $value := .Site.Params.themeOptions }}
|
{{ range $index, $value := .Site.Params.themeOptions }}
|
||||||
<a href="#" class="dropdown-item select-theme__item {{ if (eq $index 0) }}is-active{{ end }}">
|
<a href="#" class="dropdown-item select-theme__item {{ if (eq $index 0) }}is-active{{ end }}">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"css/zzo.min.53149702964847dc9344a6f01e5d88bbfd62abb1d2442a31d99f9e0ab2786482.css","MediaType":"text/css","Data":{"Integrity":"sha256-UxSXApZIR9yTRKbwHl2Iu/1iq7HSRCox2Z+eCrJ4ZII="}}
|
{"Target":"css/zzo.min.482b4a01de2708df3b4da421506778b1eed61d455ac41e74012b909fee94c6bc.css","MediaType":"text/css","Data":{"Integrity":"sha256-SCtKAd4nCN87TaQhUGd4se7WHUVaxB50ASuQn+6Uxrw="}}
|
Loading…
Reference in New Issue