feat(wishlist): french and english version
This commit is contained in:
parent
1d610da42d
commit
409cba27a5
|
@ -1,6 +1,6 @@
|
|||
baseURL = 'https://blog.hugopoi.net/v2/'
|
||||
publishdir = '../www/v2'
|
||||
languageCode = 'en-us'
|
||||
languageCode = 'en-US'
|
||||
defaultLanguageContent = 'en'
|
||||
title = 'HugoPoi Blog'
|
||||
theme = 'cupper-hugo-theme'
|
||||
|
@ -9,6 +9,23 @@ theme = 'cupper-hugo-theme'
|
|||
# disqusShortname: yourdiscussshortname
|
||||
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]
|
||||
tag = "tags"
|
||||
|
||||
|
|
20
v2/content/pages/wishlist/index.fr.md
Normal file
20
v2/content/pages/wishlist/index.fr.md
Normal 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
|
||||
|
|
@ -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.
|
||||
Just buy second hand stuff preferably 😉.
|
||||
|
||||
* Bike shoose Fisik
|
||||
* E-Ink Tablet Reader Kobo
|
||||
* Blender robot
|
||||
* Bike shoes [Vaude TVL Skoj](https://www.bikester.fr/vaude-tvl-skoj-chaussures-M834524.html) size 44EU, ~100€
|
||||
* E-Ink Tablet Reader Kobo Clare 2E or Libra 2 ( No Amazon stuff because it's vendor locked ), ~150€
|
||||
* Blender robot Moulinex / SEB / Electrolux
|
||||
* 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
|
||||
|
|
15
v2/layouts/partials/footer.html
Normal file
15
v2/layouts/partials/footer.html
Normal 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>
|
17
v2/layouts/partials/language-switcher.html
Normal file
17
v2/layouts/partials/language-switcher.html
Normal 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 }}
|
||||
|
||||
|
|
@ -6,3 +6,10 @@
|
|||
clip-path: none;
|
||||
border-radius: 0.33em;
|
||||
}
|
||||
|
||||
nav.language-selector {
|
||||
margin-top: initial;
|
||||
}
|
||||
.language-selector li {
|
||||
display: inline;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user