Add link titles

This commit is contained in:
Oliver Davies 2024-12-29 23:50:29 +00:00
parent 4ee35f1080
commit 878c0deaa2
2 changed files with 7 additions and 1 deletions

View file

@ -39,10 +39,16 @@ menu_links:
url: /presentations
- title: Podcast
url: /podcast
attributes:
title: The Beyond Blocks Podcast
- title: Daily list
url: /daily
attributes:
title: The Daily Drupaler Email List
- title: Contact
url: 'mailto:%email%'
attributes:
title: Contact Oliver
meta:
description: |-

View file

@ -1,6 +1,6 @@
<nav class="flex flex-wrap justify-center -mb-3">
{% for link in site.menu_links %}
<a class="mx-3 mb-3 text-base underline md:text-lg dark:text-white hover:no-underline link dark:hover:text-blue-400 hover:text-gray-900" href="{{ link.url }}">
<a class="mx-3 mb-3 text-base underline md:text-lg dark:text-white hover:no-underline link dark:hover:text-blue-400 hover:text-gray-900" href="{{ link.url }}" title="{{ link.attributes.title ?? link.title }}">
{{ link.title }}
</a>
{% endfor %}