feat(content): set navbar in the locales.

This commit is contained in:
elweyn 2023-11-29 21:37:47 +01:00
parent 98c60e6d77
commit 68996cea70
3 changed files with 51 additions and 23 deletions

View File

@ -11,24 +11,56 @@ export default hopeTheme({
contributors: false, contributors: false,
displayFooter: true, displayFooter: true,
print: false, print: false,
copyright: '&copy; by <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Authors | <a href="/impressum/">Impressum</a>', locales:{
footer: 'Released under the <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT License<!--]--><!----></a>.', // The key is the path for the locale to be nested under.
navbar: [ // As a special case, the default locale can use '/' as its path.
{ '/en/': {
text: 'Documentation', link: 'https://docs.ocelot.social/' lang: 'en-US', // this will be set as the lang attribute on <html>
title: 'Ocelot.Social',
// description: ''
copyright: '&copy; by <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Authors | <a href="/impressum/">Impressum</a>',
footer: 'Released under the <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT License<!--]--><!----></a>.',
navbar: [
{
text: 'Documentation', link: 'https://docs.ocelot.social/'
},
{
text: 'Demo', link: 'https://stage.ocelot.social/'
},
{
text: 'Github',
link: 'https://github.com/Ocelot-Social-Community'
},
{
text: 'Imprint',
link: '/impressum/'
},
],
}, },
{ '/': {
text: 'Demo', link: 'https://stage.ocelot.social/' lang: 'de-DE',
}, title: 'Ocelot.Social',
{ // description: ''
text: 'Github', copyright: '&copy; von <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Authoren | <a href="/impressum/">Impressum</a>',
link: 'https://github.com/Ocelot-Social-Community' footer: 'Unter der <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT License<!--]--><!----></a> ausgeliefert.',
}, navbar: [
{ {
text: 'Impressum', text: 'Documentation', link: 'https://docs.ocelot.social/'
link: '/impressum/' },
}, {
], text: 'Demo', link: 'https://stage.ocelot.social/'
},
{
text: 'Github',
link: 'https://github.com/Ocelot-Social-Community'
},
{
text: 'Impressum',
link: '/impressum/'
},
],
}
},
plugins: { plugins: {
mdEnhance: { mdEnhance: {
align: true, align: true,

View File

@ -3,9 +3,7 @@ home: false
# layout: BlogHome # layout: BlogHome
icon: home icon: home
title: Imprint | Ocelot.Social title: Imprint | Ocelot.Social
heroFullScreen: false sidebar: false
heroImage: /logo.svg
heroText: Free and open-source social network for active citizenship.
tagLine: tagLine:
# actions: # actions:
# - text: Demo # - text: Demo

View File

@ -3,9 +3,7 @@ home: false
# layout: BlogHome # layout: BlogHome
icon: home icon: home
title: Impressum | Ocelot.Social title: Impressum | Ocelot.Social
heroFullScreen: false sidebar: false
heroImage: /logo.svg
heroText: Free and open-source social network for active citizenship.
tagLine: tagLine:
# actions: # actions:
# - text: Demo # - text: Demo