diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5bfb5c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +.direnv diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..55119e4 --- /dev/null +++ b/config.toml @@ -0,0 +1,16 @@ +# The URL the site will be built for +base_url = "https://astolfo.org" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = false + +# Whether to build a search index to be used later on by a JavaScript library +build_search_index = true + +[markdown] +# Whether to do syntax highlighting +# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola +highlight_code = true + +[extra] +# Put all your custom variables here diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..c080c46 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,5 @@ ++++ +title = "astolfo.org | homepage" +page_template = "homepage.html" +template = "homepage.html" ++++ diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..1f6c611 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1747060738, + "narHash": "sha256-ByfPRQuqj+nhtVV0koinEpmJw0KLzNbgcgi9EF+NVow=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "eaeed9530c76ce5f1d2d8232e08bec5e26f18ec1", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..c4f5caa --- /dev/null +++ b/flake.nix @@ -0,0 +1,30 @@ +{ + # from https://ilanjoselevich.com/blog/building-websites-using-nix-flakes-and-zola/ + description = "the website for astolfo.org"; + + inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + inputs.flake-utils.url = "github:numtide/flake-utils"; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = nixpkgs.legacyPackages.${system}; + in + { + packages.website = pkgs.stdenv.mkDerivation rec { + pname = "astolfo.org"; + version = "1.0"; + src = ./src; + nativeBuildInputs = [ pkgs.zola ]; + buildPhase = "zola build"; + installPhase = "cp -r public $out"; + }; + defaultPackage = self.packages.${system}.website; + devShell = pkgs.mkShell { + packages = with pkgs; [ + zola + ]; + }; + } + ); +} diff --git a/src/index.html b/static/style.css similarity index 55% rename from src/index.html rename to static/style.css index 219abea..cd31dcc 100644 --- a/src/index.html +++ b/static/style.css @@ -1,50 +1,3 @@ - - - -
-