Compare commits

...

10 Commits
v0.2.0 ... HEAD

Author SHA1 Message Date
iGor milhit 9fc7238ea7
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.
- Updates the auto-changelog configuration according to the new git
  repository URL.
- Updates the CHANGELOG.
- Documents the changelog generation in the README.
- Fixes #18.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2022-11-27 12:15:46 +01:00
iGor milhit 282b6bcd85
documentation: update the README to new git repo
- Update the README according to the new git repository URL.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2022-11-07 08:36:51 +01:00
iGor milhit 1aaa6b02b5
gitInfo: configuration of the git repository
- Enables to set the git repository URL and type in the site
  configuration.
- Updates the footer to use that information.
- Updates the contact partial to use the configuration information of a
  custom git website.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2022-11-06 20:50:30 +01:00
iGor milhit 989343ea59
scss: improve the `verse` text layout
- Increase space between paragraph on large screens, except for the last
  paragraph.
- Add a bigger left margin on large screens.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2022-09-05 14:51:34 +02:00
iGor milhit 0c21f00b67
post image: get the image in the atom xml file
* Moves the image from the post header to the main content.
* Fixes an error in the publication date in the atom file.
* Adapts the style of the figure when it's a post image.
* Comments the single page template.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2022-01-02 20:24:06 +01:00
iGor milhit e78fd961ae
text: set font style to em nested in blockquote
* Sets the em font style to normal when it's nested in a blockquote as
  the blockquote font style is already italic.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2021-11-29 21:58:21 +01:00
iGor milhit 40da59a1eb
text: style the new citation block
- Styles the citation block.
- Clarify some rules for figures, but this is not finished yet.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2021-11-29 13:56:36 +01:00
iGor milhit 7a2aa2d1a9
homepage: move the CV file to the personal data
* Moves the CV file from the professional data to the personal data, as
  the CV is related to the person, not the job position.
* This also prepare the creation of a dedicated CV page.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2021-11-23 10:45:14 +01:00
iGor milhit 897b8e6ecf
style: add a stylesheet for printing
* Install the gutenberg framework with yarn.
* Copy the stylesheet to assets/css.
* Configure the resource in the head.html.
* Adapt the templates to hide elements on print.
* Closes #28.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2021-11-04 18:24:16 +01:00
iGor milhit a7c87c947f
layout: fix medias integration
* Limit the figure width for large screens.
* Add a small border to figures.
* Update the changelog.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2021-11-04 11:24:47 +01:00
33 changed files with 934 additions and 145 deletions

View File

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

1
.gitignore vendored
View File

@ -3,7 +3,6 @@
*.css.map
*.sass.map
*.scss.map
assets/css/
### Node, Yarn ###
node_modules/

View File

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

View File

@ -109,6 +109,7 @@ name and image description (max 80 chars, with a trailing dot):
```toml
[params]
Description = "[Small website description]"
Image = "mySite.jpg"
ImageDescription = "[Alternate text]"
@ -124,10 +125,24 @@ postimage: "[file-name.extension]"
postimagedescription: "[Alternate text]"
```
[1]: https://framagit.org/iGormilhit/portfoligor
[2]: https://framagit.org/iGormilhit/portfoligor/-/issues
## 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
[2]: https://git.milhit.ch/igor/portfoligor/issues
[3]: https://gohugo.io/templates/homepage/#add-content-and-front-matter-to-the-homepage
[4]: https://gohugo.io/getting-started/quick-start/#step-3-add-a-theme
[5]: #social-media-metadata
[6]: https://framagit.org/iGormilhit/portfoligor/-/blob/master/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"
[8]: ./CHANGELOG.md
[9]: https://github.com/CookPete/auto-changelog
[10]: ./.auto-changelog

View File

