From e5523c2004f3152ec4a6bc5d183fba58d5ee4435 Mon Sep 17 00:00:00 2001 From: Damien Leroy <10438692+ShiiFu@users.noreply.github.com> Date: Mon, 18 Mar 2024 22:07:48 +0100 Subject: [PATCH] feat: add french language --- exampleSite/content/fr/_index.md | 4 + exampleSite/content/fr/pages/about.md | 23 +++ exampleSite/content/fr/posts/_index.md | 3 + .../content/fr/posts/emoji-support/index.md | 46 +++++ .../content/fr/posts/markdown-syntax/1.jpg | Bin 0 -> 18269 bytes .../content/fr/posts/markdown-syntax/index.md | 164 ++++++++++++++++++ .../fr/posts/math-typesetting/index.md | 50 ++++++ .../fr/posts/placeholder-text/index.md | 41 +++++ .../content/fr/posts/rich-content/index.md | 30 ++++ .../fr/posts/table-of-content/index.md | 82 +++++++++ exampleSite/hugo.toml | 65 +++++++ i18n/fr-fr.yaml | 27 +++ 12 files changed, 535 insertions(+) create mode 100644 exampleSite/content/fr/_index.md create mode 100644 exampleSite/content/fr/pages/about.md create mode 100644 exampleSite/content/fr/posts/_index.md create mode 100644 exampleSite/content/fr/posts/emoji-support/index.md create mode 100644 exampleSite/content/fr/posts/markdown-syntax/1.jpg create mode 100644 exampleSite/content/fr/posts/markdown-syntax/index.md create mode 100644 exampleSite/content/fr/posts/math-typesetting/index.md create mode 100644 exampleSite/content/fr/posts/placeholder-text/index.md create mode 100644 exampleSite/content/fr/posts/rich-content/index.md create mode 100644 exampleSite/content/fr/posts/table-of-content/index.md create mode 100644 i18n/fr-fr.yaml diff --git a/exampleSite/content/fr/_index.md b/exampleSite/content/fr/_index.md new file mode 100644 index 00000000..b8d38042 --- /dev/null +++ b/exampleSite/content/fr/_index.md @@ -0,0 +1,4 @@ +--- +title: "Accueil" +author : "Hugo Authors" +--- diff --git a/exampleSite/content/fr/pages/about.md b/exampleSite/content/fr/pages/about.md new file mode 100644 index 00000000..b81a5f09 --- /dev/null +++ b/exampleSite/content/fr/pages/about.md @@ -0,0 +1,23 @@ +--- +title: À propos +description: 'Hugo, the world''s fastest framework for building websites' +author: Hugo Authors +--- + +Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/yuin/goldmark +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. + +Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. + +Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. + +Learn more and contribute on [GitHub](https://github.com/gohugoio). diff --git a/exampleSite/content/fr/posts/_index.md b/exampleSite/content/fr/posts/_index.md new file mode 100644 index 00000000..6c1acb30 --- /dev/null +++ b/exampleSite/content/fr/posts/_index.md @@ -0,0 +1,3 @@ +--- +title: "Articles" +--- diff --git a/exampleSite/content/fr/posts/emoji-support/index.md b/exampleSite/content/fr/posts/emoji-support/index.md new file mode 100644 index 00000000..f488cd22 --- /dev/null +++ b/exampleSite/content/fr/posts/emoji-support/index.md @@ -0,0 +1,46 @@ +--- +title: Support des emoji +date: 2023-02-01 +author: Hugo Authors +description: Guide to emoji usage in Hugo +tags: + - emoji +--- + +Emoji can be enabled in a Hugo project in a number of ways. + +The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). + +To enable emoji globally, set `enableEmoji` to `true` in your site's `config.toml`. You can type emoji shorthand codes directly in content files; e.g. + +`:see_no_evil:` :see_no_evil: `:hear_no_evil:` :hear_no_evil: `:speak_no_evil:` :speak_no_evil: + +I :heart: Hugo! 😁 + +The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. + +*** + +**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g. + +{{< highlight css >}} +.emoji { + font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; +} +{{< /highlight >}} + +{{< css.inline >}} + +{{< /css.inline >}} diff --git a/exampleSite/content/fr/posts/markdown-syntax/1.jpg b/exampleSite/content/fr/posts/markdown-syntax/1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e369f8aa2e38cc00b369117709e4146dbf10be2a GIT binary patch literal 18269 zcmb5VWk6g#&@j5V!y?6Pad+3^?rm{**HYZwt&6+2l;SSMWpOA{ptw`q^=|t<-+RCN z^JdRU&WX&)OlC5ZN%nQ|bsYdylvR)gz`y_iFwh_1bp!BQ#>>_U08mh10w4nb07L)| z4BX$Me>X7*8fS70DvSU z06a8@gNu^`Ci#D!VW1EqQjh@n(EK0J8&L3H9Zn7on1cU-{`v|4z!v-ubRFnt;r@H> z{Rn_VP5+IBv3?P{)T@z{EMK(fJZt+CKLCU%UY%Mwa|-2ReP;5=Ma%(6TY)e&P}*% zh~tCkCVx%ip=88>ljwAt|7a1pz?c^hqQ#U7n=}K9K7?W?Jf1xd-`+n;)LQb!0*tL9 z(=u;oFT=)J=4r5K@r};uvqPEXjAreRBo{3&up`dc{bNmi&N8dDuuELHc~C8Y5}Qs_ z8;~vUuf>}=V;%6IG_-`NgPjAj#ubykJ-Y%~0 zV07%TB6>w|PoaVlr#Ure-pP$8Yl2;vuB?%7!ZqH7T34PoEDL^$E*V1;pisgSlkP?C zIZSX!Z16J4&!oVkkR>uwTk;-f=19npXHv&T@v|ZUs8mL&cyz}MaRXe$QaMiC@#Z6o zuGg%B+lR(r0+jdKBD&KN-ix)x0WJ-mW`-HWJ7&r_X0%%JFtD;=uu?SN>*Tk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Z^8T`+<5=|2Aeq&IF{P6dQmuaPfG(Kr{!!|l`h_TM{g zzBb!!w%-9nE?G}feKJ<1+7a#{2lEBg>7Vlt(SAZ3zxLy_ABcLtDA`?p@gVN6s3;73 zVf-^(56GYO#650yAp{%lrDWA|~z z{X50Z+#{UaTx31YI(UVCHf&#%L>Er~09U_0{{X?it8Il8xR7sxQQfflHRJhTls}kf zxG!*hx3We50KM;@kRa)B8Tn%W0LA|3@Afi9C*JKH)AKRpXW(X_pPbt;58nR(^ z1Mj|e-0!&0wjavn+CP$3)xSBrVEmHRP=1znk*?MAyx`R;^pNZr{v5n@6~3 zyJ?HRo3LMeKicGh{(tP2s zmRV(%S>#}GWtLfI=o$54@nL0>NoAHE-o%S zXO1o|E-oxCEG#TPQ?kn}vdbj0%Rkg*m#aTU+ikv1*4yO#ty=vb^Zx(`{{YJTt^EV? z@WrLYhrx+w=-(OP{{ToX_Z~g?_cK4?C(pk=zgMpwypJAF9;3tK{-%Gx`Fua6@$vdS J-n{<+|Jh|g>WTmW literal 0 HcmV?d00001 diff --git a/exampleSite/content/fr/posts/markdown-syntax/index.md b/exampleSite/content/fr/posts/markdown-syntax/index.md new file mode 100644 index 00000000..c1c65952 --- /dev/null +++ b/exampleSite/content/fr/posts/markdown-syntax/index.md @@ -0,0 +1,164 @@ +--- +title: Guide pour la syntaxe markdown +date: 2023-02-11 +author: Hugo Authors +description: Sample article showcasing basic Markdown syntax and formatting for HTML elements. +--- + +This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. + + +## Headings + +The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. + +# H1 + +## H2 + +### H3 + +#### H4 + +##### H5 + +###### H6 + +## Paragraph + +Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat. + +Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. + +## Image + +You can use the following syntax to include an image. Path of the image should be relative to the `index.md` file. + +```markdown +![Landscape](1.jpg) +``` + +![Landscape](1.jpg) + +You can also include image from external sources. + +```markdown +![Image](https://source.unsplash.com/random/600x400/?tech) +``` + +![Image](https://source.unsplash.com/random/600x400/?tech) + +## Blockquotes + +The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations. + +### Blockquote without attribution + +> You can use Markdown syntax within a blockquote, like **bold**, _italics_, [links](https://gohugo.io/), `code`. + +### Blockquote with attribution + +> Don't communicate by sharing memory, share memory by communicating.
+> — Rob Pike[^1] + +[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. + +## Tables + +Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-box. + + Name | Age +--------|------ + Bob | 27 + Alice | 23 + +### Markdown within tables + +| Italics | Bold | Code | +| -------- | -------- | ------ | +| *italics* | **bold** | `code` | + +## Code Blocks + +### Code block with backticks + +```html + + + + + Example HTML5 Document + + +

Test

+ + +``` + +### Code block indented with four spaces + + + + + + Example HTML5 Document + + +

Test

+ + + +### Code block with Hugo's internal highlight shortcode + +{{< highlight html >}} + + + + + Example HTML5 Document + + +

Test

+ + +{{< /highlight >}} + +### Inline code + +Use the backtick to refer to a `variable` within a sentence. + +## List Types + +### Ordered List + +1. First item +2. Second item with some `code` in it +3. Third item + +### Unordered List + +* List item +* Another item with some `code` in it +* And another item + +### Nested list + +* Fruit + * Apple + * Orange + * Banana +* Dairy + * Milk + * Cheese + +## Other Elements — abbr, sub, sup, kbd, mark + +GIF is a bitmap image format. + +H2O + +Xn + Yn = Zn + +Press CTRL+ALT+Delete to end the session. + +Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. diff --git a/exampleSite/content/fr/posts/math-typesetting/index.md b/exampleSite/content/fr/posts/math-typesetting/index.md new file mode 100644 index 00000000..02c9201f --- /dev/null +++ b/exampleSite/content/fr/posts/math-typesetting/index.md @@ -0,0 +1,50 @@ +--- +author: Hugo Authors +title: Notation mathématique dans les articles de blog +date: 2023-04-01 +description: A brief guide to setup KaTeX +math: true +--- + +Mathematical notation in a Hugo project can be enabled by using +[third party JavaScript libraries](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/layouts/partials/helpers/katex.html). + + + +In this example we will be using [KaTeX](https://katex.org/). + +- To enable KaTeX globally, set the parameter `math` to `true` in a project's + configuration file as follows. + - `config.toml` + ```toml + [params] + math = true + ``` + - `config.yaml` + ```yaml + params: + math: true + ``` +- To enable KaTeX on a per page basis, include the parameter `math: true` in + Front Matter of Markdown content file as follows. + + ``` + --- + math: true + --- + ``` + +**Note:** The online reference of +[Supported TeX Functions](https://katex.org/docs/supported.html) is a helpful resource. + +### Examples + +- Block math: + + $$ + \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } + $$ + +- Inline math: + + This is an inline polynomial: $5x^2 + 2y -7$. diff --git a/exampleSite/content/fr/posts/placeholder-text/index.md b/exampleSite/content/fr/posts/placeholder-text/index.md new file mode 100644 index 00000000..539a62c3 --- /dev/null +++ b/exampleSite/content/fr/posts/placeholder-text/index.md @@ -0,0 +1,41 @@ +--- +author: Hugo Authors +title: Texte d'exemple +date: 2023-02-07 +description: A post with placeholder text +--- + +Lorem est tota propiore conpellat pectoribus de pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. + +1. Exierant elisi ambit vivere dedere +2. Duce pollice +3. Eris modo +4. Spargitque ferrea quos palude + +Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. + +1. Comas hunc haec pietate fetum procerum dixit +2. Post torum vates letum Tiresia +3. Flumen querellas +4. Arcanaque montibus omnes +5. Quidem et + +# Vagus elidunt + + + +[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) + +## Mane refeci capiebant unda mulcebat + +Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. + +Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et. + +Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**. + +{{< css.inline >}} + +{{< /css.inline >}} diff --git a/exampleSite/content/fr/posts/rich-content/index.md b/exampleSite/content/fr/posts/rich-content/index.md new file mode 100644 index 00000000..f55a23a7 --- /dev/null +++ b/exampleSite/content/fr/posts/rich-content/index.md @@ -0,0 +1,30 @@ +--- +author: Hugo Authors +title: Contenu enrichi +date: 2023-02-09 +description: A brief description of Hugo Shortcodes +--- + +Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. + +--- + +## YouTube Privacy Enhanced Shortcode + +{{< youtube ZJthWmvUzzc >}} + +
+ +--- + +## Twitter Simple Shortcode + +{{< twitter_simple DesignReviewed 1085870671291310081 >}} + +
+ +--- + +## Vimeo Simple Shortcode + +{{< vimeo_simple 48912912 >}} diff --git a/exampleSite/content/fr/posts/table-of-content/index.md b/exampleSite/content/fr/posts/table-of-content/index.md new file mode 100644 index 00000000..9b3c713b --- /dev/null +++ b/exampleSite/content/fr/posts/table-of-content/index.md @@ -0,0 +1,82 @@ +--- +title: Table des matières +date: 2023-05-02 +description: Setup table of content in Hugo blog awesome theme +--- + +## Table of content + +This theme supports displaying table of content (ToC) in blog posts. + +## Parameters + +You can manage a ToC with two parameters: +- global `toc` parameter; +- post `toc` parameter. + +The post `toc` parameter has higher priority than the global `toc` parameter. + +## Enable table of content on all posts + +To enable ToC on all posts (globally) set parameter `toc` to `true` in `config.toml`. + +```toml +[params] + toc = true +``` + +To disable ToC globally, simply ignore the `toc` parameter or set it to `false`. + +## Enable table of content on certain posts + +To enable ToC on certain posts set parameter `toc` to `true` in post settings. + + ```yaml + --- + title: How to enable table of content + date: 2023-05-02 + toc: true + --- + ``` + +## Disable table of content on certain posts + +To disable ToC on certain posts, you have to follow two steps. + +Notice: `.Params.toc` in the post will overide `.Site.Params.toc`. After these steps, parameter `toc` in the post will be `false`. + +1. Set parameter `toc` to `true` in `config.toml`. + + ```toml + [params] + toc = true + ``` + +2. Add `toc = false` to the front matter of the post for which you wish to disable ToC. + + ```yaml + --- + title: How to enable table of content + date: 2023-05-02 + toc: false + --- + ``` + +## Open table of content + +By default, ToC is closed. To open it by default, set parameter `tocOpen` to `true` in `config.toml`. + +```toml +[params] + tocOpen = true +``` + +Or simply add the `tocOpen` parameter to the front matter of the post. + +```yaml +--- +title: How to enable table of content +date: 2023-05-02 +tocOpen: true +--- +``` \ No newline at end of file diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 3af96872..e6414059 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -306,6 +306,71 @@ theme = "hugo-blog-awesome" background_color = "#fff" # by default depend on "params.defaultColor" for "light" or "auto" will be set to "#fff" for dark will be "#131418" (color of dark mode background) display = "standalone" +############################## French language ################################ +[Languages.fr-fr] + languageName = "French" + languageCode = "fr-fr" + contentDir = "content/fr" + weight = 1 + + [Languages.fr-fr.menu] + [[Languages.fr-fr.menu.main]] + # The page reference (pageRef) is useful for menu highlighting + # When pageRef is set, setting `url` is optional; it will be used as a fallback if the page is not found. + pageRef="/" + name = 'Accueil' + url = '/' + weight = 10 + [[Languages.fr-fr.menu.main]] + pageRef="posts" + name = 'Articles' + url = '/posts/' + weight = 20 + [[Languages.fr-fr.menu.main]] + pageRef="about" + name = 'À propos' + url = '/about/' + weight = 30 + +[Languages.fr-fr.params] + sitename = "Awesome hugo blog" + defaultColor = "dark" # set color mode: dark, light, auto + # Setting it to 'auto' applies the color scheme based on the visitor's device color preference.If you don't specify anything, ignore this parameter, or leave it blank, + # the default value is set to 'auto'. + # You can take a look at layouts/index.html for more information. + description = "Thème Hugo Blog minimal avec mode clair et mode sombre" + mainSections = ['posts'] + toc = true # set to false to disable table of contents 'globally' + tocOpen = false # set to true to open table of contents by default + goToTop = true # set to false to disable 'go to top' button + additionalScripts = ['js/custom.js', 'js/custom-2.js'] + # Will try to load 'assets/js/custom.js' and 'assets/js/custom-2.js'. + # Your custom scripts will be concatinated to one file `custom.js`. + # When building for production it will be minified. + # The file `custom.js` is loaded on each page (before body tag ends). + dateFormat = "" # date format used to show dates on various pages. If nothing is specified, then "2 Jan 2006" format is used. + # See https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference for available date formats. + rssFeedDescription = "summary" # available options: 1) summary 2) full + # summary - includes a short summary of the blog post in the RSS feed. Generated using Hugo .Summary . + # full - includes full blog post in the RSS feed. Generated using Hugo .Content . + # By default (or if nothing is specified), summary is used. + +[Languages.fr-fr.params.author] + avatar = "avatar.jpg" # put the file in assets folder; also ensure that image has same height and width + # Note: image is not rendered if the resource(avatar image) is not found. No error is displayed. + intro = "Awesome hugo blog" + name = "Sidharth R" + description = "Un thème Hugo rapide et minimaliste, supporte mode clair et mode sombre, pour créer un site personnel ou un blog" + +# Allow to override webmanifest options +[Languages.fr-fr.params.webmanifest] + name = "sitename" # will use "params.sitename" or "title" by default + short_name = "sitename" # same as name + start_url = "/" # will use homepage url by default + theme_color = "#434648" # default is "#434648" (base color of text). Also will override html `` + background_color = "#fff" # by default depend on "params.defaultColor" for "light" or "auto" will be set to "#fff" for dark will be "#131418" (color of dark mode background) + display = "standalone" + ################################################################### # Allow to override `browserconfig.xml` params (configuration for windows embedded browsers) diff --git a/i18n/fr-fr.yaml b/i18n/fr-fr.yaml new file mode 100644 index 00000000..c8232a1c --- /dev/null +++ b/i18n/fr-fr.yaml @@ -0,0 +1,27 @@ +## HOME ## +- id: "home.home" + translation: "Accueil" + +- id: "home.recent_posts" + translation: "Articles récents" + +- id: "home.see_all_posts" + translation: "Voir tous les articles" + +## SINGLE ## +- id: "single.table_of_contents" + translation: "Table des matières" + +## FOOTER ## +- id: "footer.go_to_top" + translation: "Aller en haut" + +- id: "footer.disclaimer" + translation: "Réalisé avec Hugo blog awesome." + +## ERRORS ## +- id: "errors.404" + translation: "404 INTROUVABLE" + +- id: "errors.404_description" + translation: "La page demandée n'existe pas." \ No newline at end of file