Skip to content

Commit aecfee4

Browse files
authored
Merge pull request #38 from ethereum/fix/galaxy-at-map
fix: interactive map URL fix
2 parents 370f5eb + dcafa3d commit aecfee4

4 files changed

Lines changed: 12 additions & 9 deletions

File tree

astro.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export default defineConfig({
1616
// Legacy Jekyll URLs (permalink: /:title/, slug from filename) → new
1717
// title-derived slugs under /blog/. Keeps inbound links alive post-migration.
1818
redirects: {
19+
// Galaxy explorer view relocated from /explore/galaxy/ to /map/.
20+
'/explore/galaxy/': '/map/',
21+
'/map/tree/': '/map/',
1922
'/cypherpunk-institutional-privacy': '/blog/cypherpunk-x-institutional-privacy/',
2023
'/building-private-bonds-on-ethereum': '/blog/building-private-bonds-on-ethereum/',
2124
'/public-rails-vs-private-ledgers': '/blog/public-rails-vs-private-ledgers/',

src/pages/explore/browse.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const description =
3030

3131
<div class="explore-nav">
3232
<div class="container">
33-
<a href="/explore/galaxy/" class="explore-tab">Galaxy</a>
33+
<a href="/map/" class="explore-tab">Galaxy</a>
3434
<a href="/explore/tree/" class="explore-tab">Tree</a>
3535
<a href="/explore/browse/" class="explore-tab active">Browse</a>
3636
</div>

src/pages/explore/tree.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const description =
2929

3030
<div class="explore-nav">
3131
<div class="container">
32-
<a href="/explore/galaxy/" class="explore-tab">Galaxy</a>
32+
<a href="/map/" class="explore-tab">Galaxy</a>
3333
<a href="/explore/tree/" class="explore-tab active">Tree</a>
3434
<a href="/explore/browse/" class="explore-tab">Browse</a>
3535
</div>
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
/*
3-
* /explore/galaxy/ — full-viewport d3 force graph of all 135 nodes.
3+
* /map/ — full-viewport d3 force graph of all 135 nodes.
44
* React island, light theme. Uses our NavBar but the canvas spans
5-
* full width below it.
5+
* full width below it. (Formerly /explore/galaxy/; redirected in astro.config.)
66
*/
7-
import BaseLayout from '../../layouts/BaseLayout.astro';
8-
import PageHeader from '../../components/PageHeader.astro';
9-
import { Galaxy } from '../../components/explore/Galaxy';
10-
import graphData from '../../data/graph.json';
7+
import BaseLayout from '../layouts/BaseLayout.astro';
8+
import PageHeader from '../components/PageHeader.astro';
9+
import { Galaxy } from '../components/explore/Galaxy';
10+
import graphData from '../data/graph.json';
1111
1212
const description =
1313
'Force-directed map of every entry on the site. Drag, zoom, click to drill into any node: patterns, approaches, vendors, use cases, jurisdictions.';
@@ -34,7 +34,7 @@ const description =
3434

3535
<div class="explore-nav">
3636
<div class="container">
37-
<a href="/explore/galaxy/" class="explore-tab active">Galaxy</a>
37+
<a href="/map/" class="explore-tab active">Galaxy</a>
3838
<a href="/explore/tree/" class="explore-tab">Tree</a>
3939
<a href="/explore/browse/" class="explore-tab">Browse</a>
4040
</div>

0 commit comments

Comments
 (0)