diff --git a/exampleSite/config.toml b/exampleSite/config.toml index ab20345..165978b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -61,6 +61,14 @@ title = "Jane Doe - Nutrition Coach & Chef Consultant" [params.meta] keywords = "some, keywords, for, seo, you, know, google, duckduckgo, and, such" - [params.contact] - email = "mail@janedoe.com" - phone = "+49 1111 555555" + [[params.contacts]] + label = "phone" + value = "+49 1111 555555" + url = "tel: +49 1111 555555" + icon = "fa fa-phone" + + [[params.contacts]] + label = "email" + value = "mail@janedoe.com" + url = "mailto: mail@janedoe.com" + icon = "fa fa-envelope" diff --git a/exampleSite/content/homepage/contact.md b/exampleSite/content/homepage/contact.md index 6615de8..0d01e14 100644 --- a/exampleSite/content/homepage/contact.md +++ b/exampleSite/content/homepage/contact.md @@ -4,8 +4,6 @@ weight: 4 header_menu: true --- -{{}} [{{}}](mailto:{{}}) - -{{}} [{{}}](tel:{{}}) +{{}} Let us get in touch! diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3db45b3..30ce91c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -18,14 +18,15 @@ {{ end }} {{ if ne .Site.Params.footer.showContactIcons false }} - {{ with .Site.Params.contact }}
    -
  1. -
  2. + {{ range .Site.Params.contacts }} +
  3. + +
  4. + {{ end }}
- {{ end }} {{ end }} {{ with .Site.Params.copyright }} diff --git a/layouts/shortcodes/contact_list.html b/layouts/shortcodes/contact_list.html new file mode 100644 index 0000000..483a766 --- /dev/null +++ b/layouts/shortcodes/contact_list.html @@ -0,0 +1,3 @@ +{{ range .Site.Params.contacts }} +

 {{ .value }}

+{{ end }}