@ -0,0 +1,574 @@
/*!
* Gutenberg
*
* MIT Fabien Sa
* https://github.com/BafS/Gutenberg
*/
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15;
/* 1 */
-webkit-text-size-adjust: 100%;
/* 2 */ }
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0; }
/**
* Render the `main` element consistently in IE.
*/
main {
display: block; }
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0; }
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box;
/* 1 */
height: 0;
/* 1 */
overflow: visible;
/* 2 */ }
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace;
/* 1 */
font-size: 1em;
/* 2 */ }
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent; }
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none;
/* 1 */
text-decoration: underline;
/* 2 */
text-decoration: underline dotted;
/* 2 */ }
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder; }
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace;
/* 1 */
font-size: 1em;
/* 2 */ }
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%; }
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline; }
sub {
bottom: -0.25em; }
sup {
top: -0.5em; }
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none; }
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
/* 1 */
font-size: 100%;
/* 1 */
line-height: 1.15;
/* 1 */
margin: 0;
/* 2 */ }
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input {
/* 1 */
overflow: visible; }
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select {
/* 1 */
text-transform: none; }
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button; }
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0; }
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText; }
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em; }
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box;
/* 1 */
color: inherit;
/* 2 */
display: table;
/* 1 */
max-width: 100%;
/* 1 */
padding: 0;
/* 3 */
white-space: normal;
/* 1 */ }
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline; }
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto; }
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
/* 1 */
padding: 0;
/* 2 */ }
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto; }
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield;
/* 1 */
outline-offset: -2px;
/* 2 */ }
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none; }
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button;
/* 1 */
font: inherit;
/* 2 */ }
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block; }
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item; }
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none; }
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none; }
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box; }
*,
*:before,
*:after,
p:first-letter,
div:first-letter,
blockquote:first-letter,
li:first-letter,
p:first-line,
div:first-line,
blockquote:first-line,
li:first-line {
background: transparent !important;
box-shadow: none !important;
text-shadow: none !important; }
html {
font-size: 16px;
margin: 0;
padding: 0; }
body {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
background: #fff !important;
color: #000 !important;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 1rem;
line-height: 1.5;
margin: 0 auto;
text-rendering: optimizeLegibility; }
p,
blockquote,
table,
ul,
ol,
dl {
margin-bottom: 1.5rem;
margin-top: 0; }
p:last-child,
ul:last-child,
ol:last-child {
margin-bottom: 0; }
h1,
h2,
h3,
h4,
h5,
h6 {
color: #000;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
line-height: 1.2;
margin-bottom: 0.75rem;
margin-top: 0; }
h1 {
font-size: 2.5rem; }
h2 {
font-size: 2rem; }
h3 {
font-size: 1.75rem; }
h4 {
font-size: 1.5rem; }
h5 {
font-size: 1.25rem; }
h6 {
font-size: 1rem; }
a, a:visited {
color: #000;
text-decoration: underline;
word-wrap: break-word; }
table {
border-collapse: collapse; }
thead {
display: table-header-group; }
table,
th,
td {
border-bottom: 1px solid #000; }
td,
th {
padding: 8px 16px;
page-break-inside: avoid; }
code,
pre,
kbd {
border: 1px solid #bbb;
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
font-size: 85%; }
code,
kbd {
padding: 3px; }
pre {
margin-bottom: 1.5rem;
padding: 10px 12px; }
pre code,
pre kbd {
border: 0; }
::-webkit-input-placeholder {
color: transparent; }
:-moz-placeholder {
color: transparent; }
::-moz-placeholder {
color: transparent; }
:-ms-input-placeholder {
color: transparent; }
blockquote {
border: 0;
border-left: 5px solid #bbb;
margin-left: 1px;
padding: 12px 1.5rem; }
[dir='rtl'] blockquote {
border-left: 0;
border-right: 5px solid #bbb;
margin-left: 0;
margin-right: 1px; }
blockquote:first-child {
margin-top: 0; }
blockquote p:last-child,
blockquote ul:last-child,
blockquote ol:last-child {
margin-bottom: 0; }
blockquote footer {
display: block;
font-size: 80%; }
img {
border: 0;
display: block;
max-width: 100% !important;
vertical-align: middle; }
hr {
border: 0;
border-bottom: 2px solid #bbb;
height: 0;
margin: 2.25rem 0;
padding: 0; }
dt {
font-weight: bold; }
dd {
margin: 0;
margin-bottom: 0.75rem; }
abbr[title],
acronym[title] {
border: 0;
text-decoration: none; }
table,
blockquote,
pre,
code,
figure,
li,
hr,
ul,
ol,
a,
tr {
page-break-inside: avoid; }
h2,
h3,
h4,
p,
a {
orphans: 3;
widows: 3; }
h1,
h2,
h3,
h4,
h5,
h6 {
page-break-after: avoid;
page-break-inside: avoid; }
h1 + p,
h2 + p,
h3 + p {
page-break-before: avoid; }
img {
page-break-after: auto;
page-break-before: auto;
page-break-inside: avoid; }
pre {
white-space: pre-wrap !important;
word-wrap: break-word; }
body {
padding-bottom: 2.54cm;
padding-left: 1.8cm;
padding-right: 1.8cm;
padding-top: 2.54cm; }
a[href^='http']:after, a[href^='ftp']:after {
content: " (" attr(href) ")";
font-size: 80%; }
a[href$='.jpg']:after, a[href$='.jpeg']:after, a[href$='.gif']:after, a[href$='.png']:after {
display: none; }
abbr[title]:after,
acronym[title]:after {
content: " (" attr(title) ")"; }
.page-break,
.break-before,
.page-break-before {
page-break-before: always; }
.break-after,
.page-break-after {
page-break-after: always; }
.avoid-break-inside {
page-break-inside: avoid; }
.no-print {
display: none; }
a.no-reformat:after {
content: ''; }
abbr[title].no-reformat:after,
acronym[title].no-reformat:after {
content: ''; }
.no-reformat abbr:after,
.no-reformat acronym:after,
.no-reformat a:after {
content: ''; }

View File

@ -0,0 +1 @@
html,body{font-size:1.25rem}code,figure p,.footnotes,.footnote-ref,.main-footer,nav,.post-info,.posts-list footer{font-size:1rem}#content{line-height:1.4}.main-footer ul{display:flex;align-items:center;justify-content:flex-end;border-top:solid .1em #e1e1e1;padding-top:1em;margin-bottom:1em}.main-footer li{list-style:none;margin-right:.5em}.smallcaps{font-variant:small-caps}.main-header section{display:flex;flex-direction:column;border-bottom:solid .1em #e1e1e1;padding-bottom:1em}.main-header header{flex-grow:1}.title{display:flex;align-items:center}.avatar{border-radius:50%;width:5rem;margin-right:1rem}nav{margin-right:.5em;align-self:flex-end}.container{max-width:35rem;margin:0 auto}body{display:flex;flex-direction:column;height:100vh}main{flex-grow:1}.posts-list{display:flex;flex-direction:column;margin-bottom:.5em}dl{display:inline-flex;flex-flow:row;flex-wrap:wrap;width:100%;overflow:visible}dt{flex:0 0 39%;word-wrap:anywhere}dt::after{content:":"}dd{flex:0 0 59%;margin-left:auto;text-align:left}.contents{padding:0}.contents li{list-style:none}.audio audio,.stream audio{width:100%;border-radius:.5rem}.audio figcaption p,.stream figcaption p{text-align:left;font-size:1rem;padding-left:.5rem}.audio>p,.stream>p{font-size:1rem;font-variant:small-caps}figure{background-color:#d3d3d3;padding:.4rem;border-radius:5px;margin-right:.4rem;margin-left:.4rem}figure img{width:100%}figure p{text-align:center;margin:.2rem 0}.post-header{margin:1em 0 1em 0}.post-header h1{margin:0}.post-info{display:flex;flex-wrap:wrap;padding:0;margin-top:0}.post-info>li{padding-right:.5rem}.post-info li{list-style:none;display:flex}.post-info li>ul{display:flex;padding:0;white-space:pre}.post-info li>ul:before{content:" ";white-space:pre}.post-taxonomies+.post-taxonomies:before{content:", "}code,pre{background-color:#d3d3d3;border-radius:5px;padding:.2rem}pre{overflow:auto;max-width:95vw}.terms{display:flex;flex-wrap:wrap}.term{margin-right:1rem}/*# sourceMappingURL=style.css.map */

View File

@ -44,7 +44,7 @@ pre {
background-color: $darker-polar;
}
figure {
// background-color: $darkest-polar;
// box-shadow: 0 2px 10px 5px $the-darkiest-polar;
mark {
background-color: $aurora-yellow;
color: $the-darkiest-polar;
}

View File

@ -12,7 +12,7 @@ body {
}
code,
figure p,
figure figcaption,
.footnotes,
.footnote-ref,
.list-footer,

View File

@ -1,5 +1,13 @@
///////////////////
// //
// MEDIAS //
// //
///////////////////
.audio,
.stream {
border: $dark-polar solid 1px;
audio {
border-radius: .5rem;
width: 100%;
@ -50,13 +58,34 @@ figure {
margin-left: .4rem;
margin-right: .4rem;
padding: .4rem;
border: $dark-polar solid 1px;
@include breakpoint(laptop) {
max-width: 80%;
}
img {
width: 100%;
}
p {
margin: .2rem 0;
text-align: center;
figcaption {
font-size: $font-size-small;
p {
margin: .2rem 0;
text-align: center;
}
}
}
.post-image {
border: none;
margin-left: 0;
padding-left: 0;
@include breakpoint(laptop) {
max-width: 97%;
margin-right: 0;
padding-right: 0;
}
}

View File

@ -10,10 +10,6 @@
}
}
.post-image {
width: 97%;
}
.post-info {
> ul {

View File

@ -6,9 +6,15 @@
.verse {
line-height: $line-height-verse;
@include breakpoint(laptop) {
margin-left: 3rem;
}
p {
margin-bottom: 1rem;
p:not(:last-child) {
margin-bottom: $verse-p-bottom-space;
@include breakpoint(laptop) {
margin-bottom: $verse-p-bottom-space-larger;
}
}
br {
@ -22,3 +28,36 @@
text-decoration: none;
}
}
.citation {
border: none;
margin-left: 0;
blockquote {
margin: 0;
margin-left: .5rem;
@include breakpoint(laptop) {
margin-left: 1rem;
}
border-left: solid $lighter-polar .5rem;
padding-left: .5rem;
@include breakpoint(laptop) {
padding-left: 1rem;
}
p {
text-align: left;
margin: .4rem 0;
}
em {
font-style: normal;
}
figcaption {
text-align: right;
margin-top: 1rem;
}
}
}

View File

@ -18,6 +18,8 @@ $font-size-base: 1.25rem !default; // 25 px
$font-size-small: .9rem; // 18 px
$line-height-base: 1.4;
$line-height-verse: 1.3;
$verse-p-bottom-space: 2rem;
$verse-p-bottom-space-larger: 3rem;
/////////////////////

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

View File

@ -3,10 +3,12 @@
<header>
<h2>{{.Title}}</h2>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
<!-- "{{.Content}}" pulls from the markdown content of the corresponding
_index.md -->
{{.Content}}
<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 }}
<article>
<a href="{{.Permalink}}">{{.Title}}</a>

View File

@ -29,7 +29,7 @@
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .PublishDate.Format "2006-01-02" | safeHTML }}</pubDate>
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>

View File

@ -2,12 +2,18 @@
<header>
<h2>{{.Title}}</h2>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
<!-- "{{.Content}}" pulls from the markdown content of the corresponding
_index.md -->
<article>
<header>
{{.Content }}
</header>
<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 }}
<article>
<a href="{{ .Permalink }}">

