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

@@ -2,6 +2,7 @@
<a <a
aria-label="{{ previousPost.data.title }}" aria-label="{{ previousPost.data.title }}"
class="pagination pagination-start" class="pagination pagination-start"
data-umami-event="{{ previousPost.data.title }}"
href="{{ previousPost.url }}" href="{{ previousPost.url }}"
rel="prev" rel="prev"
title="{{ previousPost.data.title }}" title="{{ previousPost.data.title }}"
@@ -14,6 +15,7 @@
<a <a
aria-label="{{ nextPost.data.title }}" aria-label="{{ nextPost.data.title }}"
class="pagination pagination-end" class="pagination pagination-end"
data-umami-event="{{ nextPost.data.title }}"
href="{{ nextPost.url }}" href="{{ nextPost.url }}"
rel="next" rel="next"
title="{{ nextPost.data.title }}" 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"> <svg class="theme-toggle-icon" aria-hidden="true" viewBox="0 0 24 24" width="1em" height="1em">
<use xlink:href="#circle"></use> <use xlink:href="#circle"></use>
</svg> </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"> <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"> <svg class="up-link-icon" aria-hidden="true" viewBox="0 0 24 24" width="1em" height="1em">
<use xlink:href="#arrow-up"></use> <use xlink:href="#arrow-up"></use>

View File

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