From bd50d2780ab459e5da674eaaf2120076f85495e7 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Thu, 28 May 2026 06:59:55 +0200 Subject: [PATCH] =?UTF-8?q?wip=20site:=20r=C3=A9=C3=A9crit=20la=20page=20d?= =?UTF-8?q?'accueil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Déplace tout ce qui concerne le thème dans... le thème. Pourquoi s'évertuer à avoir un thème générique alors que je suis le seul à l'utiliser ? Co-Authored-by: iGor milhit --- assets/scss/_stream.scss | 43 --------------- assets/scss/main.scss | 20 ------- content/_index.md | 80 ---------------------------- content/à-propos.md | 4 ++ hugo.yaml | 51 +++++------------- i18n/en.toml | 2 - i18n/fr.toml | 2 - layouts/_default/baseof.html | 15 ------ layouts/_default/section.html | 34 ------------ layouts/partials/header.html | 57 -------------------- layouts/partials/home_post_list.html | 21 -------- layouts/partials/stream.html | 18 ------- layouts/shortcodes/abbr.html | 4 -- layouts/shortcodes/blockquote.html | 80 ---------------------------- static/js/on_fiber.js | 16 ------ themes/portfoliGor | 2 +- 16 files changed, 17 insertions(+), 432 deletions(-) delete mode 100644 assets/scss/_stream.scss delete mode 100644 assets/scss/main.scss delete mode 100644 content/_index.md delete mode 100644 i18n/en.toml delete mode 100644 i18n/fr.toml delete mode 100644 layouts/_default/baseof.html delete mode 100644 layouts/_default/section.html delete mode 100644 layouts/partials/header.html delete mode 100644 layouts/partials/home_post_list.html delete mode 100644 layouts/partials/stream.html delete mode 100644 layouts/shortcodes/abbr.html delete mode 100644 layouts/shortcodes/blockquote.html delete mode 100644 static/js/on_fiber.js diff --git a/assets/scss/_stream.scss b/assets/scss/_stream.scss deleted file mode 100644 index d2dc9e1..0000000 --- a/assets/scss/_stream.scss +++ /dev/null @@ -1,43 +0,0 @@ -// The following rules are styling the stream player -// that I'm using on top of live section pages. -// It doesn't belong to the theme, but to my website -// so it is here. - -@use "@picocss/pico/scss/colors/index" as *; - -.stream { - .status-player { - display: flex; - - audio { - border-radius: 0 var(--pico-border-radius) var(--pico-border-radius) 0; - } - } -} - -// Rules used by the off and on classes below -@mixin status { - display: flex; - border-radius: var(--pico-border-radius) 0 0 var(--pico-border-radius); - flex-grow: 1; - flex-direction: column; - justify-content: space-around; - text-transform: uppercase; - font-weight: bold; - text-align: center; - padding: 0 calc(var(--pico-spacing)/2); - margin: 0; - color: $grey-50; -} - -.off { - @include status; - background-color: $red-500; -} - -.on { - @include status; - background-color: $green-500; -} - -// End of the stream section diff --git a/assets/scss/main.scss b/assets/scss/main.scss deleted file mode 100644 index 7f355bf..0000000 --- a/assets/scss/main.scss +++ /dev/null @@ -1,20 +0,0 @@ -//////////////////// -// // -// Includes // -// // -//////////////////// - -// Overwrite the main SCSS theme file -// to add the stream rules that doesn't belong -// to the theme. - -@use "picocss"; /* The pico css framework, customized */ -@use "fonts"; /* The font face and fonts settings */ -@use "variables"; /* Overrides the pico css variables and sets others */ -@use "layout"; /* Main structure display */ -@use "header"; -@use "footer"; -@use "lists"; /* Lists, post-infos, posts-lists */ -@use "medias"; /* Audio, streams, figures, post-images */ -@use "stream"; /* Specific to the stream player */ -@use "texts"; diff --git a/content/_index.md b/content/_index.md deleted file mode 100644 index e509355..0000000 --- a/content/_index.md +++ /dev/null @@ -1,80 +0,0 @@ ---- -title: "Accueil" -date: 2019-03-14T06:32:39+01:00 -draft: false ---- - -## À la ville… - -Vieux comme la [crise du pétrole][cp], je suis né entre des livres, des taches -d‘encre et quelques [vinyles][vinyl]. Les noyaux des centrales nucléaires se -sont [mis à fusionner][wpfusion], les empires qui suivirent la fin des empires -[s‘écroulèrent][wpurss], s‘écroulent encore, et à la croissance des montagnes -de papiers s‘ajoute la croissance des montagnes de déchets électroniques. Au -milieu de cette dématérialisation joyeuse, j‘observe les [traces -éphémères][blog] de mon cheminement chaotique. - -## Comme au bureau ? - -### Aujourd'hui - -Depuis avril 2022, je travaille comme -bibliothécaire spécialiste pour la -discipline [*médecine clinique*][mc] à la -bibliothèque de l'Université de Genève, sur le -site du *Centre médical universitaire*. Et c'est avec un grand plaisir que je -retrouve des activités plus proches des personnes utilisant les services d'une -bibliothèque, que ce soit à l'accueil, pour la gestion des collection et dans -le cadre de formations. - -### Jusqu'ici - -De métier, je suis *Spécialiste -{{< smallcaps "hes" >}} -en information documentaire*, ce que je traduirais volontiers par -*artisan en sciences de l’information*, afin de souligner que les travailleurs -et travailleuses *incarnent* des savoir-faire construits patiemment. Plus -précisément, la filière que j‘ai suivie formait des archivistes, -bibliothécaires et documentalistes. Une formation polyvalente donc, enrichie -par des méthodes et des outils numériques, que ce soit pour fabriquer des -documents, structurer de l‘information ou essayer de travailler à plusieurs, ce -qui n‘est guère nouveau dans l‘histoire des [espèces humaines][homo], mais qui -est à la fois facilité et rendu complexe par la numérisation du monde, ou plus -modestement d‘une partie de celui-ci. - -Une [fameuse vidéo][minitel2.0] et un intérêt marqué pour l’[informatique -libre][libre] ont orienté ma curiosité vers des champs particuliers, mais en -réalité centraux dans notre paysage passablement webocentré : le web, les -serveurs, l‘auto-hébergement (au moins partiel), les {{< smallcaps "sigb" >}} , -les {{< smallcaps "cms" >}}, les [fabriques de publication][fabriques], le -format de balisage léger markdown, LaTeX, pandoc, etc. - -Ces orientations m‘ont amené à rejoindre -de 2016 à 2021 -l‘équipe [{{< smallcaps "rero+" >}}][rero+], -afin de participer aux projets [rero21][rero21], à savoir -[{{< smallcaps "rero ils" >}}][reroils], un système de gestion de bibliothèques -et de réseaux de bibliothèques et [{{< smallcaps "sonar" >}}][sonar], un -service d‘archives ouvertes, les deux sous licence AGPL. J‘y ai participé -essentiellement comme *scrum master*, -mais également pour l‘élaboration des spécifications du point de vue métier, -ainsi qu‘à la coordination avec les bibliothécaires des clients et partenaires -de {{< smallcaps "rero+" >}}. - -[cp]: https://fr.wikipedia.org/wiki/Premier_choc_pétrolier "Article Wikipedia sur le Premier choc pétrolier" -[vinyl]: https://www.discogs.com/fr/user/ignami/collection?sort=artist&sort_order=asc "Mon compte Discogs" -[wpfusion]: https://fr.wikipedia.org/wiki/Fusion_du_c%C5%93ur_d'un_r%C3%A9acteur_nucl%C3%A9aire#Cas_r.C3.A9els "Section Cas réels de l'article Wikipedia sur la Fusion du coœur d'un réacteur nucléaire" -[wpurss]: https://fr.wikipedia.org/wiki/Union_des_r%C3%A9publiques_socialistes_sovi%C3%A9tiques#Derni.C3.A8res_ann.C3.A9es_de_l.27URSS_.281985-1991.29 "Section Dernières années de l'URSS de l'article Wikipedia sur l'URSS" -[blog]: /blog -[pandoc]: https://pandoc.org/ "site du logiciel Pandoc" -[libre]: https://fr.wikipedia.org/wiki/Logiciel_libre -[rero+]: https://rero.ch -[fondation-rero+]: https://www.rero.ch/a-propos/la-fondation -[homo]: https://fr.wikipedia.org/wiki/Homo -[minitel2.0]: -https://video.lqdn.fr/videos/watch/edd2b881-f3dd-42e5-b367-42c87c385c07 "Minitel 2.0 par Benjamin Bayart" -[fabriques]: https://www.quaternum.net/2020/04/29/les-fabriques-de-publication/ -[rero21]: https://rero21.ch -[reroils]: https://github.com/rero/rero-ils -[sonar]: https://github.com/rero/sonar -[mc]: https://www.unige.ch/biblio/fr/disciplines/medecine-clinique diff --git a/content/à-propos.md b/content/à-propos.md index 9e5c764..a34946a 100644 --- a/content/à-propos.md +++ b/content/à-propos.md @@ -40,6 +40,10 @@ des contenus que je partage et dont je ne suis pas l‘auteur, tout le site peut être copié, modifié, repris, à condition de me mentionner comme auteur de la première version, comme le prévoit la licence [{{< smallcaps "cc-by" >}}][6]. +## Contact + +{{< contact-email >}} + Si tu as des questions ou des remarques n‘hésite pas à me contacter [par le moyen qui te convient le plus][10]. diff --git a/hugo.yaml b/hugo.yaml index f4e6c43..fa7c366 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,6 +1,6 @@ baseURL: https://igor.milhit.ch/ DefaultContentLanguage: fr -title: iGor milhit +title: igor.milhit theme: portfoliGor enableGitInfo: true paginate: 0 @@ -43,26 +43,6 @@ menu: title: À propos de ce site web url: /à-propos/ weight: -2 - footer: - - identifier: credits - name: Crédits - url: /à-propos/#crédits - weight: -2 - - identifier: contacts - name: Contacts - title: Me contacter - url: /#contacts-priv - weight: -1 - - identifier: sources - name: Sources - title: Sources du site - url: https://git.milhit.ch/igor/igor.milhit - weight: 2 - - identifier: licence - name: cc-by - title: Licence Creative Commons By 4.0 - url: http://creativecommons.org/licenses/by/4.0/ - weight: 1 permalinks: posts: :slug blog: :slug @@ -84,29 +64,22 @@ params: ImageDescription: Portrait de mouton aux couleurs sepia. author: name: iGor milhit - email: igor@milhit.ch - siteSources: + email: im@ignami.aleeas.com + # siteSources: # Git repository of the website - url: https://git.milhit.ch/igor/igor.milhit + # url: https://git.milhit.ch/igor/igor.milhit # Which kind of git forge is it? GitHub, a Gitlab instance, # a Gitea or Forgejo intance? One of github, gitlab, gitea - type: gitea + # type: gitea # Professional contact data - contactsPro: - address: Rue Michel-Servet 1, 1211 Genève 4 - phone: +41 22 379 59 30 - email: igor.milhit@unige.ch + # contactsPro: + # address: Rue Michel-Servet 1, 1211 Genève 4 + # phone: +41 22 379 59 30 + # email: igor.milhit@unige.ch # Personal contact data - contactsPriv: - address: Ch. des Clochettes 16, 1206 Genève - mobile: +41 76 552 80 59 - email: igor@milhit.ch - publickey: igor-milhit-pub.asc - fingerprint: 843D 0CB6 A576 D7BE 4BF6 A63B 692D 97C3 D022 8A99 - xmpp: igor@milhit.ch - cv: cv-igor-milhit.pdf - online: - git: https://git.milhit.ch/igor + # contact: + # email: im@ignami.aleeas.com local_include: + # Sets the script for the on/off button of the live player. js: on_fiber.js home_post_list: true diff --git a/i18n/en.toml b/i18n/en.toml deleted file mode 100644 index e6e9f08..0000000 --- a/i18n/en.toml +++ /dev/null @@ -1,2 +0,0 @@ -announcedLive = "Announce of the next live!" -announce = "Announce!" diff --git a/i18n/fr.toml b/i18n/fr.toml deleted file mode 100644 index e6e5886..0000000 --- a/i18n/fr.toml +++ /dev/null @@ -1,2 +0,0 @@ -announcedLive = "Annonce du prochain live !" -announce = "Annonce !" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index 356b64c..0000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,15 +0,0 @@ - - -{{ partial "head.html" . }} - - {{- partial "header.html" . -}} -
- {{- block "main" . }}{{- end }} -
- {{- partial "footer.html" . -}} - - {{ if .Params.local_include }} - - {{ end }} - diff --git a/layouts/_default/section.html b/layouts/_default/section.html deleted file mode 100644 index 42b0721..0000000 --- a/layouts/_default/section.html +++ /dev/null @@ -1,34 +0,0 @@ -{{ define "main" }} -
-

