Added a language menu
This commit is contained in:
parent
6193b2112e
commit
4d1437ea02
3 changed files with 102 additions and 47 deletions
|
@ -109,6 +109,9 @@ header {
|
||||||
nav {
|
nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
aside {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
footer {
|
footer {
|
||||||
border-top: 1px solid var(--border);
|
border-top: 1px solid var(--border);
|
||||||
|
|
57
config.yaml
57
config.yaml
|
@ -1,15 +1,58 @@
|
||||||
baseURL: https://vrifox.cc/
|
baseURL: https://vrifox.cc/
|
||||||
languages:
|
languages:
|
||||||
en:
|
|
||||||
languageName: English
|
|
||||||
languageCode: en-us
|
|
||||||
weight: 1
|
|
||||||
de:
|
de:
|
||||||
|
#contentDir: /content/de/
|
||||||
languageName: Deutsch
|
languageName: Deutsch
|
||||||
languageCode: de-de
|
languageCode: de-de
|
||||||
|
title: DE
|
||||||
|
weight: 1
|
||||||
|
menu:
|
||||||
|
name:
|
||||||
|
- identifier: vrifox.cc
|
||||||
|
name: VrifoxCC
|
||||||
|
title: vrifox.cc
|
||||||
|
url: /
|
||||||
|
weight: 1
|
||||||
|
main:
|
||||||
|
- identifier: blog
|
||||||
|
name: Blog
|
||||||
|
title: blog
|
||||||
|
url: /blog/
|
||||||
|
weight: 2
|
||||||
|
- identifier: blogroll
|
||||||
|
name: Blogroll
|
||||||
|
title: blogroll
|
||||||
|
url: /blogroll/
|
||||||
|
weight: 3
|
||||||
|
- identifier: library
|
||||||
|
name: Bibliothek
|
||||||
|
url: /library/
|
||||||
|
weight: 4
|
||||||
|
- identifier: projects
|
||||||
|
name: Projekte
|
||||||
|
title: projects
|
||||||
|
url: /projects/
|
||||||
|
weight: 5
|
||||||
|
footer:
|
||||||
|
- identifier: privacy
|
||||||
|
name: Privacy
|
||||||
|
title: privacy
|
||||||
|
url: /privacy/
|
||||||
|
weight: 3
|
||||||
|
- identifier: feed
|
||||||
|
name: Feed (RSS)
|
||||||
|
title: rss-feed
|
||||||
|
url: /blog/index.xml
|
||||||
|
weight: 4
|
||||||
|
- identifier: sourcecode
|
||||||
|
name: Source Code
|
||||||
|
title: source code
|
||||||
|
url: https://code.cozy.town/vrifox/vrifox.cc
|
||||||
|
weight: 5
|
||||||
|
en:
|
||||||
|
languageName: English
|
||||||
|
languageCode: en-
|
||||||
weight: 2
|
weight: 2
|
||||||
title: "Vri's Cute Corner"
|
|
||||||
enableRobotsTXT: true
|
|
||||||
menu:
|
menu:
|
||||||
name:
|
name:
|
||||||
- identifier: vrifox.cc
|
- identifier: vrifox.cc
|
||||||
|
@ -53,6 +96,8 @@ menu:
|
||||||
title: source code
|
title: source code
|
||||||
url: https://code.cozy.town/vrifox/vrifox.cc
|
url: https://code.cozy.town/vrifox/vrifox.cc
|
||||||
weight: 5
|
weight: 5
|
||||||
|
title: "Vri's Cute Corner"
|
||||||
|
enableRobotsTXT: true
|
||||||
markup:
|
markup:
|
||||||
highlight:
|
highlight:
|
||||||
anchorLineNos: false
|
anchorLineNos: false
|
||||||
|
|
|
@ -8,4 +8,11 @@
|
||||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
<aside>
|
||||||
|
{{- if .IsTranslated }}
|
||||||
|
{{- range .Translations }}
|
||||||
|
<a href="{{ .Permalink }}">{{ .Lang }}</a>
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
</aside>
|
||||||
</header>
|
</header>
|
||||||
|
|
Loading…
Reference in a new issue