From 28d68d8269306193c222add948e7269f2bc41f22 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Wed, 30 Oct 2024 18:37:45 +0100 Subject: [PATCH] configuration: porte la configuration en YAML MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit porte la configuration qui était dans le `config.toml` dans le fichier `hugo.yaml`, qui est le fichier par défaut, désormais, et peut-être déjà depuis un moment. mets à jour le thème avec la modification de l'espace dans le menu principal. Co-Authored-by: iGor milhit --- .gitignore | 1 + .hugo_build.lock | 0 config.toml | 112 --------------------------------------------- content/_index.md | 5 +- hugo.yaml | 103 +++++++++++++++++++++++++++++++++++++++++ themes/portfoliGor | 2 +- 6 files changed, 108 insertions(+), 115 deletions(-) delete mode 100644 .hugo_build.lock delete mode 100644 config.toml create mode 100644 hugo.yaml diff --git a/.gitignore b/.gitignore index 74ee35e..e0ca473 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ __pycache__ # Hugo /public/ /resources/_gen/ +.hugo_build.lock diff --git a/.hugo_build.lock b/.hugo_build.lock deleted file mode 100644 index e69de29..0000000 diff --git a/config.toml b/config.toml deleted file mode 100644 index c9c8269..0000000 --- a/config.toml +++ /dev/null @@ -1,112 +0,0 @@ -baseURL = "https://igor.milhit.ch/" -DefaultContentLanguage = "fr" -title = "iGor milhit" - -theme = "portfoliGor" -enableGitInfo = true -paginate = 0 - -[security] - enableInlineShortcodes = false - [security.exec] - allow = [ - '^dart-sass-embedded$', - '^git$', - '^go$', - '^npx$', - '^sass$', - '^postcss$', - '^pandoc$', - '^nvim$'] - osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$'] - [security.funcs] - getenv = ['^HUGO_'] - [security.http] - methods = ['(?i)GET|POST'] - urls = ['.*'] - -[menu] -[[menu.main]] - identifier = 'blog' - name = 'Blog' - title = 'La section blog' - url = '/blog/' - weight = 0 -[[menu.main]] - identifier = 'à-propos' - name = 'À propos' - title = 'À propos de ce site web' - url = '/à-propos/' - weight = -20 -[[menu.main]] - identifier = 'contacts' - name = 'Contacts' - title = 'Me contacter' - url = '/#online' - weight = 10 -[[menu.footer]] - identifier = 'credits' - name = "Crédits" - url = "/à-propos/#crédits" - weight = -100 -[[menu.footer]] - identifier = 'sources' - name = "Sources" - title = "Sources du site" - url = "https://git.milhit.ch/igor/igor.milhit" - weight = 20 -[[menu.footer]] - identifier = 'licence' - name = "cc-by" - title = "Licence Creative Commons By 4.0" - url = "http://creativecommons.org/licenses/by/4.0/" - weight = 10 - -[permalinks] - posts = ":slug" - blog = ":slug" - -[frontmatter] -date = ["date", "publishDate"] -lastmod = [":git", "lastmod"] - -[markup.goldmark.renderer] -unsafe= true - -[params] - - Description = "Site web personnel d'iGor milhit." - Image = "mySite.jpg" - ImageDescription = "Portrait de mouton aux couleurs sepia." - - [params.author] - name = "iGor milhit" - email = "igor@milhit.ch" - - [params.siteSources] - # Git repository of the website - url = "https://git.milhit.ch/igor/igor.milhit" - # Which kind of git forge is it? GitHub, a Gitlab instance, a Gitea intance? - type = "gitea" # github, gitlab, gitea - - # Professional contact data - [params.contactsPro] - address = "Rue Michel-Servet 1, 1211 Genève 4" - phone = "+41 22 379 59 30" - email = "igor.milhit@unige.ch" - # publickey = "" - # fingerprint = "" - - # Personal contact data - [params.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" - - # Web accounts - [params.online] - git = "https://git.milhit.ch/igor" diff --git a/content/_index.md b/content/_index.md index 20f6ecb..e509355 100644 --- a/content/_index.md +++ b/content/_index.md @@ -29,8 +29,9 @@ le cadre de formations. ### Jusqu'ici -De métier, je suis *Spécialiste {{< smallcaps "hes" ->}} en information documentaire*, ce que je traduirais volontiers par +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, diff --git a/hugo.yaml b/hugo.yaml new file mode 100644 index 0000000..6096ed6 --- /dev/null +++ b/hugo.yaml @@ -0,0 +1,103 @@ +baseURL: https://igor.milhit.ch/ +DefaultContentLanguage: fr +title: iGor milhit +theme: portfoliGor +enableGitInfo: true +paginate: 0 +security: + enableInlineShortcodes: false + exec: + allow: + - ^dart-sass-embedded$ + - ^git$ + - ^go$ + - ^npx$ + - ^sass$ + - ^postcss$ + - ^pandoc$ + - ^nvim$ + osEnv: + - (?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$ + funcs: + getenv: + - ^HUGO_ + http: + methods: + - (?i)GET|POST + urls: + - .* +menu: + main: + - identifier: blog + name: Blog + title: La section blog + url: /blog/ + weight: 0 + - identifier: à-propos + name: À propos + title: À propos de ce site web + url: /à-propos/ + weight: -2 + - identifier: contacts + name: Contacts + title: Me contacter + url: /#online + weight: 1 + footer: + - identifier: credits + name: Crédits + url: /à-propos/#crédits + weight: -100 + - identifier: sources + name: Sources + title: Sources du site + url: https://git.milhit.ch/igor/igor.milhit + weight: 20 + - identifier: licence + name: cc-by + title: Licence Creative Commons By 4.0 + url: http://creativecommons.org/licenses/by/4.0/ + weight: 10 +permalinks: + posts: :slug + blog: :slug +frontmatter: + date: + - date + - publishDate + lastmod: + - :git + - lastmod +markup: + goldmark: + renderer: + unsafe: true +params: + Description: Site web personnel d'iGor milhit. + Image: mySite.jpg + ImageDescription: Portrait de mouton aux couleurs sepia. + author: + name: iGor milhit + email: igor@milhit.ch + siteSources: + # Git repository of the website + 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 + # Professional contact data + 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 diff --git a/themes/portfoliGor b/themes/portfoliGor index 61c2446..47ccca9 160000 --- a/themes/portfoliGor +++ b/themes/portfoliGor @@ -1 +1 @@ -Subproject commit 61c2446bdd2a5e37ed0733c6d2b73adb19dde766 +Subproject commit 47ccca91d16df2e2c772eaaa9a72bbaca1ad34be