From e6bf66914769cfe133f187205044f921f72795da Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Thu, 13 Jul 2023 16:02:42 +0200 Subject: [PATCH] Add contact fields (url and information) --- layouts/partials/blocks/templates/contact.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/blocks/templates/contact.html b/layouts/partials/blocks/templates/contact.html index 883b8fec..dfc3d515 100644 --- a/layouts/partials/blocks/templates/contact.html +++ b/layouts/partials/blocks/templates/contact.html @@ -24,6 +24,9 @@ {{ if .name }} <p itemprop="name">{{ .name }}</p> {{ end }} + {{ with .information }} + {{ partial "PrepareHTML" . }} + {{ end }} {{ with .address }} {{ if or .address .city .zipcode .country }} <div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"> @@ -51,6 +54,9 @@ </div> {{ end }} {{ end }} + {{ with .url }} + <a href="{{ . }}" target="_blank" rel="noreferrer">{{ . }}</a> + {{ end }} <p> {{ range .phone_numbers }} <a itemprop="telephone" href="tel:{{ . }}">{{ . }}</a><br> -- GitLab