make telephone links work

This commit is contained in:
2025-04-16 19:31:03 -08:00
parent 2769e16237
commit c229b6ff2c
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@
{{ range $index, $element := .Site.Params.navbar.links}}
<li>
<a class="block py-2 pr-4 pl-3 border-b border-gray-100 hover:bg-gray-100 lg:hover:bg-transparent lg:border-0 lg:hover:text-primary-700 lg:p-0 lg:dark:hover:text-primary-500 dark:hover:bg-gray-700 dark:hover:text-white lg:dark:hover:bg-transparent dark:border-gray-700" aria-current="page"
href="{{.link}}">
href="{{ if ( .phone ) }}tel:{{ .phone }}{{else}}{{ .link }}{{ end }}">
{{ .name }}
</a>
</li>