diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d75993e --- /dev/null +++ b/.gitignore @@ -0,0 +1,41 @@ +# Build output +dist/ +.astro/ + +# Dependencies +node_modules/ + +# Logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Environment variables +.env +.env.local +.env.production +.env.*.local + +# macOS +.DS_Store + +# IDE +.vscode/ +.idea/ +*.swp +*.swo +*~ + +# OS +Thumbs.db + +# Package lock files (keep package-lock.json but ignore others) +yarn.lock +pnpm-lock.yaml + +# Local development +*.local + +# Build artifacts +*.tsbuildinfo diff --git a/BaseLayout.astro b/BaseLayout.astro deleted file mode 100644 index eafde98..0000000 --- a/BaseLayout.astro +++ /dev/null @@ -1,93 +0,0 @@ ---- -interface Props { - title: string; -} - -const { title } = Astro.props; ---- - - - - - - - - - - {title} - - - - - - - diff --git a/astro.config.mjs b/astro.config.mjs index e7b017a..4caa244 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,6 +1,14 @@ import { defineConfig } from 'astro/config'; +import sitemap from '@astrojs/sitemap'; // https://astro.build/config export default defineConfig({ site: 'https://hiddenden.cafe', + integrations: [ + sitemap({ + changefreq: 'weekly', + priority: 0.7, + lastmod: new Date(), + }), + ], }); diff --git a/package.json b/package.json index 27457eb..728e972 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.18" + "astro": "^4.16.18", + "@astrojs/sitemap": "^3.2.2" } } diff --git a/favicon.svg b/public/favicon.svg similarity index 100% rename from favicon.svg rename to public/favicon.svg diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..c182de7 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,16 @@ +# Hidden Den Cafe - Robots.txt +User-agent: * +Allow: / + +# Sitemap +Sitemap: https://hiddenden.cafe/sitemap-index.xml + +# Crawl-delay for polite crawlers +Crawl-delay: 1 + +# Block aggressive bots (optional - uncomment if needed) +# User-agent: AhrefsBot +# Disallow: / + +# User-agent: SemrushBot +# Disallow: / diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro new file mode 100644 index 0000000..94c86f8 --- /dev/null +++ b/src/layouts/BaseLayout.astro @@ -0,0 +1,174 @@ +--- +interface Props { + title: string; + description?: string; + ogImage?: string; + canonicalURL?: string; +} + +const { + title, + description = "Hidden Den Cafe - A cozy, self-hosted corner of the internet. Privacy-focused, furry-friendly, and built with love.", + ogImage = "/og-image.png", + canonicalURL = Astro.url.pathname +} = Astro.props; + +const fullCanonicalURL = new URL(canonicalURL, Astro.site).href; +const fullOgImage = new URL(ogImage, Astro.site).href; +--- + + + + + + + + + + {title} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/pages/404.astro b/src/pages/404.astro new file mode 100644 index 0000000..a8bade5 --- /dev/null +++ b/src/pages/404.astro @@ -0,0 +1,150 @@ +--- +import BaseLayout from '../layouts/BaseLayout.astro'; +--- + + +
+
+
+
+

404

+

Lost in the Den?

+

+ Oops! This cozy corner doesn't seem to exist. Maybe it's still being built, + or perhaps you've wandered into a part of the den that hasn't been opened yet. +

+ +
+
+
+
+
+ + diff --git a/index.astro b/src/pages/index.astro similarity index 69% rename from index.astro rename to src/pages/index.astro index 05e9e54..ac6f696 100644 --- a/index.astro +++ b/src/pages/index.astro @@ -2,23 +2,28 @@ import BaseLayout from '../layouts/BaseLayout.astro'; --- - -
+ +
-
+
-

🏡 Hidden Den Cafe

+

+ Hidden Den Cafe +

A cozy corner of the internet

-
+
-

☕ About Hidden Den

+

About Hidden Den

Welcome to Hidden Den Cafe - a warm, self-hosted space where technology meets comfort. This is a personal corner of the internet built with love, @@ -34,10 +39,10 @@ import BaseLayout from '../layouts/BaseLayout.astro';

-
+
-

🦊 About Me

+

About Me

Hey there! I'm Latte, a gay furry developer who loves building things and being part of the warm, welcoming furry community. I'm passionate @@ -58,24 +63,24 @@ import BaseLayout from '../layouts/BaseLayout.astro';

-
+
-

🛠️ Services

+

Services

Here are the services currently running in the den:

- -
-
+ +
+

- - 📦 Gitea + + Gitea

Self-hosted Git service for all my projects and code repositories.

- -
-

🔜 More Coming Soon

+ +
+

More Coming Soon

The den is always growing! More services will be added as they're developed and deployed.

@@ -84,36 +89,36 @@ import BaseLayout from '../layouts/BaseLayout.astro';
-
+
-

💝 How to Help Out

+

How to Help Out

- If you'd like to support the Hidden Den and help keep the lights on, + If you'd like to support the Hidden Den and help keep the lights on, here are some ways you can contribute:

- -
-
-

🌟 Share & Spread the Word

+ +
+
+

Share & Spread the Word

Tell others about the projects and services hosted here!

- -
-

🐛 Report Issues

+ +
+

Report Issues

Found a bug or have a suggestion? Let me know!

- -
-

☕ Buy Me a Coffee

+ +
+

Buy Me a Coffee

- Donations help cover server costs and keep the den cozy. + Donations help cover server costs and keep the den cozy. (Payment links coming soon!)

-
-

🤝 Contribute

+
+

Contribute

Check out the projects on Gitea - contributions are always welcome!

@@ -122,14 +127,16 @@ import BaseLayout from '../layouts/BaseLayout.astro';
-