View File

@ -1,17 +1,30 @@
{{ define "main" }}
<header class="post-header">
{{ if .Params.postimage -}}
<img class="post-image"
src="/images/{{ .Params.postimage }}"
alt="{{ .Params.postimagedescription }}">
{{ end }}
<h1 id="title">{{ .Title }}</h1>
<!--
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
page.
-->
{{- if ne .Layout "static" }}
{{- partial "post-info.html" . -}}
{{ end }}
</header>
<!--
If in the front matter, the layout key is set to verse, then the class is
added.
-->
<article {{ if eq .Layout "verse" }} class="content, {{ .Layout }}"
{{ else }} class="content" {{ end -}}>
<!--
Displays the image associated to the post, if set in the front matter.
-->
{{ if .Params.postimage -}}
<figure class="post-image">
<img src="/images/{{ .Params.postimage }}"
alt="{{ .Params.postimagedescription }}">
</figure>
{{ end }}
{{ .Content -}}
</article>
{{ end -}}

View File

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

View File

@ -1,13 +1,13 @@
{{ define "main" }}
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
{{ if not .Site.Params.online.hide }}
{{ if .Site.Params.online }}
{{ partial "online" . }}
{{ end }}
{{if not .Site.Params.contactsPriv.hide }}
{{ if .Site.Params.contactsPriv }}
{{ partial "perso" .}}
{{ end }}
{{if not .Site.Params.contactsPro.hide }}
{{ if .Site.Params.contactsPro }}
{{ partial "pro" . }}
{{ end }}
</main>

