i18n: extract, translate strings to be translated

- Extracts stings to be translated.
- Translates these strings in English and French.
- Improves some comments in the templates.
- Update the auto-changelog configuration according to the new git
  repository URL.
- Update the CHANGELOG.
- Fixes #18.

Co-Authored-by: iGor milhit <igor@milhit.ch>
iGor milhit 2022-11-14 18:21:38 +01:00
parent 282b6bcd85
commit b44b93c3a9
Signed by: igor
GPG Key ID: 692D97C3D0228A99
18 changed files with 212 additions and 115 deletions

View File

@ -1,4 +1,5 @@
{ {
"remote": "changelog",
"output": "CHANGELOG.md", "output": "CHANGELOG.md",
"template": "keepachangelog", "template": "keepachangelog",
"unreleased": true, "unreleased": true,

View File

@ -7,86 +7,97 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
## [Unreleased](https://framagit.org/iGormilhit/portfoliGor/compare/v0.2.0...HEAD) ## [Unreleased](https://git.milhit.ch/igor/portfoligor/compare/v0.2.0...HEAD)
### Commits
- style: add a stylesheet for printing [`76161ef`](https://framagit.org/iGormilhit/portfoliGor/commit/76161ef3a77c57917f6680f94822c4a93f41afda)
- layout: fix medias integration [`a7c87c9`](https://framagit.org/iGormilhit/portfoliGor/commit/a7c87c947f1ca9ed56b38dd40091484ebae3c742)
## [v0.2.0](https://framagit.org/iGormilhit/portfoliGor/compare/0.1.1...v0.2.0) - 2021-11-03
### Fixed ### Fixed
- documentation: fill in the README [`#6`](https://framagit.org/iGormilhit/portfoliGor/issues/6) - i18n: extract, translate strings to be translated [`#18`](https://git.milhit.ch/igor/portfoligor/issues/18)
- theme: simplify the main layout [`#8`](https://framagit.org/iGormilhit/portfoliGor/issues/8) - style: add a stylesheet for printing [`#28`](https://git.milhit.ch/igor/portfoligor/issues/28)
- layouts: use details for the post informations [`#17`](https://framagit.org/iGormilhit/portfoliGor/issues/17)
- data: sort terms in post information [`#13`](https://framagit.org/iGormilhit/portfoliGor/issues/13)
- style: Implements nord color scheme [`#7`](https://framagit.org/iGormilhit/portfoliGor/issues/7)
### Commits ### Commits
- release: v0.2.0 [`64c93b7`](https://framagit.org/iGormilhit/portfoliGor/commit/64c93b72d6522ab6ce1ebec42ee81e0809f8cb17) - documentation: update the README to new git repo [`282b6bc`](https://git.milhit.ch/igor/portfoligor/commit/282b6bcd85b9843eab18190ac5cb808624358e8c)
- header: restore and adapt the avatar image [`ad3ee27`](https://framagit.org/iGormilhit/portfoliGor/commit/ad3ee27f0a2391cd0ae3893da238c86e9ed26feb) - gitInfo: configuration of the git repository [`1aaa6b0`](https://git.milhit.ch/igor/portfoligor/commit/1aaa6b02b5cab985ffc3e66aaceeeb91fd8bf134)
- colors: move the visited property up the others [`07d9577`](https://framagit.org/iGormilhit/portfoliGor/commit/07d9577e8cbeaf7710833e6267148cabff837cc4) - scss: improve the `verse` text layout [`989343e`](https://git.milhit.ch/igor/portfoligor/commit/989343ea597de5d892530e70b038dff1e6a69511)
- colors: colorizes the link on hover [`52a8e25`](https://framagit.org/iGormilhit/portfoliGor/commit/52a8e251f9bcee37de941010bd2715125116deaa) - post image: get the image in the atom xml file [`0c21f00`](https://git.milhit.ch/igor/portfoligor/commit/0c21f00b671865f392a27a156b7d036fb7e3949e)
- menu: improve the menu [`c0f6de2`](https://framagit.org/iGormilhit/portfoliGor/commit/c0f6de2ab1977de839ade035c4d60596e3cea331) - text: set font style to em nested in blockquote [`e78fd96`](https://git.milhit.ch/igor/portfoligor/commit/e78fd961ae14a4b69e181f8c199ea002d2691404)
- post: display the postimage if it exists [`7bba092`](https://framagit.org/iGormilhit/portfoliGor/commit/7bba092f68488116a7b010ee4bdddd7c1cbee071) - text: style the new citation block [`40da59a`](https://git.milhit.ch/igor/portfoligor/commit/40da59a1eb073f231087ee133397e649ee2bf552)
- head: improve the metadata exposed [`e7de77b`](https://framagit.org/iGormilhit/portfoliGor/commit/e7de77b3ad3f67c1833bdc3030cad034e5d0d5c6) - homepage: move the CV file to the personal data [`7a2aa2d`](https://git.milhit.ch/igor/portfoligor/commit/7a2aa2d1a9f5e1951cf7977e662888af4db33da9)
- content: improve verses layout for small screens [`029a3ac`](https://framagit.org/iGormilhit/portfoliGor/commit/029a3ac1745580c999b75ae6fd9b68e520514a91) - layout: fix medias integration [`a7c87c9`](https://git.milhit.ch/igor/portfoligor/commit/a7c87c947f1ca9ed56b38dd40091484ebae3c742)
- footer: add link to the last commit [`0190c23`](https://framagit.org/iGormilhit/portfoliGor/commit/0190c233e9eb54638ddddf9cccb87405391b3c7b)
- list: fix date variable on the lists and sections [`36a334c`](https://framagit.org/iGormilhit/portfoliGor/commit/36a334cab9d4e2bf746214571287d35a29bdf6eb)
- shortcodes: adds an audio player with album cover [`e1cf918`](https://framagit.org/iGormilhit/portfoliGor/commit/e1cf9185f3f7c3cba4e97c6b2371fb9a465017da)
- head: add a favicon [`e56fddc`](https://framagit.org/iGormilhit/portfoliGor/commit/e56fddc6e0c15bb6839c9cfc6277df5eb8f46d03)
- layout: improve post info in single or list pages [`8177560`](https://framagit.org/iGormilhit/portfoliGor/commit/817756034b5c3338ea47a2108780ba0b7f47e383)
## [0.1.1](https://framagit.org/iGormilhit/portfoliGor/compare/0.1.0...0.1.1) - 2020-06-01 ## [v0.2.0](https://git.milhit.ch/igor/portfoligor/compare/0.1.1...v0.2.0) - 2021-11-03
### Fixed ### Fixed
- RSS: Improves the RSS template [`#9`](https://framagit.org/iGormilhit/portfoliGor/issues/9) - documentation: fill in the README [`#6`](https://git.milhit.ch/igor/portfoligor/issues/6)
- layout: improve list of post taxonomy terms [`#10`](https://framagit.org/iGormilhit/portfoliGor/issues/10) - theme: simplify the main layout [`#8`](https://git.milhit.ch/igor/portfoligor/issues/8)
- layouts: use details for the post informations [`#17`](https://git.milhit.ch/igor/portfoligor/issues/17)
- data: sort terms in post information [`#13`](https://git.milhit.ch/igor/portfoligor/issues/13)
- style: Implements nord color scheme [`#7`](https://git.milhit.ch/igor/portfoligor/issues/7)
### Commits ### Commits
- documentation: add a changelog and auto-changelog [`31b27df`](https://framagit.org/iGormilhit/portfoliGor/commit/31b27df95ffcab2b5857fa63346e6a8a6998b5d1) - release: v0.2.0 [`64c93b7`](https://git.milhit.ch/igor/portfoligor/commit/64c93b72d6522ab6ce1ebec42ee81e0809f8cb17)
- lists: sort list by reverse publication date [`920fe4d`](https://framagit.org/iGormilhit/portfoliGor/commit/920fe4d1566b9755b2551854a6042beec8f8905a) - header: restore and adapt the avatar image [`ad3ee27`](https://git.milhit.ch/igor/portfoligor/commit/ad3ee27f0a2391cd0ae3893da238c86e9ed26feb)
- colors: move the visited property up the others [`07d9577`](https://git.milhit.ch/igor/portfoligor/commit/07d9577e8cbeaf7710833e6267148cabff837cc4)
- colors: colorizes the link on hover [`52a8e25`](https://git.milhit.ch/igor/portfoligor/commit/52a8e251f9bcee37de941010bd2715125116deaa)
- menu: improve the menu [`c0f6de2`](https://git.milhit.ch/igor/portfoligor/commit/c0f6de2ab1977de839ade035c4d60596e3cea331)
- post: display the postimage if it exists [`7bba092`](https://git.milhit.ch/igor/portfoligor/commit/7bba092f68488116a7b010ee4bdddd7c1cbee071)
- head: improve the metadata exposed [`e7de77b`](https://git.milhit.ch/igor/portfoligor/commit/e7de77b3ad3f67c1833bdc3030cad034e5d0d5c6)
- content: improve verses layout for small screens [`029a3ac`](https://git.milhit.ch/igor/portfoligor/commit/029a3ac1745580c999b75ae6fd9b68e520514a91)
- footer: add link to the last commit [`0190c23`](https://git.milhit.ch/igor/portfoligor/commit/0190c233e9eb54638ddddf9cccb87405391b3c7b)
- list: fix date variable on the lists and sections [`36a334c`](https://git.milhit.ch/igor/portfoligor/commit/36a334cab9d4e2bf746214571287d35a29bdf6eb)
- shortcodes: adds an audio player with album cover [`e1cf918`](https://git.milhit.ch/igor/portfoligor/commit/e1cf9185f3f7c3cba4e97c6b2371fb9a465017da)
- head: add a favicon [`e56fddc`](https://git.milhit.ch/igor/portfoligor/commit/e56fddc6e0c15bb6839c9cfc6277df5eb8f46d03)
- layout: improve post info in single or list pages [`8177560`](https://git.milhit.ch/igor/portfoligor/commit/817756034b5c3338ea47a2108780ba0b7f47e383)
## [0.1.1](https://git.milhit.ch/igor/portfoligor/compare/0.1.0...0.1.1) - 2020-06-01
### Fixed
- RSS: Improves the RSS template [`#9`](https://git.milhit.ch/igor/portfoligor/issues/9)
- layout: improve list of post taxonomy terms [`#10`](https://git.milhit.ch/igor/portfoligor/issues/10)
### Commits
- documentation: add a changelog and auto-changelog [`31b27df`](https://git.milhit.ch/igor/portfoligor/commit/31b27df95ffcab2b5857fa63346e6a8a6998b5d1)
- lists: sort list by reverse publication date [`920fe4d`](https://git.milhit.ch/igor/portfoligor/commit/920fe4d1566b9755b2551854a6042beec8f8905a)
## 0.1.0 - 2020-05-23 ## 0.1.0 - 2020-05-23
### Fixed ### Fixed
- template: add metadata to the html head [`#3`](https://framagit.org/iGormilhit/portfoliGor/issues/3) - template: add metadata to the html head [`#3`](https://git.milhit.ch/igor/portfoligor/issues/3)
- template: compare lastmod and publishdate [`#5`](https://framagit.org/iGormilhit/portfoliGor/issues/5) - template: compare lastmod and publishdate [`#5`](https://git.milhit.ch/igor/portfoligor/issues/5)
- style: fix wrong flex property for the main nav [`#4`](https://framagit.org/iGormilhit/portfoliGor/issues/4) - style: fix wrong flex property for the main nav [`#4`](https://git.milhit.ch/igor/portfoligor/issues/4)
- shorcodes: add a smallcaps shotcode [`#1`](https://framagit.org/iGormilhit/portfoliGor/issues/1) - shorcodes: add a smallcaps shotcode [`#1`](https://git.milhit.ch/igor/portfoligor/issues/1)
### Commits ### Commits
- shortcodes: improve smallcaps shortcodes [`c6ea77b`](https://framagit.org/iGormilhit/portfoliGor/commit/c6ea77b4293986ac430d8ce35513207126478b2e) - shortcodes: improve smallcaps shortcodes [`c6ea77b`](https://git.milhit.ch/igor/portfoligor/commit/c6ea77b4293986ac430d8ce35513207126478b2e)
- shortcodes: add audio shortcode for external src [`21d0ca2`](https://framagit.org/iGormilhit/portfoliGor/commit/21d0ca2e200bfd79c23f71b5476fcd21e7f090b6) - shortcodes: add audio shortcode for external src [`21d0ca2`](https://git.milhit.ch/igor/portfoligor/commit/21d0ca2e200bfd79c23f71b5476fcd21e7f090b6)
- shortcodes: add shortcodes for audio & streaming [`9f142a2`](https://framagit.org/iGormilhit/portfoliGor/commit/9f142a22b4ef12326d11f77a59e670bad85373e8) - shortcodes: add shortcodes for audio & streaming [`9f142a2`](https://git.milhit.ch/igor/portfoligor/commit/9f142a22b4ef12326d11f77a59e670bad85373e8)
- fonts: set the line height for content [`74abde3`](https://framagit.org/iGormilhit/portfoliGor/commit/74abde3ad20af531d26ebf544f60be9b6a3ce1d1) - fonts: set the line height for content [`74abde3`](https://git.milhit.ch/igor/portfoligor/commit/74abde3ad20af531d26ebf544f60be9b6a3ce1d1)
- post info: improve punctuation and space usage [`9fb6836`](https://framagit.org/iGormilhit/portfoliGor/commit/9fb6836788489518b0a5bb39dd36e58e9fff94ff) - post info: improve punctuation and space usage [`9fb6836`](https://git.milhit.ch/igor/portfoligor/commit/9fb6836788489518b0a5bb39dd36e58e9fff94ff)
- navigation: add a RSS link [`84a2435`](https://framagit.org/iGormilhit/portfoliGor/commit/84a2435161b04ccf8fdf498591f0878ba8646edb) - navigation: add a RSS link [`84a2435`](https://git.milhit.ch/igor/portfoligor/commit/84a2435161b04ccf8fdf498591f0878ba8646edb)
- section: improve sections, lists and navigation [`c44eb75`](https://framagit.org/iGormilhit/portfoliGor/commit/c44eb759f0270e1c6938b8b50ec5ad10e1fa783f) - section: improve sections, lists and navigation [`c44eb75`](https://git.milhit.ch/igor/portfoligor/commit/c44eb759f0270e1c6938b8b50ec5ad10e1fa783f)
- style: start using SASS and assets [`a7a017b`](https://framagit.org/iGormilhit/portfoliGor/commit/a7a017b68a0719b2d21f6315729dc6f2e377b620) - style: start using SASS and assets [`a7a017b`](https://git.milhit.ch/igor/portfoligor/commit/a7a017b68a0719b2d21f6315729dc6f2e377b620)
- page: deactivate pagination [`cabdffa`](https://framagit.org/iGormilhit/portfoliGor/commit/cabdffa8ac38c9ad4c0aba8716e8bd4bdaa0b57b) - page: deactivate pagination [`cabdffa`](https://git.milhit.ch/igor/portfoligor/commit/cabdffa8ac38c9ad4c0aba8716e8bd4bdaa0b57b)
- RSS: update template with regular page variable [`8fb2022`](https://framagit.org/iGormilhit/portfoliGor/commit/8fb20228e9fd0e9902009ff9b2989a4d620367da) - RSS: update template with regular page variable [`8fb2022`](https://git.milhit.ch/igor/portfoligor/commit/8fb20228e9fd0e9902009ff9b2989a4d620367da)
- documentation: clean the theme.toml file [`0077387`](https://framagit.org/iGormilhit/portfoliGor/commit/00773873a2658638eb651916aed8300a2c84a6f9) - documentation: clean the theme.toml file [`0077387`](https://git.milhit.ch/igor/portfoligor/commit/00773873a2658638eb651916aed8300a2c84a6f9)
- layout: improve taxonomies pages [`b5dc649`](https://framagit.org/iGormilhit/portfoliGor/commit/b5dc64935a0fd69afdae9980feac1151e07e8b99) - layout: improve taxonomies pages [`b5dc649`](https://git.milhit.ch/igor/portfoligor/commit/b5dc64935a0fd69afdae9980feac1151e07e8b99)
- style: add rules for figure tag [`09fbaa0`](https://framagit.org/iGormilhit/portfoliGor/commit/09fbaa06f90ddbd0ec75424e7c0e7130dc32aefb) - style: add rules for figure tag [`09fbaa0`](https://git.milhit.ch/igor/portfoligor/commit/09fbaa06f90ddbd0ec75424e7c0e7130dc32aefb)
- layout: improve dates logic [`74181ec`](https://framagit.org/iGormilhit/portfoliGor/commit/74181ecd54e27a892faf8ef0739ee175ad207ffd) - layout: improve dates logic [`74181ec`](https://git.milhit.ch/igor/portfoligor/commit/74181ecd54e27a892faf8ef0739ee175ad207ffd)
- style: set overflow to auto for pre tag [`f3189b4`](https://framagit.org/iGormilhit/portfoliGor/commit/f3189b44787d58fac71c286257ce34ed9df60301) - style: set overflow to auto for pre tag [`f3189b4`](https://git.milhit.ch/igor/portfoligor/commit/f3189b44787d58fac71c286257ce34ed9df60301)
- layout: improve date displayed [`55dadc7`](https://framagit.org/iGormilhit/portfoliGor/commit/55dadc702cbe691c63ad12f48d03a489cd862169) - layout: improve date displayed [`55dadc7`](https://git.milhit.ch/igor/portfoligor/commit/55dadc702cbe691c63ad12f48d03a489cd862169)
- layout: add a partial for blog post data [`02d6d2f`](https://framagit.org/iGormilhit/portfoliGor/commit/02d6d2f08623ed894085ee4f0594c383fba9c167) - layout: add a partial for blog post data [`02d6d2f`](https://git.milhit.ch/igor/portfoligor/commit/02d6d2f08623ed894085ee4f0594c383fba9c167)
- layout: remove the base href [`38566ba`](https://framagit.org/iGormilhit/portfoliGor/commit/38566ba1064dc94f9cc641ba8f5094015ed43d24) - layout: remove the base href [`38566ba`](https://git.milhit.ch/igor/portfoligor/commit/38566ba1064dc94f9cc641ba8f5094015ed43d24)
- style: add rules for code and footnotes [`e27f8a9`](https://framagit.org/iGormilhit/portfoliGor/commit/e27f8a9d46843146a603c581766bd8fd13b6e4f6) - style: add rules for code and footnotes [`e27f8a9`](https://git.milhit.ch/igor/portfoligor/commit/e27f8a9d46843146a603c581766bd8fd13b6e4f6)
- rss: add the default rss template [`f0549ca`](https://framagit.org/iGormilhit/portfoliGor/commit/f0549ca0dd276be6a0d4a856944e063fb8b23373) - rss: add the default rss template [`f0549ca`](https://git.milhit.ch/igor/portfoligor/commit/f0549ca0dd276be6a0d4a856944e063fb8b23373)
- layout: set the viewport meta tag [`2c7e6cf`](https://framagit.org/iGormilhit/portfoliGor/commit/2c7e6cf2d716edd0fda6881375ce76ff0b137f7e) - layout: set the viewport meta tag [`2c7e6cf`](https://git.milhit.ch/igor/portfoligor/commit/2c7e6cf2d716edd0fda6881375ce76ff0b137f7e)
- style: add minimal stylesheet rules [`909c3ca`](https://framagit.org/iGormilhit/portfoliGor/commit/909c3caa9717faa009c85e815309d129228bcd71) - style: add minimal stylesheet rules [`909c3ca`](https://git.milhit.ch/igor/portfoligor/commit/909c3caa9717faa009c85e815309d129228bcd71)
- layout: display basic taxonomies information [`4477b30`](https://framagit.org/iGormilhit/portfoliGor/commit/4477b3033ee9ada7eb3fb89f2ded351a2b16f1bb) - layout: display basic taxonomies information [`4477b30`](https://git.milhit.ch/igor/portfoligor/commit/4477b3033ee9ada7eb3fb89f2ded351a2b16f1bb)
- layout: add default and partials [`498a724`](https://framagit.org/iGormilhit/portfoliGor/commit/498a724195695c837eb31d612df0d0365a9a6e1b) - layout: add default and partials [`498a724`](https://git.milhit.ch/igor/portfoligor/commit/498a724195695c837eb31d612df0d0365a9a6e1b)
- homepage: structure the homepage content [`9b7e39a`](https://framagit.org/iGormilhit/portfoliGor/commit/9b7e39acd22202b39c1988dd5db8e73e281796a0) - homepage: structure the homepage content [`9b7e39a`](https://git.milhit.ch/igor/portfoligor/commit/9b7e39acd22202b39c1988dd5db8e73e281796a0)
- homepage: personnal data [`788c7c6`](https://framagit.org/iGormilhit/portfoliGor/commit/788c7c621bba53a0bff03441518bc43259a09d3c) - homepage: personnal data [`788c7c6`](https://git.milhit.ch/igor/portfoligor/commit/788c7c621bba53a0bff03441518bc43259a09d3c)
- theme: initialize new hugo theme [`3b7347c`](https://framagit.org/iGormilhit/portfoliGor/commit/3b7347cdee8d2a7bf5fa1a412bdb15ea906dd0c3) - theme: initialize new hugo theme [`3b7347c`](https://git.milhit.ch/igor/portfoligor/commit/3b7347cdee8d2a7bf5fa1a412bdb15ea906dd0c3)

View File

@ -125,6 +125,17 @@ postimage: "[file-name.extension]"
postimagedescription: "[Alternate text]" postimagedescription: "[Alternate text]"
``` ```
## Changelog
The Changelog is described in [`CHANGELOG.md`][8]. It's generated by
[`auto-changelog`][9]. The configuration is in [`.auto-changelog`][10].
To generate it, use the following command:
```bash
yarn auto-changelog
```
[1]: https://git.milhit.ch/igor/portfoligor [1]: https://git.milhit.ch/igor/portfoligor
[2]: https://git.milhit.ch/igor/portfoligor/issues [2]: https://git.milhit.ch/igor/portfoligor/issues
[3]: https://gohugo.io/templates/homepage/#add-content-and-front-matter-to-the-homepage [3]: https://gohugo.io/templates/homepage/#add-content-and-front-matter-to-the-homepage
@ -132,3 +143,6 @@ postimagedescription: "[Alternate text]"
[5]: #social-media-metadata [5]: #social-media-metadata
[6]: https://git.milhit.ch/igor/portfoligor/src/branch/dev/LICENSE [6]: https://git.milhit.ch/igor/portfoligor/src/branch/dev/LICENSE
[7]: screenshots/theme-example.png "Screenshot of my own site using this theme" [7]: screenshots/theme-example.png "Screenshot of my own site using this theme"
[8]: ./CHANGELOG.md
[9]: https://github.com/CookPete/auto-changelog
[10]: ./.auto-changelog

25
i18n/en.toml 100644
View File

@ -0,0 +1,25 @@
address = "Address"
audioDownload = "Your browser does not support the audio tag, you can access the file directly with"
categories = "Categories"
contactsPriv = "Personal contacts"
contactsPro = "Professional contacts"
cv = "cv"
defaultImageAlt = "Grayish sheep portrait"
e-mail = "e-mail"
fingerprint = "Fingerprint"
lastCommit = "Last commit modifying this page"
lastUpdate = "Last update"
mobile = "Mobile"
online = "Online"
permalink = "Permalink"
post-infos = "Post information"
pubkey = "Public key"
published = "Published on"
subscribe = "Subscribe"
subscribeToPublications = "Subscribe to posts"
tags = "Tags"
tel = "Phone"
thisLink = "this link"
toSection = "from this section"
toWebsite = "from the website"
xmpp = "xmpp"

View File

@ -1,14 +1,25 @@
[lastCommit] address = "Adresse"
other = "Dernier commit modifiant cette page" audioDownload = "Ton navigateur ne supporte pas la balise audio, tu peux télécharger le fichier avec"
categories = "Catégories&#x202F;"
[post-infos] contactsPriv = "Contacts personnels"
other = "Informations sur le billet" contactsPro = "Contacts professionnels"
cv = "cv"
[permalink] defaultImageAlt = "Portrait de mouton en nuances de gris"
other = "Permalien" e-mail = "e-mail"
fingerprint = "Empreinte"
[contactsPriv] lastCommit = "Dernier commit modifiant cette page"
other = "Contacts personnels" lastUpdate = "Dernière mise à jour&#x202F;"
mobile = "Téléphone mobile"
[contactsPro] online = "En ligne"
other = "Contacts professionnels" permalink = "Permalien"
post-infos = "Informations sur le billet"
pubkey = "Clé publique"
published = "Publié le&#x202F;"
subscribe = "S'abonner"
subscribeToPublications = "S'abonner aux publications"
tags = "Tags&#x202F;"
tel = "Téléphone"
thisLink = "ce lien"
toSection = "de cette section"
toWebsite = "du site"
xmpp = "xmpp"

View File

@ -3,10 +3,12 @@
<header> <header>
<h2>{{.Title}}</h2> <h2>{{.Title}}</h2>
</header> </header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md --> <!-- "{{.Content}}" pulls from the markdown content of the corresponding
_index.md -->
{{.Content}} {{.Content}}
<article class="posts-list"> <article class="posts-list">
<!-- Ranges through content/posts/*.md --> <!-- Ranges through content/posts/*.md in reverse order, then displays
the post title, the date and categories (list-footer template) -->
{{ range .Pages.ByPublishDate.Reverse }} {{ range .Pages.ByPublishDate.Reverse }}
<article> <article>
<a href="{{.Permalink}}">{{.Title}}</a> <a href="{{.Permalink}}">{{.Title}}</a>

View File

@ -2,12 +2,18 @@
<header> <header>
<h2>{{.Title}}</h2> <h2>{{.Title}}</h2>
</header> </header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md --> <!-- "{{.Content}}" pulls from the markdown content of the corresponding
_index.md -->
<article> <article>
<header> <header>
{{.Content }} {{.Content }}
</header> </header>
<article class="posts-list"> <article class="posts-list">
<!--
Ranges pages by the publish date, in reverse order, to display the
post titles of the section from most recent to older. It adds to
the title the date and categories (from lists-footer.html)
-->
{{ range .Pages.ByPublishDate.Reverse }} {{ range .Pages.ByPublishDate.Reverse }}
<article> <article>
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">

View File

@ -2,7 +2,7 @@
<header class="post-header"> <header class="post-header">
<h1 id="title">{{ .Title }}</h1> <h1 id="title">{{ .Title }}</h1>
<!-- <!--
If it's a static page, then the post information are useless and If it's a static page, then the post information is useless and
therefore not displayed. The test checks if the page IS NOT a static therefore not displayed. The test checks if the page IS NOT a static
page. page.
--> -->

View File

@ -2,12 +2,17 @@
<header> <header>
<h2>{{.Title}}</h2> <h2>{{.Title}}</h2>
</header> </header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md --> <!-- "{{.Content}}" pulls from the markdown content of the corresponding
_index.md -->
{{.Content}} {{.Content}}
<article class="terms"> <article class="terms">
<!-- Ranges throught categories, alphabetically, then displays the posts
title with the number of item in the category -->
{{ range .Data.Terms.Alphabetical }} {{ range .Data.Terms.Alphabetical }}
<article class="term"> <article class="term">
<p><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> ({{ .Count }})</p> <p>
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> ({{ .Count }})
</p>
</article> </article>
{{ end }} {{ end }}
</article> </article>

View File

@ -16,17 +16,20 @@
{{ if .IsPage -}} {{ if .IsPage -}}
<a class="nav-item-link" <a class="nav-item-link"
href="{{ .Site.BaseURL }}index.xml" href="{{ .Site.BaseURL }}index.xml"
title="S'abonner aux publications du site">S'abonner title="{{ i18n "subscribeToPublications" }} {{ i18n "toWebsite" }}">
{{ i18n "subscribe" }}
</a> </a>
{{ else if .IsHome -}} {{ else if .IsHome -}}
<a class="nav-item-link" <a class="nav-item-link"
href="{{ .Site.BaseURL }}index.xml" href="{{ .Site.BaseURL }}index.xml"
title="S'abonner aux publications du site">S'abonner title="{{ i18n "subscribeToPublications" }} {{ i18n "toWebsite" }}">
{{ i18n "subscribe" }}
</a> </a>
{{ else if .IsNode -}} {{ else if .IsNode -}}
<a class="nav-item-link" <a class="nav-item-link"
href="{{ .Permalink }}index.xml" href="{{ .Permalink }}index.xml"
title="S'abonner aux publications de cette section">S'abonner title="{{ i18n "subscribeToPublications" }} {{ i18n "toSection" }}">
{{ i18n "subscribe" }}
</a> </a>
{{ end -}} {{ end -}}
</li> </li>

View File

@ -14,7 +14,7 @@
{{- else if .Site.Params.ImageDescription -}} {{- else if .Site.Params.ImageDescription -}}
<meta property="og:image:alt" content="{{ .Site.Params.ImageDescription }}"> <meta property="og:image:alt" content="{{ .Site.Params.ImageDescription }}">
{{- else -}} {{- else -}}
<meta property="og:image:alt" content="Grayish sheep portrait"> <meta property="og:image:alt" content="{{ i18n "defaultImageAlt" }}">
{{ end }} {{ end }}
<meta property="og:locale" content="{{ .Language.Lang }}"> <meta property="og:locale" content="{{ .Language.Lang }}">
{{- if .IsNode }} {{- if .IsNode }}

View File

@ -1,4 +1,4 @@
<h2 id="online">Online</h2> <h2 id="online">{{ i18n "online" }}</h2>
<dl class="home-lists"> <dl class="home-lists">
{{ with .Site.Params.online.git }} {{ with .Site.Params.online.git }}
<dt>Git</dt> <dt>Git</dt>

View File

@ -1,35 +1,43 @@
<h2 id="contactsPriv">{{ i18n "contactsPriv" }}</h2> <h2 id="contactsPriv">{{ i18n "contactsPriv" }}</h2>
<dl class="home-lists"> <dl class="home-lists">
{{ with .Site.Params.contactsPriv.email }} {{ with .Site.Params.contactsPriv.email }}
<dt>e-mail</dt> <dt>{{ i18n "e-mail" }}</dt>
<dd><a href="mailto:{{ . }}" itemprop="email">{{ . }}</a></dd> <dd><a href="mailto:{{ . }}" itemprop="email">{{ . }}</a></dd>
{{ end }} {{ end }}
{{ with .Site.Params.contactsPriv.address }} {{ with .Site.Params.contactsPriv.address }}
<dt>Adresse</dt> <dt>{{ i18n "address" }}</dt>
<dd><span itemprop="address">{{ . }}</span></dd> <dd><span itemprop="address">{{ . }}</span></dd>
{{ end }} {{ end }}
{{ with .Site.Params.contactsPriv.phone }} {{ with .Site.Params.contactsPriv.phone }}
<dt>Tél.</dt> <dt>{{ i18n "tel" }}</dt>
<dd><a href="tel:{{ replace . " " ""}}"><span itemprop="telephone">{{ . }}</span></a></dd> <dd>
<a href="tel:{{ replace . " " ""}}">
<span itemprop="telephone">{{ . }}</span>
</a>
</dd>
{{end}} {{end}}
{{ with .Site.Params.contactsPriv.mobile }} {{ with .Site.Params.contactsPriv.mobile }}
<dt>Tél. mobile</dt> <dt>{{ i18n "mobile" }}</dt>
<dd><a href="tel:{{ replace . " " ""}}"><span itemprop="telephone">{{ . }}</span></a></dd> <dd>
<a href="tel:{{ replace . " " ""}}">
<span itemprop="telephone">{{ . }}</span>
</a>
</dd>
{{end}} {{end}}
{{ with .Site.Params.contactsPriv.publickey }} {{ with .Site.Params.contactsPriv.publickey }}
<dt>Clé publique</dt> <dt>{{ i18n "pubkey" }}</dt>
<dd><a href="/{{ . }}">{{ . }}</a></dd> <dd><a href="/{{ . }}">{{ . }}</a></dd>
{{ end }} {{ end }}
{{ with .Site.Params.contactsPriv.fingerprint }} {{ with .Site.Params.contactsPriv.fingerprint }}
<dt>Empreinte</dt> <dt>{{ i18n "fingerprint" }}</dt>
<dd><code>{{ . }}</code></dd> <dd><code>{{ . }}</code></dd>
{{ end }} {{ end }}
{{ with .Site.Params.contactsPriv.xmpp }} {{ with .Site.Params.contactsPriv.xmpp }}
<dt>XMPP/jabber</dt> <dt class="smallcaps">{{ i18n "xmpp" }}</dt>
<dd>{{ . }}</dd> <dd>{{ . }}</dd>
{{ end }} {{ end }}
{{ with .Site.Params.contactsPriv.cv}} {{ with .Site.Params.contactsPriv.cv}}
<dt>CV</dt> <dt class="smallcaps">{{ i18n "cv" }}</dt>
<dd><a href="/{{ . }}">{{ . }}</a></dd> <dd><a href="/{{ . }}">{{ . }}</a></dd>
{{end}} {{end}}
</dl> </dl>

View File

@ -1,12 +1,12 @@
<details class="post-info no-print"> <details class="post-info no-print">
<summary>{{ i18n "post-infos" }}</summary> <summary>{{ i18n "post-infos" }}</summary>
<ul> <ul>
<li>Publié le&#x202F;: {{ dateFormat "2006-01-02" (default .Date (.PublishDate)) }}</li> <li>{{ i18n "published" }}: {{ dateFormat "2006-01-02" (default .Date (.PublishDate)) }}</li>
{{ if (and (isset .Params "lastmod") (gt (dateFormat "2006-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }} {{ if (and (isset .Params "lastmod") (gt (dateFormat "2006-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }}
<li>Dernière mise à jour&#x202F;: {{ .Lastmod.Format "2006-01-02" }}</li> <li>{{ i18n "lastUpdate" }}: {{ .Lastmod.Format "2006-01-02" }}</li>
{{ end }} {{ end }}
{{ with .Params.categories }} {{ with .Params.categories }}
<li>Catégories&#x202F;: <li>{{ i18n "categories" }}:
<ul> <ul>
{{ range sort . }} {{ range sort . }}
<li class="post-taxonomies"><a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a></li> <li class="post-taxonomies"><a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a></li>
@ -15,7 +15,7 @@
</li> </li>
{{ end }} {{ end }}
{{ with .Params.tags }} {{ with .Params.tags }}
<li>Tags&#x202F;: <li>{{ i18n "tags" }}:
<ul> <ul>
{{ range sort . }} {{ range sort . }}
<li class="post-taxonomies"> <a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a> </li> <li class="post-taxonomies"> <a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a> </li>

View File

@ -1,27 +1,35 @@
<h2 id="contactsPro">{{ i18n "contactsPro" }}</h2> <h2 id="contactsPro">{{ i18n "contactsPro" }}</h2>
<dl class="home-lists"> <dl class="home-lists">
{{ with .Site.Params.contactsPro.email }} {{ with .Site.Params.contactsPro.email }}
<dt>e-mail</dt> <dt>{{ i18n "e-mail" }}</dt>
<dd><a href="mailto:{{ . }}" itemprop="email">{{ . }}</a></dt> <dd><a href="mailto:{{ . }}" itemprop="email">{{ . }}</a></dt>
{{end}} {{end}}
{{ with .Site.Params.contactsPro.address }} {{ with .Site.Params.contactsPro.address }}
<dt>Adresse</dt> <dt>{{ i18n "address" }}</dt>
<dd><span itemprop="address">{{ . }}</span></dd> <dd><span itemprop="address">{{ . }}</span></dd>
{{end}} {{end}}
{{ with .Site.Params.contactsPro.mobile}} {{ with .Site.Params.contactsPro.mobile}}
<dt>Mobile</dt> <dt>{{ i18n "mobile" }}</dt>
<dd><a href="tel:{{ replace . " " ""}}"><span itemprop="telephone">{{ . }}</span></a></dd> <dd>
<a href="tel:{{ replace . " " ""}}">
<span itemprop="telephone">{{ . }}</span>
</a>
</dd>
{{end}} {{end}}
{{ with .Site.Params.contactsPro.phone}} {{ with .Site.Params.contactsPro.phone}}
<dt>Tél.</dt> <dt>{{ i18n "tel" }}</dt>
<dd><a href="tel:{{ replace . " " ""}}"><span itemprop="telephone">{{ . }}</span></a></dd> <dd>
<a href="tel:{{ replace . " " ""}}">
<span itemprop="telephone">{{ . }}</span>
</a>
</dd>
{{end}} {{end}}
{{ with .Site.Params.contactsPro.publickey }} {{ with .Site.Params.contactsPro.publickey }}
<dt>Clé publique</dt> <dt>{{ i18n "pubkey" }}</dt>
<dd><a href="/{{ . }}">{{ . }}</a></dd> <dd><a href="/{{ . }}">{{ . }}</a></dd>
{{end}} {{end}}
{{ with .Site.Params.contactsPro.fingerprint}} {{ with .Site.Params.contactsPro.fingerprint}}
<dt>Empreinte</dt> <dt>{{ i18n "fingerprint" }}</dt>
<dd><code>{{ . }}</code></dd> <dd><code>{{ . }}</code></dd>
{{end}} {{end}}
</dl> </dl>

View File

@ -5,8 +5,9 @@
<source src="/medias/{{ .Get "src" }}.opus" type="audio/opus" codecs="opus"> <source src="/medias/{{ .Get "src" }}.opus" type="audio/opus" codecs="opus">
<source src="/medias/{{ .Get "src" }}.ogg" type="audio/ogg" codecs="vorbis"> <source src="/medias/{{ .Get "src" }}.ogg" type="audio/ogg" codecs="vorbis">
<source src="/medias/{{ .Get "src" }}.mp3" type="audio/mpeg"> <source src="/medias/{{ .Get "src" }}.mp3" type="audio/mpeg">
Your browser does not support the audio tag, you can download the audio {{ i18n "audioDownload" }} <a href="/medias/{{ .Get "src" }}.mp3">
with <a href="/medias/{{ .Get "src" }}.mp3">this link</a> {{ i18n "thisLink" }}
</a>
</audio> </audio>
<figcaption> <figcaption>
<p>{{ .Get "legend" }}</p> <p>{{ .Get "legend" }}</p>

View File

@ -10,7 +10,8 @@
<source src="/medias/{{ .Get "src" }}.opus" type="audio/opus" codecs="opus"> <source src="/medias/{{ .Get "src" }}.opus" type="audio/opus" codecs="opus">
<source src="/medias/{{ .Get "src" }}.ogg" type="audio/ogg" codecs="vorbis"> <source src="/medias/{{ .Get "src" }}.ogg" type="audio/ogg" codecs="vorbis">
<source src="/medias/{{ .Get "src" }}.mp3" type="audio/mpeg"> <source src="/medias/{{ .Get "src" }}.mp3" type="audio/mpeg">
Your browser does not support the audio tag, you can download the audio {{ i18n "audioDownload" }} <a href="/medias/{{ .Get "src"}}.mp3">
with <a href="/medias/{{ .Get "src" }}.mp3">this link</a> {{ i18n "thisLink"}}
</a>
</audio> </audio>
</figure> </figure>

View File

@ -3,7 +3,8 @@
<audio controls> <audio controls>
<source src="https://id-libre.org/live/stream.ogg" type="audio/ogg"> <source src="https://id-libre.org/live/stream.ogg" type="audio/ogg">
<source src="https://id-libre.org/live/stream.mp3" type="audio/mpeg"> <source src="https://id-libre.org/live/stream.mp3" type="audio/mpeg">
Your browser does not support the audio tag, you can access the stream {{ i18n "audioDownload" }} <a href="https://id-libre.org/live/stream.mp3">
directly with <a href="https://id-libre.org/live/stream.mp3">this link</a> {{ i18n "thisLink" }}
</a>
</audio> </audio>
</figure> </figure>