chore: add data attribute

This commit is contained in:
Stefan Imhoff
2024-05-05 10:19:38 +02:00
parent 9cca01050e
commit f001887c91
4 changed files with 13 additions and 11 deletions

View File

@@ -1,8 +1,9 @@
{% if previousPost %}
<a
aria-label="{{ previousPost.data.title }}"
class="pagination pagination-start"
href="{{ previousPost.url }}"
<a
aria-label="{{ previousPost.data.title }}"
class="pagination pagination-start"
data-umami-event="{{ previousPost.data.title }}"
href="{{ previousPost.url }}"
rel="prev"
title="{{ previousPost.data.title }}"
>
@@ -11,10 +12,11 @@
{% endif %}
{% if nextPost %}
<a
aria-label="{{ nextPost.data.title }}"
class="pagination pagination-end"
href="{{ nextPost.url }}"
<a
aria-label="{{ nextPost.data.title }}"
class="pagination pagination-end"
data-umami-event="{{ nextPost.data.title }}"
href="{{ nextPost.url }}"
rel="next"
title="{{ nextPost.data.title }}"
>

View File

@@ -1,4 +1,4 @@
<button id="theme-toggle" class="theme-toggle" aria-label="Switch color theme">
<button id="theme-toggle" class="theme-toggle" aria-label="Switch color theme" data-umami-event="Switch color theme">
<svg class="theme-toggle-icon" aria-hidden="true" viewBox="0 0 24 24" width="1em" height="1em">
<use xlink:href="#circle"></use>
</svg>

View File

@@ -1,4 +1,4 @@
<a id="up-link" class="up-link" href="#top" onClick="{scrollToTop}">
<a id="up-link" class="up-link" href="#top" onClick="{scrollToTop}" data-umami-event="Back to top">
<button class="up-link-button" aria-label="Back to top">
<svg class="up-link-icon" aria-hidden="true" viewBox="0 0 24 24" width="1em" height="1em">
<use xlink:href="#arrow-up"></use>

View File

@@ -6,7 +6,7 @@ layout: base
{% include "page-header.njk" %}
<main class="page-content">
<h1 class="page-title">
<a href="/" class="page-title-link">
<a href="/" data-umami-event="Homepage" class="page-title-link">
Exploring Hamburg
</a>
</h1>