{{.Title}}

-
- -
-
- {{.Content }} -
-
- - {{ range .Pages.ByPublishDate.Reverse }} - - {{ end }} -
-
-{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html deleted file mode 100644 index 15aef03..0000000 --- a/layouts/partials/header.html +++ /dev/null @@ -1,57 +0,0 @@ -
- - {{ if .Params.local_include }} - {{ partial "stream.html" }} - {{ end }} -
diff --git a/layouts/partials/home_post_list.html b/layouts/partials/home_post_list.html deleted file mode 100644 index 31f9de1..0000000 --- a/layouts/partials/home_post_list.html +++ /dev/null @@ -1,21 +0,0 @@ -
-

{{ i18n "lastPosts" }}

- - {{ range first 5 .Site.RegularPages.ByPublishDate.Reverse }} - - {{ end }} -
diff --git a/layouts/partials/stream.html b/layouts/partials/stream.html deleted file mode 100644 index 7c54f00..0000000 --- a/layouts/partials/stream.html +++ /dev/null @@ -1,18 +0,0 @@ -
-
-

- -
-
-

- Écouter le flux (s'il est « on »). - Pour utiliser ton propre client : - OGG - MP3 -

-
-
diff --git a/layouts/shortcodes/abbr.html b/layouts/shortcodes/abbr.html deleted file mode 100644 index 79fbfde..0000000 --- a/layouts/shortcodes/abbr.html +++ /dev/null @@ -1,4 +0,0 @@ - - - -{{ .Get "text" }} diff --git a/layouts/shortcodes/blockquote.html b/layouts/shortcodes/blockquote.html deleted file mode 100644 index 3ec66f5..0000000 --- a/layouts/shortcodes/blockquote.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - -{{ $.Scratch.Set "bl_lang" false }} -{{ $.Scratch.Set "bl_author" false }} -{{ $.Scratch.Set "bl_source" false }} -{{ $.Scratch.Set "bl_link" false }} -{{ $.Scratch.Set "bl_title" false }} - -{{ if .IsNamedParams }} - {{ $.Scratch.Set "bl_lang" (.Get "lang") }} - {{ $.Scratch.Set "bl_author" (.Get "author") }} - {{ $.Scratch.Set "bl_source" (.Get "source") }} - {{ $.Scratch.Set "bl_link" (.Get "link") }} - {{ $.Scratch.Set "bl_title" (.Get "title") }} -{{ else }} - -{{ end }} - - - -{{ with $.Scratch.Get "bl_title" }} - -{{ else }} - {{ with $.Scratch.Get "bl_link" }} - {{ range last 1 (split ($.Scratch.Get "bl_link" ) "://") }} - {{ $.Scratch.Set "title_without_protocol" . }} - {{ end }} - {{ range last 1 (split ($.Scratch.Get "title_without_protocol" ) "www.") }} - {{ $.Scratch.Set "title_without_protocol" . }} - {{ end }} - {{ $.Scratch.Set "bl_title" ($.Scratch.Get "title_without_protocol") }} - - - {{ if (gt (len ($.Scratch.Get "title_without_protocol") ) 32) }} - {{ $title := (slicestr ($.Scratch.Get "title_without_protocol") 0 32) }} - {{ $split_by_fw_slash := split $title "/" }} - {{ $count := (sub (len $split_by_fw_slash) 1) }} - - {{ $.Scratch.Set "tempstring" "" }} - {{ range first $count $split_by_fw_slash }} - {{ $.Scratch.Set "tempstring" ( . | printf "%s%s/" ($.Scratch.Get "tempstring") | printf "%s" ) }} - {{ end }} - {{ $.Scratch.Set "bl_title" ( printf "%s..." ($.Scratch.Get "tempstring") | printf "%s" ) }} - {{ end }} - {{ end }} -{{ end }} -
-
- {{ .Inner | markdownify | safeHTML -}} - {{ with $.Scratch.Get "bl_author" -}} -
- {{ with $.Scratch.Get "bl_author" -}}{{ . }}{{ end }} - {{ with $.Scratch.Get "bl_source" }} - — {{ . }} - {{ else }} - {{ with $.Scratch.Get "bl_link" }} - — - {{ $.Scratch.Get "bl_title" }} - - {{ else }} - {{ with $.Scratch.Get "bl_title" }} - — - {{ $.Scratch.Get "bl_title" }} - - {{ end }} - {{ end }} - {{ end }} -
- {{- end -}} -
-
diff --git a/static/js/on_fiber.js b/static/js/on_fiber.js deleted file mode 100644 index ccd5a61..0000000 --- a/static/js/on_fiber.js +++ /dev/null @@ -1,16 +0,0 @@ -const url = 'https://id-libre.org/live/status-json.xsl'; -const statusElement = document.getElementById('on'); - -async function status() { - const response = await fetch(url); - const data = await response.json(); - const status = data.icestats.source ? 'on' : 'off' - - statusElement.innerHTML = status; - statusElement.classList.remove("on", "off"); - statusElement.classList.add(status); -} - -status(); - -setInterval(() => status(), 2000); diff --git a/themes/portfoliGor b/themes/portfoliGor index 34699ff..c65f80c 160000 --- a/themes/portfoliGor +++ b/themes/portfoliGor @@ -1 +1 @@ -Subproject commit 34699ff5ffc43e42fcae03baa226a9940b6f2d3e +Subproject commit c65f80c72ee7d5853088521067eae1970c8262a3