Retouch all pages and add 'Engaged in Reality'
This commit is contained in:
parent
1dda4c9af8
commit
b03aca87e7
37 changed files with 1701 additions and 553 deletions
|
|
@ -4,37 +4,43 @@ import markdownIntegration from "@astropub/md";
|
|||
import mdxIntegration from "@astrojs/mdx";
|
||||
import htaccessIntegration from "astro-htaccess";
|
||||
import pagefindIntegration from "astro-pagefind";
|
||||
import alpinejsIntegration from "@astrojs/alpinejs";
|
||||
import { AI_BOTS } from "./src/data/ai_bots";
|
||||
|
||||
import alpinejs from "@astrojs/alpinejs";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: "https://gallery.badmanners.xyz",
|
||||
integrations: [tailwindIntegration({
|
||||
applyBaseStyles: false,
|
||||
}), markdownIntegration(), mdxIntegration(), htaccessIntegration({
|
||||
generateHtaccessFile: import.meta.env.APACHE_CONFIG === "true",
|
||||
customRules: [
|
||||
// Block AI bots
|
||||
"<IfModule mod_rewrite.c>",
|
||||
" RewriteEngine on",
|
||||
" RewriteBase /",
|
||||
` RewriteCond %{HTTP_USER_AGENT} ${AI_BOTS.map((bot) => `^${bot}$`).join("|")} [NC]`,
|
||||
" RewriteRule ^ – [F]",
|
||||
"</IfModule>",
|
||||
],
|
||||
redirects: [
|
||||
{
|
||||
match: "/story/",
|
||||
url: "/stories/",
|
||||
},
|
||||
{
|
||||
match: "/game/",
|
||||
url: "/games/",
|
||||
},
|
||||
],
|
||||
}), pagefindIntegration(), alpinejs()],
|
||||
integrations: [
|
||||
tailwindIntegration({
|
||||
applyBaseStyles: false,
|
||||
}),
|
||||
markdownIntegration(),
|
||||
mdxIntegration(),
|
||||
alpinejsIntegration(),
|
||||
pagefindIntegration(),
|
||||
htaccessIntegration({
|
||||
generateHtaccessFile: import.meta.env.APACHE_CONFIG === "true",
|
||||
customRules: [
|
||||
// Block AI bots
|
||||
"<IfModule mod_rewrite.c>",
|
||||
" RewriteEngine on",
|
||||
" RewriteBase /",
|
||||
` RewriteCond %{HTTP_USER_AGENT} ${AI_BOTS.map((bot) => `^${bot}$`).join("|")} [NC]`,
|
||||
" RewriteRule ^ – [F]",
|
||||
"</IfModule>",
|
||||
],
|
||||
redirects: [
|
||||
{
|
||||
match: "/story/",
|
||||
url: "/stories/",
|
||||
},
|
||||
{
|
||||
match: "/game/",
|
||||
url: "/games/",
|
||||
},
|
||||
],
|
||||
}),
|
||||
],
|
||||
markdown: {
|
||||
smartypants: false,
|
||||
shikiConfig: {
|
||||
|
|
@ -63,4 +69,4 @@ export default defineConfig({
|
|||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue