mirror of
https://github.com/kogakure/website-11ty-kogakure.de.git
synced 2026-02-03 20:25:30 +00:00
chore: add data attributes
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="colophon-donation-list-item">
|
<li class="colophon-donation-list-item">
|
||||||
<a
|
<a
|
||||||
|
data-umami-event="Paypal"
|
||||||
href="https://www.paypal.me/kogakure/"
|
href="https://www.paypal.me/kogakure/"
|
||||||
rel="nofollow noopener noreferrer external"
|
rel="nofollow noopener noreferrer external"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{% if isHome %}
|
{% if isHome %}
|
||||||
<div class="home-link-spacer"></div>
|
<div class="home-link-spacer"></div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="home-link" href="{{ homeLink }}" title="{{ i18n[locale].homeLink }}">
|
<a class="home-link" href="{{ homeLink }}" title="{{ i18n[locale].homeLink }}" data-umami-event="{{ i18n[locale].homeLink }}">
|
||||||
<button
|
<button
|
||||||
class="home-link-button"
|
class="home-link-button"
|
||||||
aria-label="{{ i18n[locale].homeLink }}"
|
aria-label="{{ i18n[locale].homeLink }}"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<li class="language-switcher-list-item">
|
<li class="language-switcher-list-item">
|
||||||
<a class="language-switcher-link {{ activeClass }}" href="{{ translatedUrl }}">{{ lang.title }}</a>
|
<a class="language-switcher-link {{ activeClass }}" href="{{ translatedUrl }}" data-umami-event="Language Switch {{ lang.title }}">{{ lang.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{% if loop.last %}
|
{% if loop.last %}
|
||||||
|
|||||||
@@ -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 }}"
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
{% if book.asin %}
|
{% if book.asin %}
|
||||||
<a
|
<a
|
||||||
class="product"
|
class="product"
|
||||||
|
data-umami-event="{{ book.title }}"
|
||||||
href="{{ affiliateUrl }}"
|
href="{{ affiliateUrl }}"
|
||||||
rel="nofollow noopener noreferrer external"
|
rel="nofollow noopener noreferrer external"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@@ -35,6 +36,7 @@
|
|||||||
href="{{ book.link }}"
|
href="{{ book.link }}"
|
||||||
rel="nofollow noopener noreferrer external"
|
rel="nofollow noopener noreferrer external"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
data-umami-event="{{ book.title }}"
|
||||||
>
|
>
|
||||||
<img alt="{{ book.title }}" src="{{ book.cover }}"/>
|
<img alt="{{ book.title }}" src="{{ book.cover }}"/>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
{% if movie.asin %}
|
{% if movie.asin %}
|
||||||
<a
|
<a
|
||||||
class="product"
|
class="product"
|
||||||
|
data-umami-event="{{ movie.title }}"
|
||||||
href="{{ affiliateUrl }}"
|
href="{{ affiliateUrl }}"
|
||||||
rel="nofollow noopener noreferrer external"
|
rel="nofollow noopener noreferrer external"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@@ -31,6 +32,7 @@
|
|||||||
{% elif movie.imdb %}
|
{% elif movie.imdb %}
|
||||||
<a
|
<a
|
||||||
class="product"
|
class="product"
|
||||||
|
data-umami-event="{{ movie.title }}"
|
||||||
href="https://www.imdb.com/title/{{ movie.imdb }}"
|
href="https://www.imdb.com/title/{{ movie.imdb }}"
|
||||||
rel="nofollow noopener noreferrer external"
|
rel="nofollow noopener noreferrer external"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<button id="theme-toggle" class="theme-toggle" aria-label="{{ i18n[locale].themeToggle }}">
|
<button id="theme-toggle" class="theme-toggle" aria-label="{{ i18n[locale].themeToggle }}" 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>
|
||||||
|
|||||||
@@ -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="{{ i18n[locale].upLink }}">
|
||||||
<button class="up-link-button" aria-label="{{ i18n[locale].upLink }}">
|
<button class="up-link-button" aria-label="{{ i18n[locale].upLink }}">
|
||||||
<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>
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ module.exports = {
|
|||||||
const html = outdent`
|
const html = outdent`
|
||||||
<a class="product" href="${affiliateUrl}" rel="nofollow noopener noreferrer external" target="_blank">
|
<a class="product" href="${affiliateUrl}" rel="nofollow noopener noreferrer external" target="_blank">
|
||||||
<img
|
<img
|
||||||
|
data-umami-event="${alt}"
|
||||||
alt="${alt}"
|
alt="${alt}"
|
||||||
class="product-cover"
|
class="product-cover"
|
||||||
src="${amazonImageUrl}"
|
src="${amazonImageUrl}"
|
||||||
@@ -81,7 +82,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const html = outdent`
|
const html = outdent`
|
||||||
<a href="${url}" ${externalLink}>${text}<span class="more-icon">
|
<a href="${url}" ${externalLink} data-umami-event="${text}">${text}<span class="more-icon">
|
||||||
<svg aria-hidden="true" viewBox="0 0 24 24" width="1em" height="1em">
|
<svg aria-hidden="true" viewBox="0 0 24 24" width="1em" height="1em">
|
||||||
<use xlink:href="#arrow-right"></use>
|
<use xlink:href="#arrow-right"></use>
|
||||||
</svg>
|
</svg>
|
||||||
@@ -100,7 +101,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const html = outdent`
|
const html = outdent`
|
||||||
<a href="${url}" ${externalLink}>${text}<span class="download-icon">
|
<a href="${url}" ${externalLink} data-umami-event="${text}">${text}<span class="download-icon">
|
||||||
<svg aria-hidden="true" viewBox="0 0 24 24" width="1em" height="1em">
|
<svg aria-hidden="true" viewBox="0 0 24 24" width="1em" height="1em">
|
||||||
<use xlink:href="#download"></use>
|
<use xlink:href="#download"></use>
|
||||||
</svg>
|
</svg>
|
||||||
@@ -111,13 +112,14 @@ module.exports = {
|
|||||||
email: function (text, key = false) {
|
email: function (text, key = false) {
|
||||||
const downloadText = 'Download public key (ProtonMail/GPG)';
|
const downloadText = 'Download public key (ProtonMail/GPG)';
|
||||||
const link = outdent`
|
const link = outdent`
|
||||||
<a id="email" class="objuscated" href="mailto:hey (at) imhoff (dot) name">${text}</a>`;
|
<a id="email" class="objuscated" href="mailto:hey (at) imhoff (dot) name" data-umami-event="${text}">${text}</a>`;
|
||||||
const keyDownload = outdent`
|
const keyDownload = outdent`
|
||||||
<span id="lock-box" class="lock-box hidden">
|
<span id="lock-box" class="lock-box hidden">
|
||||||
<a
|
<a
|
||||||
title="${downloadText}"
|
data-umami-event="${downloadText}"
|
||||||
aria-label="${downloadText}"
|
aria-label="${downloadText}"
|
||||||
href="https://www.stefanimhoff.de/downloads/publickey.hey@stefanimhoff.de-9cb867d4ccd2c1d7d9fde82f4b649797f3e007a9.asc"
|
href="https://www.stefanimhoff.de/downloads/publickey.hey@stefanimhoff.de-9cb867d4ccd2c1d7d9fde82f4b649797f3e007a9.asc"
|
||||||
|
title="${downloadText}"
|
||||||
>
|
>
|
||||||
<svg class="lock-icon" aria-hidden="true" viewBox="0 0 24 24" width="1em" height="1em">
|
<svg class="lock-icon" aria-hidden="true" viewBox="0 0 24 24" width="1em" height="1em">
|
||||||
<use xlink:href="#lock"></use>
|
<use xlink:href="#lock"></use>
|
||||||
|
|||||||
Reference in New Issue
Block a user