Skip to content

About

T1b4lt Github page repository

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

T1b4lt.github.io

Personal portfolio and blog for Guillermo Segovia, built with Astro and Tailwind CSS, deployed to GitHub Pages at t1b4lt.github.io.

The site is a static, content-driven blog with a landing page, bilingual content (Spanish and English), dark mode, and a typed Markdown content collection for posts.

Tech Stack

  • Astro 6 — static site generator, content collections, built-in i18n routing.
  • Tailwind CSS 4 — utility-first styling via the Vite plugin (@tailwindcss/vite).
  • TypeScript (strict mode) — used in content schema, component props, and i18n utilities.
  • ESLint — linting for .ts, .js, and .astro files via eslint-plugin-astro and typescript-eslint.
  • Prettier — code formatting with prettier-plugin-astro.
  • GitHub Actions + GitHub Pages — automated lint gate + build + deploy on push to main.

Setup

Prerequisites

  • Node.js >= 24 (CI pins Node 24).
  • npm (ships with Node).

Install and run locally

npm install          # install dependencies
npm run dev          # start the dev server at http://localhost:4321
npm run build        # produce a production build in ./dist
npm run preview      # serve the production build locally
npm run lint         # run ESLint
npm run format       # format all files with Prettier
npm run format:check # check formatting (used in CI)

Deploy

Deployment is fully automated. On every push to main, two workflows run: lint.yml checks formatting, linting, and types; deploy.yml builds the site with withastro/action@v6 and publishes the dist/ output to GitHub Pages. The lint workflow also runs on every pull request.

Project Structure

.
├── .github/workflows/        # GitHub Actions (lint gate + Pages deploy)
├── astro.config.mjs          # Astro config (i18n, Tailwind plugin)
├── eslint.config.mjs         # ESLint flat config (Astro + TypeScript)
├── .prettierrc.mjs           # Prettier config (Astro plugin)
├── .prettierignore            # Files excluded from formatting
├── docs/                     # Project documentation (see docs/README.md)
├── public/                   # Static assets served as-is
│   ├── favicon.svg
│   ├── fonts/                # Roboto font files (self-hosted)
│   ├── fontawesome/          # FontAwesome CSS + webfonts (self-hosted)
│   ├── images/
│   └── talks/<slug>/         # Self-contained HTML slide decks (served as-is)
├── src/
│   ├── components/           # Reusable .astro components
│   │   ├── DarkModeToggle.astro
│   │   ├── Footer.astro
│   │   ├── Header.astro
│   │   ├── LanguagePicker.astro
│   │   ├── NavBar.astro
│   │   └── PostList.astro
│   ├── content/
│   │   ├── blog/
│   │   │   ├── en/           # English posts (Markdown)
│   │   │   └── es/           # Spanish posts (Markdown)
│   │   └── talks/            # Talk metadata (one .md per public/talks/<slug>)
│   ├── content.config.ts     # Content collection schema (glob loader)
│   ├── i18n/
│   │   ├── ui.ts             # Translation strings
│   │   └── utils.ts          # lang helpers + post translation lookup
│   ├── layouts/
│   │   ├── Layout.astro      # Base layout (head + Header + Footer)
│   │   └── PostLayout.astro  # Post-specific layout
│   ├── pages/
│   │   ├── 404.astro
│   │   ├── index.astro       # English home (default locale, no prefix)
│   │   ├── blog.astro        # English blog index
│   │   ├── blog/[slug].astro # English blog post
│   │   ├── talks.astro       # Talks listing (EN)
│   │   └── es/               # Spanish routes (/es/ prefix)
│   │       ├── index.astro
│   │       ├── blog.astro
│   │       ├── talks.astro
│   │       └── blog/[slug].astro
│   ├── styles/global.css     # Tailwind entry + @font-face declarations
│   └── env.d.ts
├── package.json
└── tsconfig.json

How blog posts work

Posts live under src/content/blog/<lang>/<slug>.md. The filename slug is the identifier: it becomes the URL (/blog/<slug> for EN, /es/blog/<slug> for ES). Each post declares the following frontmatter (validated by src/content.config.ts):

idx: 1 # Sort key (higher = shown first) and translation-link key
title: "..."
author: "..."
pubDate: "..." # Display date
pubDateLogical: "YYYY-MM-DD" # Used to hide future-dated posts
tags: ["tag1", "tag2"]

Two posts in different languages with the same idx are treated as translations of each other; see src/i18n/utils.ts (getPostTranslations). The slugs themselves are independent per language.

Documentation

In-depth documentation of design decisions, architecture, and the content pipeline lives in docs/.

For AI coding agents and future maintainers, a navigation guide is available in AGENTS.md.

About

T1b4lt Github page repository

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages