Skip to content

Commit 3b64b97

Browse files
authored
chore: move all tools under /tools (#509)
* add rev-share and link generators under tools * add redirects to URLs ---------
1 parent b09c630 commit 3b64b97

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

astro.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ export default defineConfig({
234234
astroI18next(),
235235
],
236236
redirects: {
237+
"/link-tag": "/tools/link-tag",
238+
"/prob-revshare": "/tools/prob-revshare",
237239
"/docs/references/html-link-rel-monetization": "/docs/references/html"
238240
},
239241
server: {

src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ const pluginsList = data.plugins.filter(function(plugin){
156156
<p>Explore how Web Monetization works</p>
157157
</a>
158158

159-
<a class="gridItem" href="/link-tag" data-umami-event="Landing page - Link tag">
159+
<a class="gridItem" href="/tools/link-tag" data-umami-event="Landing page - Link tag">
160160
<h3 class="heading4">Link Tag Generator</h3>
161161
<p>Generate a Web Monetization link tag for your site</p>
162162
</a>
163163

164-
<a class="gridItem" href="/prob-revshare" data-umami-event="Landing page - Prob rev share">
164+
<a class="gridItem" href="/tools/prob-revshare" data-umami-event="Landing page - Prob rev share">
165165
<h3 class="heading4">Probabilistic RevShare Generator</h3>
166166
<p>Split Web Monetization revenue between payment pointers</p>
167167
</a>

src/pages/install.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const description = t("site.description")
8686
<div class="cardContent">
8787
<h2 class="heading3">Get support with a Web Monetization link</h2>
8888
<h2 class="heading3">
89-
<a href="/link-tag/">Generate your link tag</a>
89+
<a href="/tools/link-tag/">Generate your link tag</a>
9090
</h2>
9191
</div>
9292
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import i18next, { t, changeLanguage } from "i18next";
3-
import Base from "../layouts/Base.astro";
3+
import Base from "../../layouts/Base.astro";
44
55
changeLanguage("en");
66
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import i18next, { t, changeLanguage } from "i18next";
3-
import Base from "../layouts/Base.astro";
4-
import LinkTagGenerator from "../components/pages/LinkTagGenerator";
3+
import Base from "../../layouts/Base.astro";
4+
import LinkTagGenerator from "../../components/pages/LinkTagGenerator";
55
66
changeLanguage("en");
77
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import i18next, { t, changeLanguage } from "i18next";
3-
import Base from "../layouts/Base.astro";
4-
import ProbRevshareGenerator from "../components/pages/ProbRevshare";
3+
import Base from "../../layouts/Base.astro";
4+
import ProbRevshareGenerator from "../../components/pages/ProbRevshare";
55
66
changeLanguage("en");
77

0 commit comments

Comments
 (0)