diff --git a/config.toml b/config.toml index efe848b..f39608f 100644 --- a/config.toml +++ b/config.toml @@ -101,21 +101,13 @@ unsafe= true # 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 = "Chemin des Falaises 2, 1005 Lausanne" - phone = "+41 21 314 50 74" - email = "alexandre.racine@chuv.ch" - # publickey = "" - # fingerprint = "843D 0CB6 A576 D7BE 4BF6 A63B 692D 97C3 D022 8A99" - # Personal contact data [params.contactsPriv] Function = "Bibliothécaire" - address = "Av. du Vieux-Moulin 8" - ZIP = "1018" + # address = "Av. du Vieux-Moulin 8" + # ZIP = "1018" Place = "Lausanne" - phone = "+41 79 390 89 27" + # phone = "+41 79 390 89 27" email = "alex@alexracine.ch" publickey = "alex-racine-pub.asc" fingerprint = "8F0A C587 9360 DA46 36C4 B8FA 45E8 753A 63D7 859F" diff --git a/content/contacts.md b/content/contacts.md index 1b60f05..151b96f 100644 --- a/content/contacts.md +++ b/content/contacts.md @@ -1,6 +1,6 @@ --- title: "Contacts" -date: 2023-09-03T22:06:11+01:00 +date: 2024-12-15T21:30:00+01:00 publishdate: 2023-09-03 draft: false description: "La liste de mes coordonnées de contact." diff --git a/themes/portfoliGor/layouts/_default/single.html b/themes/portfoliGor/layouts/_default/single.html index 154d0a3..287855c 100644 --- a/themes/portfoliGor/layouts/_default/single.html +++ b/themes/portfoliGor/layouts/_default/single.html @@ -43,9 +43,6 @@ {{ if .Site.Params.contactsPriv }} {{ partial "perso" . }} {{ end }} - {{ if .Site.Params.contactsPro }} - {{ partial "pro" . }} - {{ end }} {{ end }} {{ if eq $title "Applications" }} {{ .Content -}} diff --git a/themes/portfoliGor/layouts/partials/perso.html b/themes/portfoliGor/layouts/partials/perso.html index 99c44c8..91c6628 100644 --- a/themes/portfoliGor/layouts/partials/perso.html +++ b/themes/portfoliGor/layouts/partials/perso.html @@ -4,8 +4,10 @@
{{ i18n "e-mail" }}
{{ . }}
{{ end }} + {{ if .Site.Params.contactsPriv.address }}
{{ i18n "address" }}
-
{{ with .Site.Params.contactsPriv.address }}{{ . }}{{ end }}, {{ with .Site.Params.contactsPriv.ZIP }}{{ . }}{{ end }} {{ with .Site.Params.contactsPriv.Place }}{{ . }}{{ end }}
+
{{ with .Site.Params.contactsPriv.address }}{{ . }}, {{ end }}{{ with .Site.Params.contactsPriv.ZIP }}{{ . }}{{ end }} {{ with .Site.Params.contactsPriv.Place }}{{ . }}{{ end }}
+ {{ end }} {{ with .Site.Params.contactsPriv.phone }}
{{ i18n "tel" }}
diff --git a/themes/portfoliGor/layouts/partials/pro.html b/themes/portfoliGor/layouts/partials/pro.html deleted file mode 100644 index 7f51675..0000000 --- a/themes/portfoliGor/layouts/partials/pro.html +++ /dev/null @@ -1,35 +0,0 @@ -

{{ i18n "contactsPro" }}

-
- {{ with .Site.Params.contactsPro.email }} -
{{ i18n "e-mail" }}
-
{{ . }} - {{end}} - {{ with .Site.Params.contactsPro.address }} -
{{ i18n "address" }}
-
{{ . }}
- {{end}} - {{ with .Site.Params.contactsPro.mobile}} -
{{ i18n "mobile" }}
-
- - {{ . }} - -
- {{end}} - {{ with .Site.Params.contactsPro.phone}} -
{{ i18n "tel" }}
-
- - {{ . }} - -
- {{end}} - {{ with .Site.Params.contactsPro.publickey }} -
{{ i18n "pubkey" }}
-
{{ . }}
- {{end}} - {{ with .Site.Params.contactsPro.fingerprint}} -
{{ i18n "fingerprint" }}
-
{{ . }}
- {{end}} -
\ No newline at end of file