diff --git a/package.json b/package.json
index 2e5a5218..b63943c0 100644
--- a/package.json
+++ b/package.json
@@ -26,6 +26,7 @@
"@tailwindcss/forms": "^0.5.7",
"animate.css": "^4.1.1",
"astro": "^4.7.0",
+ "astro-seo": "^0.8.4",
"dayjs": "^1.11.12",
"dompurify": "^3.1.7",
"leaflet": "^1.9.4",
@@ -43,10 +44,10 @@
"devDependencies": {
"@tailwindcss/typography": "^0.5.14",
"@types/dompurify": "^3.0.5",
- "npm-run-all": "^4.1.5",
- "pagefind": "^1.1.1",
"@types/lodash": "^4.17.12",
"@types/react": "^18.2.37",
- "@types/react-dom": "^18.2.15"
+ "@types/react-dom": "^18.2.15",
+ "npm-run-all": "^4.1.5",
+ "pagefind": "^1.1.1"
}
}
\ No newline at end of file
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2128904e..9ac74b22 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -41,6 +41,9 @@ importers:
astro:
specifier: ^4.7.0
version: 4.16.7(@types/node@22.7.9)(rollup@4.24.0)(sass@1.80.4)(typescript@5.6.3)
+ astro-seo:
+ specifier: ^0.8.4
+ version: 0.8.4(prettier@2.8.7)(typescript@5.6.3)
dayjs:
specifier: ^1.11.12
version: 1.11.13
@@ -1288,6 +1291,9 @@ packages:
peerDependencies:
astro: ^4.12.0
+ astro-seo@0.8.4:
+ resolution: {integrity: sha512-Ou1vzQSXAxa0K8rtNtXNvSpYqOGEgMhh0immMxJeXmbVZac3UKCNWAoXWyOQDFYsZvBugCRSg0N1phBqPMVgCw==}
+
astro@4.16.7:
resolution: {integrity: sha512-nON+8MUEkWTFwXbS4zsQIq4t0Fs42eulM4x236AL+qNnWfqNAOOqAnFxO1dxfJ1q+XopIBbbT9Mtev+0zH47PQ==}
engines: {node: ^18.17.1 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0'}
@@ -4587,6 +4593,14 @@ snapshots:
pathe: 1.1.2
recast: 0.23.9
+ astro-seo@0.8.4(prettier@2.8.7)(typescript@5.6.3):
+ dependencies:
+ '@astrojs/check': 0.5.10(prettier@2.8.7)(typescript@5.6.3)
+ transitivePeerDependencies:
+ - prettier
+ - prettier-plugin-astro
+ - typescript
+
astro@4.16.7(@types/node@22.7.9)(rollup@4.24.0)(sass@1.80.4)(typescript@5.6.3):
dependencies:
'@astrojs/compiler': 2.10.3
diff --git a/src/components/navigation-list.astro b/src/components/navigation-list.astro
index 042d6927..e3e93c38 100644
--- a/src/components/navigation-list.astro
+++ b/src/components/navigation-list.astro
@@ -4,7 +4,7 @@ import React from "react";
const { links } = Astro.props;
---
-
+
{links?.map((link) => {
const pathname = new URL(Astro.request.url).pathname;
@@ -12,7 +12,7 @@ const { links } = Astro.props;
return (
{link.text}
+ class={`text-base block w-full h-full text-brand-primary py-2 px-6 hover:text-brand-primary hover:bg-gray-50/50 dark:hover:bg-gray-800/50 transition duration-150 ease-in-out ${isActive ? 'bg-blue-100 text-blue-700' : ''}`}>{link.text}
)
})}
diff --git a/src/layouts/complex.astro b/src/layouts/complex.astro
index ba65f62b..b09adf3d 100644
--- a/src/layouts/complex.astro
+++ b/src/layouts/complex.astro
@@ -9,12 +9,12 @@ const props = Astro.props;
{Astro.slots.has("left") && (
)}
-
@@ -18,7 +21,7 @@ import "../styles/global.scss";
try {
window.pagefind = await import('/pagefind/pagefind.js');
await window.pagefind.options({
- ranking: { pageLength: .35 }
+ ranking: {pageLength: .35}
});
window.pagefind.init();
} catch (error) {
@@ -36,6 +39,45 @@ import "../styles/global.scss";
document.documentElement.classList.add('dark');
}
+
diff --git a/src/layouts/narrow.astro b/src/layouts/narrow.astro
index 2fc1b71a..b00064e3 100644
--- a/src/layouts/narrow.astro
+++ b/src/layouts/narrow.astro
@@ -1,6 +1,5 @@
---
import DefaultLayout from "./default.astro";
-
const { frontmatter } = Astro.props;
---
@@ -24,4 +23,4 @@ const { frontmatter } = Astro.props;
-
\ No newline at end of file
+
diff --git a/src/pages/news/index.astro b/src/pages/news/index.astro
index 63a7fc2e..10e80039 100644
--- a/src/pages/news/index.astro
+++ b/src/pages/news/index.astro
@@ -1,5 +1,5 @@
---
-import { getCollection } from 'astro:content';
+import {getCollection} from 'astro:content';
import FullWidthLayout from "../../layouts/full-width.astro";
// Function to normalize the date
@@ -27,17 +27,21 @@ news.sort((a, b) => parseDate(b.data.date) - parseDate(a.data.date));
{news.map((entry) => {
return (
-
-
-
-
-
- {entry.data.date}
- {entry.data.title}
- {entry.data.summary &&
- {truncateStringToLength(entry.data.summary, 120)} }
+
+
+
+
+
+
+ {entry.data.date}
+ {entry.data.title}
+ {entry.data.summary &&
+
+ {truncateStringToLength(entry.data.summary, 120)}
+ }
+
)
diff --git a/src/pages/services/index.astro b/src/pages/services/index.astro
index 069ac9e0..461fddc5 100644
--- a/src/pages/services/index.astro
+++ b/src/pages/services/index.astro
@@ -27,7 +27,7 @@ const _services = services.map(
);
---
-
+
diff --git a/src/pages/training/index.astro b/src/pages/training/index.astro
index f6f77d3c..4f07ea7c 100644
--- a/src/pages/training/index.astro
+++ b/src/pages/training/index.astro
@@ -2,12 +2,10 @@
import MainContent from "../../content/training/index.mdx";
import { components } from "../../components/elements";
import Projects from "../../layouts/complex.astro";
-import LinkWithFigure from "../../components/link-with-figure";
-import Card from "../../components/card";
import NavigationList from "../../components/navigation-list.astro";
---
-
+
-
-
\ No newline at end of file