Skip to content

Latest commit

 

History

History
72 lines (53 loc) · 1.69 KB

File metadata and controls

72 lines (53 loc) · 1.69 KB

2026.es.pycon.org

Website for the most important Python event in Spain in the year 2026.

Requirements

Installation

pnpm install
pre-commit install

Development

pnpm dev

Build

pnpm build

Preview

pnpm preview

SEO & New Pages

To maintain good SEO and consistency as the project grows, follow these guidelines when adding new pages:

1. Creating Multi-language Pages

New pages should be created in src/pages/[lang]/ using getStaticPaths.

  • Ensure you use the <Layout> component.
  • Always provide a unique title and description to the Layout.

Example:

---
import Layout from '../../layouts/Layout.astro'
// ...
---
<Layout title="Your Page Title" description="Concise description (150-160 chars)">
  <!-- Content -->
</Layout>

2. SEO Best Practices

  • Semantic HTML: Use only one <h1> per page. Follow a logical heading hierarchy (<h2>, <h3>).
  • Image Alt Tags: All <img> tags MUST have descriptive alt attributes.
  • Internal Linking: Use descriptive link text (avoid "click here").

3. Analytics

  • Set the PUBLIC_GA_ID environment variable in your .env file to enable Google Analytics.
    PUBLIC_GA_ID=G-XXXXXXXXXX
    

4. Structured Data

  • The main event structured data (JSON-LD) is globally included in Layout.astro.
  • For specific pages (like "Sponsors" or "Talks"), consider adding additional schema.org types locally if necessary.

5. Sitemap

  • The sitemap is automatically generated on every build. No manual action is required.