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 {
|
||||
display: flex;
|
||||
}
|
||||
aside {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
footer {
|
||||
border-top: 1px solid var(--border);
|
||||
|
|
57
config.yaml
57
config.yaml
|
@ -1,15 +1,58 @@
|
|||
baseURL: https://vrifox.cc/
|
||||
languages:
|
||||
en:
|
||||
languageName: English
|
||||
languageCode: en-us
|
||||
weight: 1
|
||||
de:
|
||||
#contentDir: /content/de/
|
||||
languageName: Deutsch
|
||||
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
|
||||
title: "Vri's Cute Corner"
|
||||
enableRobotsTXT: true
|
||||
menu:
|
||||
name:
|
||||
- identifier: vrifox.cc
|
||||
|
@ -53,6 +96,8 @@ menu:
|
|||
title: source code
|
||||
url: https://code.cozy.town/vrifox/vrifox.cc
|
||||
weight: 5
|
||||
title: "Vri's Cute Corner"
|
||||
enableRobotsTXT: true
|
||||
markup:
|
||||
highlight:
|
||||
anchorLineNos: false
|
||||
|
|
|
@ -8,4 +8,11 @@
|
|||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{- end }}
|
||||
</nav>
|
||||
<aside>
|
||||
{{- if .IsTranslated }}
|
||||
{{- range .Translations }}
|
||||
<a href="{{ .Permalink }}">{{ .Lang }}</a>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</aside>
|
||||
</header>
|
||||
|
|
Loading…
Reference in a new issue