mirror of
https://github.com/kogakure/website-11ty-kogakure.de.git
synced 2026-02-03 12:15:28 +00:00
chore: replace product links
This commit is contained in:
@@ -7,13 +7,11 @@ module.exports = {
|
||||
animation: `data-sal=${animation} data-sal-duration=${duration} data-sal-easing=${easing}`,
|
||||
animationDelay: `data-sal=${animation} data-sal-duration=${duration} data-sal-delay=${delay} data-sal-easing=${easing}`,
|
||||
author: 'Stefan Imhoff',
|
||||
bitcoin: 'bc1quzvqw66khsnrmqh0ds8dprnrtcxfytfa3x2x7m',
|
||||
buildTime: new Date(),
|
||||
description: {
|
||||
de: 'Ninja, Ninjutsu & Kampfkunst',
|
||||
en: 'Ninja, Ninjutsu & Martial Arts',
|
||||
},
|
||||
ethereum: '0x9e177CA8eD880991cb976aFbcC409c5c15Fa0080',
|
||||
faviconPath: '/assets/images/branding/favicons/',
|
||||
isProduction: process.env.ELEVENTY_ENV === 'production',
|
||||
languages: [
|
||||
|
||||
@@ -59,7 +59,7 @@ module.exports = {
|
||||
},
|
||||
donation: {
|
||||
headline: 'Spenden',
|
||||
text: 'Dieses Buch ist kostenlos, werbefrei und hat mich im Laufe der Zeit viele hundert Stunden Arbeit gekostet.\n\nWenn es dir gefallen hat, freue ich mich über Lob und Anerkennung. Du kannst mich unterstützen, indem du etwas aus meinen [Empfehlungen](/empfehlungen/) kaufst oder mir eine kleine Spende zukommen lässt.',
|
||||
text: 'Dieses Buch ist kostenlos, werbefrei und hat mich im Laufe der Zeit viele hundert Stunden Arbeit gekostet.\n\nWenn es dir gefallen hat, freue ich mich über Lob und Anerkennung. Du kannst mich unterstützen, indem mir eine kleine Spende zukommen lässt.',
|
||||
paypal: 'Spenden mit PayPal',
|
||||
},
|
||||
tech: {
|
||||
|
||||
@@ -59,7 +59,7 @@ module.exports = {
|
||||
},
|
||||
donation: {
|
||||
headline: 'Donations',
|
||||
text: 'This book is free, ad-free and has cost me many hundreds of hours of work over time.\n\nIf you enjoyed it, I welcome praise and recognition. You can support me by buying something from my [recommendations](/en/recommendations/) or by making a small donation.',
|
||||
text: 'This book is free, ad-free and has cost me many hundreds of hours of work over time.\n\nIf you enjoyed it, I welcome praise and recognition. You can support me by making a small donation.',
|
||||
paypal: 'Donate With PayPal',
|
||||
},
|
||||
tech: {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<svg height="64" width="64" xmlns="http://www.w3.org/2000/svg"><g transform="translate(.006309 -.00302)"><path d="m63.033 39.744c-4.274 17.143-21.637 27.576-38.782 23.301-17.138-4.274-27.571-21.638-23.295-38.78 4.272-17.145 21.635-27.579 38.775-23.305 17.144 4.274 27.576 21.64 23.302 38.784z" fill="#f7931a"/><path d="m46.103 27.444c.637-4.258-2.605-6.547-7.038-8.074l1.438-5.768-3.511-.875-1.4 5.616c-.923-.23-1.871-.447-2.813-.662l1.41-5.653-3.509-.875-1.439 5.766c-.764-.174-1.514-.346-2.242-.527l.004-.018-4.842-1.209-.934 3.75s2.605.597 2.55.634c1.422.355 1.679 1.296 1.636 2.042l-1.638 6.571c.098.025.225.061.365.117-.117-.029-.242-.061-.371-.092l-2.296 9.205c-.174.432-.615 1.08-1.609.834.035.051-2.552-.637-2.552-.637l-1.743 4.019 4.569 1.139c.85.213 1.683.436 2.503.646l-1.453 5.834 3.507.875 1.439-5.772c.958.26 1.888.5 2.798.726l-1.434 5.745 3.511.875 1.453-5.823c5.987 1.133 10.489.676 12.384-4.739 1.527-4.36-.076-6.875-3.226-8.515 2.294-.529 4.022-2.038 4.483-5.155zm-8.022 11.249c-1.085 4.36-8.426 2.003-10.806 1.412l1.928-7.729c2.38.594 10.012 1.77 8.878 6.317zm1.086-11.312c-.99 3.966-7.1 1.951-9.082 1.457l1.748-7.01c1.982.494 8.365 1.416 7.334 5.553z" fill="#fff"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="2500" height="2500" viewBox="0 0 32 32"><g fill="none" fill-rule="evenodd"><circle cx="16" cy="16" r="16" fill="#627EEA"/><g fill="#FFF" fill-rule="nonzero"><path fill-opacity=".602" d="M16.498 4v8.87l7.497 3.35z"/><path d="M16.498 4L9 16.22l7.498-3.35z"/><path fill-opacity=".602" d="M16.498 21.968v6.027L24 17.616z"/><path d="M16.498 27.995v-6.028L9 17.616z"/><path fill-opacity=".2" d="M16.498 20.573l7.497-4.353-7.497-3.348z"/><path fill-opacity=".602" d="M9 16.22l7.498 4.353v-7.701z"/></g></g></svg>
|
||||
|
Before Width: | Height: | Size: 552 B |
@@ -5,34 +5,6 @@
|
||||
</h2>
|
||||
{{ i18n[locale].colophon.donation.text | markdown | safe }}
|
||||
<ul class="colophon-donation-list">
|
||||
<li class="colophon-donation-list-item">
|
||||
<svg
|
||||
class="colophon-donation-icon"
|
||||
title="Bitcoin"
|
||||
aria-hidden="true"
|
||||
viewBox="0 0 24 24"
|
||||
width="1em"
|
||||
height="1em"
|
||||
>
|
||||
<use xlink:href="#bitcoin"></use>
|
||||
</svg>
|
||||
<pre class="colophon-dontation-crypto-hash">{{ site.bitcoin }}</pre
|
||||
>
|
||||
</li>
|
||||
<li class="colophon-donation-list-item">
|
||||
<svg
|
||||
class="colophon-donation-icon"
|
||||
title="Ethereum"
|
||||
aria-hidden="true"
|
||||
viewBox="0 0 24 24"
|
||||
width="1em"
|
||||
height="1em"
|
||||
>
|
||||
<use xlink:href="#ethereum"></use>
|
||||
</svg>
|
||||
<pre class="colophon-dontation-crypto-hash">{{ site.ethereum }}</pre
|
||||
>
|
||||
</li>
|
||||
<li class="colophon-donation-list-item">
|
||||
<a
|
||||
data-umami-event="Paypal"
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 4.8 KiB |
@@ -1,6 +1,6 @@
|
||||
{% if locale === "en" %}{% set affiliateUrl = "http://www.amazon.de/gp/product/{{ book.asin }}?ie=UTF8&tag=stefanimhoffde-21&linkCode=as2&camp=1638&creative=6742&creativeASIN={{ book.asin }}" %}
|
||||
{% if locale === "en" %}{% set url = "http://www.amazon.de/gp/product/{{ book.asin }}" %}
|
||||
{% endif %}
|
||||
{% if locale === "en" %}{% set affiliateUrl = "https://www.amazon.com/gp/product/{{ book.asin }}/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN={{ book.asin }}&linkCode=as2&tag=kogakure-20" %}
|
||||
{% if locale === "en" %}{% set url = "https://www.amazon.com/gp/product/{{ book.asin }}" %}
|
||||
{% endif %}
|
||||
|
||||
<div class="recommendations-books">
|
||||
@@ -12,7 +12,7 @@
|
||||
<a
|
||||
class="product"
|
||||
data-umami-event="{{ book.title }}"
|
||||
href="{{ affiliateUrl }}"
|
||||
href="{{ url }}"
|
||||
rel="nofollow noopener noreferrer external"
|
||||
target="_blank"
|
||||
>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% if locale === "en" %}{% set affiliateUrl = "http://www.amazon.de/gp/product/{{ movie.asin }}?ie=UTF8&tag=stefanimhoffde-21&linkCode=as2&camp=1638&creative=6742&creativeASIN={{ movie.asin }}" %}
|
||||
{% if locale === "en" %}{% set url = "http://www.amazon.de/gp/product/{{ movie.asin }}" %}
|
||||
{% endif %}
|
||||
{% if locale === "en" %}{% set affiliateUrl = "https://www.amazon.com/gp/product/{{ movie.asin }}/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN={{ movie.asin }}&linkCode=as2&tag=kogakure-20" %}
|
||||
{% if locale === "en" %}{% set url = "https://www.amazon.com/gp/product/{{ movie.asin }}" %}
|
||||
{% endif %}
|
||||
|
||||
<div class="recommendations-movies">
|
||||
@@ -12,7 +12,7 @@
|
||||
<a
|
||||
class="product"
|
||||
data-umami-event="{{ movie.title }}"
|
||||
href="{{ affiliateUrl }}"
|
||||
href="{{ url }}"
|
||||
rel="nofollow noopener noreferrer external"
|
||||
target="_blank"
|
||||
>
|
||||
|
||||
@@ -4,17 +4,17 @@ const outdent = require('outdent')({
|
||||
|
||||
module.exports = {
|
||||
product: function (asin, alt = '', lang = 'de') {
|
||||
let affiliateUrl;
|
||||
let url;
|
||||
const amazonImageUrl = `https://images-na.ssl-images-amazon.com/images/P/${asin}.01.LZZZZZZZ.jpg`;
|
||||
|
||||
if (lang === 'en') {
|
||||
affiliateUrl = `https://www.amazon.com/gp/product/${asin}/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=${asin}&linkCode=as2&tag=kogakure-20`;
|
||||
url = `https://www.amazon.com/gp/product/${asin}`;
|
||||
} else {
|
||||
affiliateUrl = `http://www.amazon.de/gp/product/${asin}?ie=UTF8&tag=stefanimhoffde-21&linkCode=as2&camp=1638&creative=6742&creativeASIN=${asin}`;
|
||||
url = `http://www.amazon.de/gp/product/${asin}`;
|
||||
}
|
||||
|
||||
const html = outdent`
|
||||
<a class="product" href="${affiliateUrl}" rel="nofollow noopener noreferrer external" target="_blank">
|
||||
<a class="product" href="${url}" rel="nofollow noopener noreferrer external" target="_blank">
|
||||
<img
|
||||
data-umami-event="${alt}"
|
||||
alt="${alt}"
|
||||
|
||||
Reference in New Issue
Block a user