From 33fb7cb34c2f1fd159ee17875df0fc64f7218152 Mon Sep 17 00:00:00 2001 From: Vri Date: Tue, 29 Nov 2022 15:20:52 +0100 Subject: [PATCH] [wip] website redesign I have to work on splitting commits in the future. ^^ --- config.yaml | 38 ------------------- config/_default/config.yaml | 17 +++++++++ config/_default/languages.yaml | 6 +++ config/_default/menu.yaml | 21 ++++++++++ content/{_index.md => _index.de.md} | 1 + content/_index.en.md | 4 ++ content/blog/firefox-dark-mode/index.de.md | 26 +++++++++++++ .../index.en.md} | 1 + i18n/en.yaml | 6 +++ layouts/partials/nav.html | 8 ++-- 10 files changed, 86 insertions(+), 42 deletions(-) delete mode 100644 config.yaml create mode 100644 config/_default/config.yaml create mode 100644 config/_default/languages.yaml create mode 100644 config/_default/menu.yaml rename content/{_index.md => _index.de.md} (79%) create mode 100644 content/_index.en.md create mode 100644 content/blog/firefox-dark-mode/index.de.md rename content/blog/{firefox-dark-mode.md => firefox-dark-mode/index.en.md} (96%) create mode 100644 i18n/en.yaml diff --git a/config.yaml b/config.yaml deleted file mode 100644 index 4340f10..0000000 --- a/config.yaml +++ /dev/null @@ -1,38 +0,0 @@ -baseURL: "https://vrifox.cc/" -title: "Vris Cute Corner" -enableRobotsTXT: true -menu: - main: - - identifier: "home" - name: "Startseite" - pageref: "/" - weight: 1 - - identifier: "skills" - name: "Kenntnisse" - pageref: "/kenntnisse/" - weight: 2 - - identifier: "projects" - name: "Projekte" - pageref: "/portfolio/" - weight: 3 - - identifier: "blog" - name: "Blog" - pageref: "/blog/" - weight: 4 - #- identifier: "blogroll" - # name: "Empfehlungen" - # pageref: "/blogroll/" - # weight: 5 -markup: - highlight: - anchorLineNos: false - lineNos: false - lineNumbersInTable: false - noClasses: false - style: "dracula" - tabWidth: 4 - goldmark: - extensions: - linkify: false - renderer: - unsafe: true \ No newline at end of file diff --git a/config/_default/config.yaml b/config/_default/config.yaml new file mode 100644 index 0000000..524efbb --- /dev/null +++ b/config/_default/config.yaml @@ -0,0 +1,17 @@ +baseURL: "https://vrifox.cc/" +title: "Vris Cute Corner" +enableRobotsTXT: true +defaultContentLanguage: de +markup: + highlight: + anchorLineNos: false + lineNos: false + lineNumbersInTable: false + noClasses: false + style: "dracula" + tabWidth: 4 + goldmark: + extensions: + linkify: false + renderer: + unsafe: true \ No newline at end of file diff --git a/config/_default/languages.yaml b/config/_default/languages.yaml new file mode 100644 index 0000000..e7c1f7e --- /dev/null +++ b/config/_default/languages.yaml @@ -0,0 +1,6 @@ +de: + languageName: Deutsch + weight: 1 +en: + languageName: English + weight: 2 \ No newline at end of file diff --git a/config/_default/menu.yaml b/config/_default/menu.yaml new file mode 100644 index 0000000..ec3d640 --- /dev/null +++ b/config/_default/menu.yaml @@ -0,0 +1,21 @@ +main: + - identifier: "home" + name: "Start" + pageref: "/" + weight: 1 +# - identifier: "skills" +# name: "Kenntnisse" +# pageref: "/kenntnisse/" +# weight: 2 + - identifier: "projects" + name: "Projekte" + pageref: "/portfolio/" + weight: 3 + - identifier: "blog" + name: "Blog" + pageref: "/blog/" + weight: 4 +# - identifier: "blogroll" +# name: "Empfehlungen" +# pageref: "/blogroll/" +# weight: 5 \ No newline at end of file diff --git a/content/_index.md b/content/_index.de.md similarity index 79% rename from content/_index.md rename to content/_index.de.md index d1356ae..447d6df 100644 --- a/content/_index.md +++ b/content/_index.de.md @@ -1,3 +1,4 @@ --- title: "Hola 🖖" --- +Deutsch \ No newline at end of file diff --git a/content/_index.en.md b/content/_index.en.md new file mode 100644 index 0000000..18f7f5f --- /dev/null +++ b/content/_index.en.md @@ -0,0 +1,4 @@ +--- +title: "Holahe 🖖" +--- +English \ No newline at end of file diff --git a/content/blog/firefox-dark-mode/index.de.md b/content/blog/firefox-dark-mode/index.de.md new file mode 100644 index 0000000..73004c7 --- /dev/null +++ b/content/blog/firefox-dark-mode/index.de.md @@ -0,0 +1,26 @@ +--- +title: "Firefox im Dark-Mode" +author: "" +date: 2021-05-15T11:54:53+02:00 +categories: +tags: + +draft: false +type: "post" +description: "" +slug: firefox-im-dark-mode +--- + +This is how to enable the dark mode for all compatible websites in your Firefox. + +## Firefox Config + +To enable the Firefox Dark Mode open your Firefox' [about:config](https://support.mozilla.org/en-US/kb/about-config-editor-firefox) and add a **new** boolean `ui.systemUsesDarkTheme` and set it to `1`. + +## Debugging + +For debugging purposes you can switch between dark and light mode using the *Inspector* (right-click > Inspect): + +![Firefox' Inspector dark and light mode](/upload/2021-05-15%20Firefox%20Inspector%20Dark%20Light%20Mode.png) + +You can test this right here on my website 🙂 diff --git a/content/blog/firefox-dark-mode.md b/content/blog/firefox-dark-mode/index.en.md similarity index 96% rename from content/blog/firefox-dark-mode.md rename to content/blog/firefox-dark-mode/index.en.md index 462422a..47e7798 100644 --- a/content/blog/firefox-dark-mode.md +++ b/content/blog/firefox-dark-mode/index.en.md @@ -8,6 +8,7 @@ tags: draft: false type: "post" description: "" +slug: firefox-dark-mode --- This is how to enable the dark mode for all compatible websites in your Firefox. diff --git a/i18n/en.yaml b/i18n/en.yaml new file mode 100644 index 0000000..af78af3 --- /dev/null +++ b/i18n/en.yaml @@ -0,0 +1,6 @@ +home: + other: Home +projects: + other: Projects +blog: + other: Blog \ No newline at end of file diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 052e4fe..a47e116 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -18,11 +18,11 @@ {{- end }} - {{/*- if .IsTranslated */}} + {{- if .Site.IsMultiLingual }} - {{/*- end */}} + {{- end }}