Mise à jour des infos de contact

* Supprime les données privées téléphone
  et adresse postale

* Supprime la section Informations
  professionnelles

Co-Authored-by: Racine Alexandre <alex@alexracine.ch>
master
Alexandre Racine 2024-12-15 21:14:43 +01:00
parent add990fabb
commit aeb8cd2b7d
Signed by: alerac
GPG Key ID: 45E8753A63D7859F
5 changed files with 7 additions and 51 deletions

View File

@ -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"

View File

@ -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."

View File

@ -43,9 +43,6 @@
{{ if .Site.Params.contactsPriv }}
{{ partial "perso" . }}
{{ end }}
{{ if .Site.Params.contactsPro }}
{{ partial "pro" . }}
{{ end }}
{{ end }}
{{ if eq $title "Applications" }}
{{ .Content -}}

View File

@ -4,8 +4,10 @@
<dt>{{ i18n "e-mail" }}</dt>
<dd><a href="mailto:{{ . }}" itemprop="email">{{ . }}</a></dd>
{{ end }}
{{ if .Site.Params.contactsPriv.address }}
<dt>{{ i18n "address" }}</dt>
<dd><span itemprop="address">{{ with .Site.Params.contactsPriv.address }}{{ . }}{{ end }}, {{ with .Site.Params.contactsPriv.ZIP }}{{ . }}{{ end }} {{ with .Site.Params.contactsPriv.Place }}{{ . }}{{ end }}</span></dd>
<dd><span itemprop="address">{{ with .Site.Params.contactsPriv.address }}{{ . }}, {{ end }}{{ with .Site.Params.contactsPriv.ZIP }}{{ . }}{{ end }} {{ with .Site.Params.contactsPriv.Place }}{{ . }}{{ end }}</span></dd>
{{ end }}
{{ with .Site.Params.contactsPriv.phone }}
<dt>{{ i18n "tel" }}</dt>
<dd>

View File

@ -1,35 +0,0 @@
<h2 id="contactsPro">{{ i18n "contactsPro" }}</h2>
<dl class="home-lists pro-contacts">
{{ with .Site.Params.contactsPro.email }}
<dt>{{ i18n "e-mail" }}</dt>
<dd><a href="mailto:{{ . }}" itemprop="email">{{ . }}</a></dt>
{{end}}
{{ with .Site.Params.contactsPro.address }}
<dt>{{ i18n "address" }}</dt>
<dd><span itemprop="address">{{ . }}</span></dd>
{{end}}
{{ with .Site.Params.contactsPro.mobile}}
<dt>{{ i18n "mobile" }}</dt>
<dd>
<a href="tel:{{ replace . " " ""}}">
<span itemprop="telephone">{{ . }}</span>
</a>
</dd>
{{end}}
{{ with .Site.Params.contactsPro.phone}}
<dt>{{ i18n "tel" }}</dt>
<dd>
<a href="tel:{{ replace . " " ""}}">
<span itemprop="telephone">{{ . }}</span>
</a>
</dd>
{{end}}
{{ with .Site.Params.contactsPro.publickey }}
<dt>{{ i18n "pubkey" }}</dt>
<dd><a href="/{{ . }}">{{ . }}</a></dd>
{{end}}
{{ with .Site.Params.contactsPro.fingerprint}}
<dt>{{ i18n "fingerprint" }}</dt>
<dd><code>{{ . }}</code></dd>
{{end}}
</dl>