-
-
-
-
-

-
-
-
-
-
diff --git a/src/layouts/StoreLayout.astro b/src/layouts/StoreLayout.astro
index c68548b..b243bf5 100644
--- a/src/layouts/StoreLayout.astro
+++ b/src/layouts/StoreLayout.astro
@@ -11,7 +11,6 @@ import Resources from "@/components/polymech/resources.astro"
import Specs from "@/components/polymech/specs.astro"
import TabButton from "@/components/polymech/tab-button.astro"
import TabContent from "@/components/polymech/tab-content.astro"
-import Map from "@/components/polymech/map.astro"
import "flowbite"
diff --git a/src/pages/[locale].astro b/src/pages/[locale].astro
index 26758fc..5c8d630 100644
--- a/src/pages/[locale].astro
+++ b/src/pages/[locale].astro
@@ -1,21 +1,19 @@
---
import BaseLayout from "@/layouts/BaseLayout.astro";
-import config from "config/config.json";
+
import Wrapper from "@/components/containers/Wrapper.astro";
import { LANGUAGES_PROD } from "config/config.js";
import { getCollection } from "astro:content";
-import LatestEntries from "@/components/blog/LatestEntries.astro";
import StoreEntries from "@/components/store/StoreEntries.astro";
import CtaOne from "@/components/cta/CtaOne.astro";
-
-const allPosts = await getCollection("posts");
-const allProducts = await getCollection("store");
-const locale = Astro.currentLocale
import { translate } from "@/base/i18n.js"
import { I18N_SOURCE_LANGUAGE } from "config/config.js"
-const store = `/${locale}/store/`;
-const blog = `/blog/posts/`;
import { slugify } from "@/base/strings.js"
+
+const allProducts = await getCollection("store")
+const locale = Astro.currentLocale
+const store = `/${locale}/store/`;
+
export function getStaticPaths() {
const all: unknown[] = [];
LANGUAGES_PROD.forEach((lang) => {
@@ -45,79 +43,13 @@ const group = async (items) => {
const items = await group(allProducts)
---
-
-
- {
- config.pages.home.blog &&
- allPosts
- .slice(0, 3)
- .map((post) => (
-
- ))
- }
-
- {
- config.pages.home.blog && (
-
- Read all articles
-
-
- )
- }
+
+
{
diff --git a/src/pages/blog/home.astro b/src/pages/blog/home.astro
deleted file mode 100644
index be71b63..0000000
--- a/src/pages/blog/home.astro
+++ /dev/null
@@ -1,109 +0,0 @@
----
-import { getCollection } from "astro:content";
-import BaseLayout from "@/layouts/BaseLayout.astro";
-import EntriesOne from "@/components/blog/EntriesOne.astro";
-const allPosts = await getCollection("resources");
-
-const tags = [...new Set(allPosts.map((post) => post.data.tags).flat())];
-
----
-
-
-
-
-
-
- Read articles about our work, projects, and more.
-
-
- {
- tags.map((tag) => (
-
- {tag}
-
- ))
- }
-
-
-
-
-
- {
- allPosts.slice().map((post) => (
-
- ))
- }
-
-
-
-
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 019b894..886ca29 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -1,92 +1,30 @@
---
import BaseLayout from "@/layouts/BaseLayout.astro"
import { getCollection } from "astro:content"
-import LatestEntries from "@/components/blog/LatestEntries.astro"
import StoreEntries from "@/components/store/StoreEntries.astro"
-import Hero from "@/components/landing/Hero.astro"
-import CtaOne from "@/components/cta/CtaOne.astro"
-import CtaThree from "@/components/cta/CtaThree.astro"
import CtaTwo from "@/components/cta/CtaTwo.astro"
-import Locale from "./[locale].astro"
-const allPosts = await getCollection("posts")
const allProducts = await getCollection("store")
const locale = Astro.currentLocale || "en"
-
---
-
-
+
{
- allProducts.map((post) => (
+ allProducts.map((item) => (
))
}
diff --git a/src/pages/resources/home.astro b/src/pages/resources/home.astro
index 6240b03..e867735 100644
--- a/src/pages/resources/home.astro
+++ b/src/pages/resources/home.astro
@@ -3,14 +3,16 @@ import Wrapper from "@/components/containers/Wrapper.astro";
import { getCollection } from "astro:content";
import BaseLayout from "@/layouts/BaseLayout.astro";
import EntriesOne from "@/components/blog/EntriesOne.astro";
-const allPosts = await getCollection("resources")
+
+const all = await getCollection("resources")
+
---
{
- allPosts
+ all
.slice()
.map((post) => (
post.data.tags).flat()),
- ];
- return uniqueTags.map((tag) => {
- const filteredPosts = allPosts.filter((post) =>
- post.data.tags.includes(tag)
- );
- return {
- params: { tag },
- props: { posts: filteredPosts },
- };
- });
-}
-const { tag } = Astro.params;
-const { posts } = Astro.props;
----
-
-
-
-
-
-
-
- Blog posts tagged with {tag}
-
-
-
-
-
- {
- posts.map((post) => (
-
- ))
- }
-
-
-
diff --git a/src/pages/resources/tags/index.astro b/src/pages/resources/tags/index.astro
deleted file mode 100644
index ae51091..0000000
--- a/src/pages/resources/tags/index.astro
+++ /dev/null
@@ -1,82 +0,0 @@
----
-import { getCollection } from "astro:content";
-import BaseLayout from "@/layouts/BaseLayout.astro";
-
-const allPosts = await getCollection("posts");
-const tags = [...new Set(allPosts.map((post) => post.data.tags).flat())];
-const pageTitle = "Tag Index";
----
-
-
-
-
-
-
- All tags
-
-
- All tags from our blog.
-
-
-
-
-
-
diff --git a/src/pages/tests/kbot.astro b/src/pages/tests/kbot.astro
index ffa74cf..7af4590 100644
--- a/src/pages/tests/kbot.astro
+++ b/src/pages/tests/kbot.astro
@@ -5,7 +5,6 @@ import { getCollection } from "astro:content"
import KBot from "@/components/polymech/kbot.astro"
const locale = Astro.currentLocale
const store = `${locale}/store/`
-const blog = `/blog/posts/`
import Map from "@/components/polymech/map.astro"
@@ -19,8 +18,8 @@ const mapOptions = {