feat(wishlist): french and english version

This commit is contained in:
Hugo Poissonnet 2023-12-08 11:02:45 +01:00
parent 1d610da42d
commit 409cba27a5
No known key found for this signature in database
GPG Key ID: E581734975D3836F
6 changed files with 85 additions and 4 deletions

View File

@ -1,6 +1,6 @@
baseURL = 'https://blog.hugopoi.net/v2/' baseURL = 'https://blog.hugopoi.net/v2/'
publishdir = '../www/v2' publishdir = '../www/v2'
languageCode = 'en-us' languageCode = 'en-US'
defaultLanguageContent = 'en' defaultLanguageContent = 'en'
title = 'HugoPoi Blog' title = 'HugoPoi Blog'
theme = 'cupper-hugo-theme' theme = 'cupper-hugo-theme'
@ -9,6 +9,23 @@ theme = 'cupper-hugo-theme'
# disqusShortname: yourdiscussshortname # disqusShortname: yourdiscussshortname
enableGitInfo = true enableGitInfo = true
[languages]
[languages.en]
disabled = false
languageCode = 'en-US'
languageDirection = 'ltr'
languageName = 'English'
languageFlag = '🇺🇸'
weight = 0
[languages.fr]
disabled = false
languageCode = 'fr-FR'
languageDirection = 'ltr'
languageName = 'French'
languageFlag = '🇫🇷'
weight = 1
[taxonomies] [taxonomies]
tag = "tags" tag = "tags"

View File

@ -0,0 +1,20 @@
---
title: "Liste de cadeaux"
slug: "wishlist"
date: 2023-12-08T09:33:02+01:00
toc: true
tags: ["wishlist", "gift", "stuff"]
---
Noël, mon anniversaire, je n'ai pas besoin de grand chose mais si vous voulez des idées voici la liste.
Préférez les objets de secondes mains 😉.
* Chaussure de vélo [Vaude TVL Skoj](https://www.bikester.fr/vaude-tvl-skoj-chaussures-M834524.html) size 44EU, ~100€
* Liseuse Kobo Clare 2E or Libra 2 ( No Amazon stuff because it's vendor locked ), ~150€
* Robot multifonction Moulinex / SEB / Electrolux
* Des livres j'aime : SF, Science, Politique, Thriller et cuisine
* Un stylo avec mon nom dessus
* Des ramequins de cuisine hauteur moyenne
* Un caisson étanche 60m GoPro Hero 7
* Une batterie GoPro Hero 7

View File

@ -7,8 +7,13 @@ tags: ["wishlist", "gift", "stuff"]
--- ---
Christmas, my birthday, I don't need anything but if you want some ideas of what I like or seek. Christmas, my birthday, I don't need anything but if you want some ideas of what I like or seek.
Just buy second hand stuff preferably 😉.
* Bike shoose Fisik * Bike shoes [Vaude TVL Skoj](https://www.bikester.fr/vaude-tvl-skoj-chaussures-M834524.html) size 44EU, ~100€
* E-Ink Tablet Reader Kobo * E-Ink Tablet Reader Kobo Clare 2E or Libra 2 ( No Amazon stuff because it's vendor locked ), ~150€
* Blender robot * Blender robot Moulinex / SEB / Electrolux
* Any books, I like Scifi, Science, Politics, Thriller and Cooking * Any books, I like Scifi, Science, Politics, Thriller and Cooking
* A nice pen with my name on it
* Some ramekins for cooking oven usage
* Diving box case for GoPro Hero 7
* GoPro Hero 7 Batteries

View File

@ -0,0 +1,15 @@
<footer role="contentinfo">
<div
{{ if eq .Site.Params.showThemeSwitcher false }}style="display: none;"{{ end }}
>
<label for="themer">
{{ T "dark_theme" }} <input type="checkbox" id="themer" class="vh">
<!-- Shows "on" or "off" -->
<span aria-hidden="true"></span>
</label>
</div>
{{ partial "language-switcher.html" . }}
{{ with .Site.Params.footer }}
{{ . | markdownify }}
{{ end }}
</footer>

View File

@ -0,0 +1,17 @@
{{ if .Site.IsMultiLingual }}
<nav class="language-selector">
<ul>
{{ range .Site.Languages }}
{{ if eq . $.Site.Language }}
<li><span title="{{ .LanguageName }}">{{ .Params.languageFlag }}</span></li>
{{ end }}
{{ end }}
{{ range .Translations }}
<li><a rel="alternate" href="{{ .RelPermalink }}" hreflang="{{ .Lang }}" lang="{{ .Lang }}" title="{{ .Language.LanguageName }}">{{ .Language.Params.languageFlag }}</a></li>
{{ end -}}
</ul>
</nav>
{{ end }}

View File

@ -6,3 +6,10 @@
clip-path: none; clip-path: none;
border-radius: 0.33em; border-radius: 0.33em;
} }
nav.language-selector {
margin-top: initial;
}
.language-selector li {
display: inline;
}