View File

@ -1,7 +1,8 @@
<footer class="main-footer">
{{ $currentPage := . -}}
{{ $siteSources := .Site.Params.siteSources }}
<footer class="main-footer no-print">
<nav role="navigation" aria-label="Secondary">
<ul>
{{ $currentPage := . -}}
{{ range sort .Site.Menus.footer -}}
<li class="nav-item">
<a class="nav-item-link{{if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} active{{end}}"
@ -13,8 +14,14 @@
{{ $git := . }}
<li>
<code>
<a href="https://framagit.org/iGormilhit/igor.milhit/-/commit/{{- $git.Hash -}}"
title="Dernier commit modifiant cette page">
<a href="
{{- if eq $siteSources.type "gitlab" -}}
{{ $siteSources.url }}/-/
{{- else -}}
{{ $siteSources.url }}/
{{- end -}}
commit/{{- $git.Hash -}}"
title="{{ i18n "lastCommit" }}">
{{ $git.AbbreviatedHash }}
</a>
</code>

View File

@ -12,6 +12,9 @@
{{- $styles := resources.Get "scss/main.scss" | toCSS $options | minify -}}
<link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">
{{- end }}
{{ $options := (dict "targetPath" "print.css" ) -}}
{{- $print := resources.Get "css/gutenberg.css" | toCSS $options | minify -}}
<link rel="stylesheet" href="{{ $print.Permalink }}" media="print">
{{ range .AlternativeOutputFormats }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end }}

