/astro-cookieyes

CodeSandbox Personal Blog example with Astro

Primary LanguageAstro

Astro Starter Kit: Blog in CodeSandbox

Configuration has been added to optimize it for CodeSandbox Projects.

Open with CodeSandbox

πŸ§‘β€πŸš€ Seasoned astronaut? Delete this file. Have fun!

blog

Features:

  • βœ… Minimal styling (make it your own!)
  • βœ… 100/100 Lighthouse performance
  • βœ… SEO-friendly with canonical URLs and OpenGraph data
  • βœ… Sitemap support
  • βœ… RSS Feed support
  • βœ… Markdown & MDX support

πŸš€ Project Structure

Inside of your Astro project, you'll see the following folders and files:

β”œβ”€β”€ public/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ layouts/
β”‚   └── pages/
β”œβ”€β”€ astro.config.mjs
β”œβ”€β”€ README.md
β”œβ”€β”€ package.json
└── tsconfig.json

Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the public/ directory.

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:3000
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run astro ... Run CLI commands like astro add, astro check
npm run astro --help Get help using the Astro CLI

πŸ‘€ Want to learn more?

Check out our documentation or jump into our Discord server.

Cookie consent

You can implement cookie consent on your website in just 3 simple steps.

Sign up on CookieYes for free Choose your cookie consent banner layout Copy the cookie banner code and paste it to your website

Guide: How to add a cookie banner on website

Cookie consent is the legal requirement to obtain consent from website visitors before setting cookies on their devices. Consent is collected via a cookie banner that enables visitors to accept or decline cookies on the website.

Privacy regulations like the GDPR in the EU and UK, LGPD in Brazil, POPIA in South Africa and similar laws around the world require businesses to get consent for collecting a user’s personal data. As cookies and trackers can store personal data and be used to identify an individual, they are considered part of personal data.