Add sitemap/robots.txt generation plugins, fix titleTag, lower header underline opacity

This commit is contained in:
2023-11-27 18:06:59 -06:00
parent 8c02b7c2e0
commit 7522fdabb0
4 changed files with 68 additions and 8 deletions

View File

@@ -1,10 +1,14 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";
import robotsTxt from "astro-robots-txt";
// https://astro.build/config
export default defineConfig({
integrations: [tailwind()],
site: 'https://undefined.behavio.rs',
integrations: [tailwind(), sitemap(), robotsTxt({
})],
markdown: {
shikiConfig: {
// Choose from Shiki's built-in themes (or add your own)
@@ -15,7 +19,7 @@ export default defineConfig({
// https://github.com/shikijs/shiki/blob/main/docs/languages.md
langs: [],
// Enable word wrap to prevent horizontal scrolling
wrap: true,
},
},
});
wrap: true
}
}
});

View File

@@ -11,8 +11,10 @@
},
"dependencies": {
"@astrojs/check": "^0.3.1",
"@astrojs/sitemap": "^3.0.3",
"@astrojs/tailwind": "^5.0.2",
"astro": "^3.6.0",
"astro-robots-txt": "^1.0.0",
"date-fns": "^2.30.0",
"prettier": "^3.1.0",
"prettier-plugin-astro": "^0.12.2",

53
pnpm-lock.yaml generated
View File

@@ -8,12 +8,18 @@ dependencies:
'@astrojs/check':
specifier: ^0.3.1
version: 0.3.1(prettier-plugin-astro@0.12.2)(prettier@3.1.0)(typescript@5.3.2)
'@astrojs/sitemap':
specifier: ^3.0.3
version: 3.0.3
'@astrojs/tailwind':
specifier: ^5.0.2
version: 5.0.2(astro@3.6.0)(tailwindcss@3.3.5)
astro:
specifier: ^3.6.0
version: 3.6.0(sass@1.69.5)(typescript@5.3.2)
astro-robots-txt:
specifier: ^1.0.0
version: 1.0.0
date-fns:
specifier: ^2.30.0
version: 2.30.0
@@ -144,6 +150,13 @@ packages:
prismjs: 1.29.0
dev: false
/@astrojs/sitemap@3.0.3:
resolution: {integrity: sha512-+GRKp1yho9dpHBcMcU6JpbL41k0yYZghOkNsMRb8QIRflbGHvd787tdv9oIZ5NJj0SqAuOlqp2UpqLkJXuAe2A==}
dependencies:
sitemap: 7.1.1
zod: 3.22.4
dev: false
/@astrojs/tailwind@5.0.2(astro@3.6.0)(tailwindcss@3.3.5):
resolution: {integrity: sha512-oXqeqmBlkQmsltrsU9nEWeXOtrZIAHW8dcmX7BCdrjzPnU6dPwWzAwhddNQ9ihKiWwsLnlbwQZIo2CDigcZlIA==}
peerDependencies:
@@ -944,10 +957,20 @@ packages:
'@types/unist': 2.0.10
dev: false
/@types/node@17.0.45:
resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==}
dev: false
/@types/parse5@6.0.3:
resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==}
dev: false
/@types/sax@1.2.7:
resolution: {integrity: sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==}
dependencies:
'@types/node': 17.0.45
dev: false
/@types/unist@2.0.10:
resolution: {integrity: sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==}
dev: false
@@ -1101,6 +1124,13 @@ packages:
resolution: {integrity: sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==}
dev: false
/astro-robots-txt@1.0.0:
resolution: {integrity: sha512-6JQSLid4gMhoWjOm85UHLkgrw0+hHIjnJVIUqxjU2D6feKlVyYukMNYjH44ZDZBK1P8hNxd33PgWlHzCASvedA==}
dependencies:
valid-filename: 4.0.0
zod: 3.22.4
dev: false
/astro@3.6.0(sass@1.69.5)(typescript@5.3.2):
resolution: {integrity: sha512-mRDzWXsaSBaN+juvunO4Ukq8HQ1WqrULlcZfKzaKEZEXvxiWmMKN9tH0onQH0EaQ7+f4nNR4VN9kYTM26uMrXQ==}
engines: {node: '>=18.14.1', npm: '>=6.14.0'}
@@ -1772,6 +1802,11 @@ packages:
reusify: 1.0.4
dev: false
/filename-reserved-regex@3.0.0:
resolution: {integrity: sha512-hn4cQfU6GOT/7cFHXBqeBg2TbrMBgdD0kcjLhvSQYYwm3s4B6cjvBfb7nBALJLAXqmU5xajSa7X2NnUud/VCdw==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
dev: false
/fill-range@7.0.1:
resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==}
engines: {node: '>=8'}
@@ -3599,6 +3634,17 @@ packages:
resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
dev: false
/sitemap@7.1.1:
resolution: {integrity: sha512-mK3aFtjz4VdJN0igpIJrinf3EO8U8mxOPsTBzSsy06UtjZQJ3YY3o3Xa7zSc5nMqcMrRwlChHZ18Kxg0caiPBg==}
engines: {node: '>=12.0.0', npm: '>=5.6.0'}
hasBin: true
dependencies:
'@types/node': 17.0.45
'@types/sax': 1.2.7
arg: 5.0.2
sax: 1.3.0
dev: false
/source-map-js@1.0.2:
resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
engines: {node: '>=0.10.0'}
@@ -4023,6 +4069,13 @@ packages:
sade: 1.8.1
dev: false
/valid-filename@4.0.0:
resolution: {integrity: sha512-VEYTpTVPMgO799f2wI7zWf0x2C54bPX6NAfbZ2Z8kZn76p+3rEYCTYVYzMUcVSMvakxMQTriBf24s3+WeXJtEg==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
dependencies:
filename-reserved-regex: 3.0.0
dev: false
/vfile-location@4.1.0:
resolution: {integrity: sha512-YF23YMyASIIJXpktBa4vIGLJ5Gs88UB/XePgqPmTa7cDA+JeO3yclbpheQYCHjVHBn/yePzrXuygIL+xbvRYHw==}
dependencies:

View File

@@ -11,7 +11,7 @@ interface Props {
}
const { title } = Astro.props;
const titleTag = title != undefined ? `${title} | xevion.blog` : 'xevion.blog';
const titleTag = title != undefined ? `${title} | undefined.behavio.rs` : 'undefined.behavio.rs';
---
<!doctype html>
<html lang="en">
@@ -27,6 +27,7 @@ const titleTag = title != undefined ? `${title} | xevion.blog` : 'xevion.blog';
<link as="font" crossorigin href="/fonts/-cmunrm.woff2" rel="preload">
<link as="font" crossorigin href="/fonts/-cmuntt.woff2" rel="preload">
<link as="font" crossorigin href="/fonts/-cmunti.woff2" rel="preload">
<link as="sitemap" type="application/xml" href="/sitemap-index.xml">
<link href="/feed.xml" rel="alternate" type="application/atom+xml">
<ViewTransitions />
<!-- {page._preview_description and page.title or page.name == "index.html"} -->
@@ -60,7 +61,7 @@ const titleTag = title != undefined ? `${title} | xevion.blog` : 'xevion.blog';
<span style="--index: 2;">undefined behaviors</span>
</div>
</header>
<nav class="text-center text-xl text-[#808080] [&>a]:text-white [&>a]:underline [&>span]:select-none">
<nav class="text-center text-xl text-[#808080] [&>a]:text-white [&>a]:underline decoration-white/85 [&>span]:select-none">
<a href="/">~/</a>
<span>:</span>
<a href="https://xevion.dev">~/about/</a>