View File

@ -1,9 +1,9 @@
<header class="main-header">
<a href="{{ .Site.BaseURL }}" class="title">
<img class="avatar" src="{{ .Site.BaseURL }}images/avatar.png">
<a href="{{ .Site.BaseURL }}" class="title no-reformat">
<img class="avatar no-print" src="{{ .Site.BaseURL }}images/avatar.png">
<h1>{{ .Site.Title }}</h1>
</a>
<nav role="navigation" aria-label="Primary">
<nav class="no-print" role="navigation" aria-label="Primary">
<ul>
{{ $currentPage := . -}}
{{ range sort .Site.Menus.main -}}
@ -16,17 +16,20 @@
{{ if .IsPage -}}
<a class="nav-item-link"
href="{{ .Site.BaseURL }}index.xml"
title="S'abonner aux publications du site">S'abonner
title="{{ i18n "subscribeToPublications" }} {{ i18n "toWebsite" }}">
{{ i18n "subscribe" }}
</a>
{{ else if .IsHome -}}
<a class="nav-item-link"
href="{{ .Site.BaseURL }}index.xml"
title="S'abonner aux publications du site">S'abonner
title="{{ i18n "subscribeToPublications" }} {{ i18n "toWebsite" }}">
{{ i18n "subscribe" }}
</a>
{{ else if .IsNode -}}
<a class="nav-item-link"
href="{{ .Permalink }}index.xml"
title="S'abonner aux publications de cette section">S'abonner
title="{{ i18n "subscribeToPublications" }} {{ i18n "toSection" }}">
{{ i18n "subscribe" }}
</a>
{{ end -}}
</li>

View File

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

View File

