This commit is contained in:
violette 2024-04-14 16:47:52 -04:00
parent 5f3755c20d
commit c9014304d2
36 changed files with 671 additions and 387 deletions

View file

@ -6,7 +6,7 @@
--text-pink-dark: #ed61e1;
--text-mauve-dark: #c282e0;
--text-pink-light: #ed61e1;
--text-pink-light: #9d5191;
--text-mauve-light: #c282e0;
--text-pink: blue;
@ -17,7 +17,7 @@
:root {
--bg:black;
--text:white;
--text-pink: var(--text-pink-dark);
--text-pink: var(--text-pink-light);
--text-mauve: var(--text-mauve-dark);
}

View file

@ -1,23 +0,0 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
[[menus.main]]
name = 'Home'
pageRef = '/'
weight = 10
[[menus.main]]
name = 'Posts'
pageRef = '/posts'
weight = 20
[[menus.main]]
name = 'Tags'
pageRef = '/tags'
weight = 30
[module]
[module.hugoVersion]
extended = false
min = "0.116.0"

View file

@ -0,0 +1,23 @@
baseURL = 'https://bigblase.xyz'
title = "Violette's cozy corner"
theme = "violette"
defaultContentLanguage = 'en'
defaultContentLanguageInSubdir = true
[languages]
[languages.fr]
contentDir = 'content/fr'
disabled = false
languageCode = 'fr-FR'
languageDirection = 'ltr'
languageName = 'Français'
title = 'Le Coin de Violette'
weight = 1
[languages.en]
contentDir = 'content/en'
disabled = false
languageCode = 'en-US'
languageDirection = 'ltr'
languageName = 'English'
title = "Violette's cozy corner"
weight = 2

View file

@ -1,4 +1,4 @@
<div class="footer">
<p>Take care, drink your water ! </p>
<p> {{ i18n "footer" }}</p>
<img src="/neocat_hug_heart.png" width="32">
</div>

View file

@ -2,9 +2,9 @@
<meta name="viewport" content="width=device-width">
<title>
{{ if .IsHome }}
Vi's corner
{{ .Title }}
{{ else }}
{{ printf "%s | " .Title }}Vi's Corner
{{ printf "%s | " .Title }}
{{ end }}
</title>

View file

@ -21,7 +21,8 @@ Renders a menu for the given menu ID.
{{- define "partials/inline/menu/walk.html" }}
{{- $page := .page }}
{{- range .menuEntries }}
{{- $attrs := dict "href" .URL }}
{{- $href := relLangURL .URL }}
{{- $attrs := dict "href" $href }}
{{- if $page.IsMenuCurrent .Menu . }}
{{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }}
{{- else if $page.HasMenuCurrent .Menu .}}
@ -50,7 +51,12 @@ Renders a menu for the given menu ID.
{{- end }}
<li class="nav-right">
<span class="toggle-dark">{{- partial "partials/darkModeToggle.html" }}</span>
<span class="toggle-dark">
<label for="color-mode"> {{ i18n "dark-mode" }}</label>
</span>
<span class="toggle-language">
<a href={{ i18n "language-switch" }}> {{ i18n "language" }}
</span>
<span class="empty-space-menu"></span>
</li>
{{- end }}