From 57e36978f6aa314c9424dda7e7c59cb077ef1ca0 Mon Sep 17 00:00:00 2001 From: alejandrogs73 Date: Sun, 14 Dec 2025 00:46:02 +0100 Subject: [PATCH] Initial commit --- .forgejo/workflows/deploy.yaml | 18 +++++++++++++++ config.toml | 15 +++++++++++++ content/_index.md | 14 ++++++++++++ flake.lock | 27 ++++++++++++++++++++++ flake.nix | 25 +++++++++++++++++++++ templates/base.html | 41 ++++++++++++++++++++++++++++++++++ templates/index.html | 18 +++++++++++++++ 7 files changed, 158 insertions(+) create mode 100644 .forgejo/workflows/deploy.yaml create mode 100644 config.toml create mode 100644 content/_index.md create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 templates/base.html create mode 100644 templates/index.html diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml new file mode 100644 index 0000000..158dca6 --- /dev/null +++ b/.forgejo/workflows/deploy.yaml @@ -0,0 +1,18 @@ +name: Zola +on: [push] + +jobs: + build-and-deploy: + runs-on: native:host + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Zola + run: | + zola build + + - name: Nginx + run: | + rm -rf /var/www/alejandrogs.es/* + cp -r public/* /var/www/alejandrogs.es/ diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..50480c4 --- /dev/null +++ b/config.toml @@ -0,0 +1,15 @@ +# config.toml +base_url = "https://alejandrogs.es" +title = "Alejandro GS" +description = "Ingeniería, Soberanía y Software Libre." +default_language = "es" +minify_html = true + +[markdown] +highlight_code = true +highlight_theme = "gruvbox-dark" # Un clásico de los ingenieros + +[extra] +author = "Alejandro" +twitter = "https://twitter.com/alejandro_gs73" # (Cámbielo o bórrelo) +github = "https://github.com/alejandrogs73" diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..ddf24ab --- /dev/null +++ b/content/_index.md @@ -0,0 +1,14 @@ ++++ +title = "AlejandroGS" +sort_by = "date" +template = "index.html" ++++ + +# 🏛️ Un lugar tranquilo en la red + +Bienvenido a mi dominio personal. + +En un internet cada vez más ruidoso, efímero y vigilado, este sitio aspira a ser **tierra firme**. +Esto no es un producto ni un escaparate. Es mi rincón de soberanía digital, construido piedra a piedra (o *commit* a *commit*) bajo mis propias reglas. + +Pase, lea y permanezca el tiempo que quiera. diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..9726a9a --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1765472234, + "narHash": "sha256-9VvC20PJPsleGMewwcWYKGzDIyjckEz8uWmT0vCDYK0=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "2fbfb1d73d239d2402a8fe03963e37aab15abe8b", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..a7390df --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + description = "Entorno de desarrollo para AlejandroGS.es (Zola)"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs }: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in + { + devShells.${system}.default = pkgs.mkShell { + buildInputs = with pkgs; [ + zola + git + ]; + + shellHook = '' + echo "Zola" + ''; + }; + }; +} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..5eee258 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,41 @@ + + + + + + {% block title %}{{ config.title }}{% endblock title %} + + + + + +
+ {% block content %}{% endblock content %} +
+ + + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..cb1ee6d --- /dev/null +++ b/templates/index.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block content %} +

{{ section.title }}

+ +
+ {{ section.content | safe }} +
+ +

Últimas Entradas

+ +{% endblock content %}