@ -1,16 +1,20 @@
<h2 id="online">Online</h2>
<h2 id="online">{{ i18n "online" }}</h2>
<dl class="home-lists">
{{ with .Site.Params.online.git }}
<dt>Git</dt>
<dd><a href="{{ . }}" rel="me">{{ . }}</a></dd>
{{ end }}
{{ with .Site.Params.online.github }}
<dt>GitHub</dt>
<dd><a href="https://github.com/{{ . }}">{{ . }}</a></dd>
<dd><a href="https://github.com/{{ . }}" rel="me">{{ . }}</a></dd>
{{ end }}
{{ with .Site.Params.online.framagit }}
<dt>Framagit</dt>
<dd><a href="https://framagit.org/{{ . }}">{{ . }}</a></dd>
<dd><a href="https://framagit.org/{{ . }}" rel="me">{{ . }}</a></dd>
{{ end }}
{{ with .Site.Params.online.mastodon }}
<dt>mastodon</dt>
<dd><a href="{{ . }}">{{ . }}</a></dd>
<dd><a href="{{ . }}" rel="me">{{ . }}</a></dd>
{{ end }}
{{ with .Site.Params.online.twitter }}
<dt>Twitter</dt>
@ -32,5 +36,4 @@
<dt>Discogs</dt>
<dd><a href="https://www.discogs.com/user/{{ . }}">{{ . }}</a></dd>
{{ end }}
</dl>

View File

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

View File

@ -1,12 +1,12 @@
<details class="post-info">
<details class="post-info no-print">
<summary>{{ i18n "post-infos" }}</summary>
<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)))) }}
<li>Dernière mise à jour&#x202F;: {{ .Lastmod.Format "2006-01-02" }}</li>
<li>{{ i18n "lastUpdate" }}: {{ .Lastmod.Format "2006-01-02" }}</li>
{{ end }}
{{ with .Params.categories }}
<li>Catégories&#x202F;:
<li>{{ i18n "categories" }}:
<ul>
{{ range sort . }}
<li class="post-taxonomies"><a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a></li>
@ -15,7 +15,7 @@
</li>
{{ end }}
{{ with .Params.tags }}
<li>Tags&#x202F;:
<li>{{ i18n "tags" }}:
<ul>
{{ range sort . }}
<li class="post-taxonomies"> <a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a> </li>

View File

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

View File

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

View File

@ -3,7 +3,8 @@
<audio controls>
<source src="https://id-libre.org/live/stream.ogg" type="audio/ogg">
<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
directly with <a href="https://id-libre.org/live/stream.mp3">this link</a>
{{ i18n "audioDownload" }} <a href="https://id-libre.org/live/stream.mp3">
{{ i18n "thisLink" }}
</a>
</audio>
</figure>

View File

@ -8,5 +8,8 @@
"license": "MIT",
"devDependencies": {
"auto-changelog": "^2.0.0"
},
"dependencies": {
"gutenberg-css": "^0.6.1"
}
}

View File

@ -18,6 +18,13 @@ commander@^5.0.0:
resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae"
integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==
gutenberg-css@^0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/gutenberg-css/-/gutenberg-css-0.6.1.tgz#dd06c38ec3a33e6bb05a6d3cd2682c96d8b6eaf4"
integrity sha512-6OKs0SsqMhU68sBPYvm0imc2Wa4s7W6QzwSUq5vM3GIqsAcd5hV5RvW7Natp1hbJ3go8B3xDPdYSb7zu3vDkbw==
dependencies:
normalize.css "^8.0.1"
handlebars@^4.7.3:
version "4.7.7"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1"
@ -47,6 +54,11 @@ node-fetch@^2.6.0:
dependencies:
whatwg-url "^5.0.0"
normalize.css@^8.0.1:
version "8.0.1"
resolved "https://registry.yarnpkg.com/normalize.css/-/normalize.css-8.0.1.tgz#9b98a208738b9cc2634caacbc42d131c97487bf3"
integrity sha512-qizSNPO93t1YUuUhP22btGOo3chcvDFqFaj2TRybP0DMxkHOCTYwp3n34fel4a31ORXy4m1Xq0Gyqpb5m33qIg==
parse-github-url@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/parse-github-url/-/parse-github-url-1.0.2.tgz#242d3b65cbcdda14bb50439e3242acf6971db395"