Initial commit
Some checks are pending
Zola / build-and-deploy (push) Waiting to run

This commit is contained in:
Alejandro Guerrero 2025-12-14 00:46:02 +01:00
commit 57e36978f6
Signed by: alejandrogs73
GPG key ID: 1CFF10953BEE333C
7 changed files with 158 additions and 0 deletions

View file

@ -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/

15
config.toml Normal file
View file

@ -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"

14
content/_index.md Normal file
View file

@ -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.

27
flake.lock generated Normal file
View file

@ -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
}

25
flake.nix Normal file
View file

@ -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"
'';
};
};
}

41
templates/base.html Normal file
View file

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
<style>
body {
background-color: #1a1a1a;
color: #e0e0e0;
font-family: 'Courier New', Courier, monospace; /* Estética terminal */
max-width: 800px;
margin: 0 auto;
padding: 2rem;
line-height: 1.6;
}
a { color: #fe8019; text-decoration: none; } /* Naranja Rust/Gruvbox */
a:hover { text-decoration: underline; }
h1, h2, h3 { color: #fabd2f; }
nav { margin-bottom: 2rem; border-bottom: 1px solid #333; padding-bottom: 1rem; }
footer { margin-top: 4rem; font-size: 0.8rem; color: #666; border-top: 1px solid #333; padding-top: 1rem; }
</style>
</head>
<body>
<nav>
<a href="/"><strong>~/alejandrogs.es</strong></a>
<span style="float: right;">
<a href="/blog">Blog</a> |
<a href="{{ config.extra.github }}">GitHub</a>
</span>
</nav>
<main>
{% block content %}{% endblock content %}
</main>
<footer>
<p>&copy; 2025 Alejandro GS. Hecho con <a href="https://www.getzola.org">Zola</a> y Honor.</p>
</footer>
</body>
</html>

18
templates/index.html Normal file
View file

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ section.title }}</h1>
<div class="intro">
{{ section.content | safe }}
</div>
<h2>Últimas Entradas</h2>
<ul>
{% for page in section.pages %}
<li>
{{ page.date }} - <a href="{{ page.permalink }}">{{ page.title }}</a>
</li>
{% endfor %}
</ul>
{% endblock content %}