From a21fec6cba0533983bff3785346a1fdd8a57187b Mon Sep 17 00:00:00 2001 From: Victor Date: Tue, 26 Dec 2023 22:47:39 +0100 Subject: [PATCH] initial commit --- .envrc | 1 + .gitmodules | 3 ++ config.toml | 20 +++++++++++++ content/blog/_index.md | 4 +++ content/blog/some_page.md | 5 ++++ flake.lock | 61 +++++++++++++++++++++++++++++++++++++++ flake.nix | 24 +++++++++++++++ themes/anemone | 1 + 8 files changed, 119 insertions(+) create mode 100644 .envrc create mode 100644 .gitmodules create mode 100644 config.toml create mode 100644 content/blog/_index.md create mode 100644 content/blog/some_page.md create mode 100644 flake.lock create mode 100644 flake.nix create mode 160000 themes/anemone 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/.gitmodules b/.gitmodules new file mode 100644 index 0000000..cc92412 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/anemone"] + path = themes/anemone + url = https://github.com/Speyll/anemone diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..0db807f --- /dev/null +++ b/config.toml @@ -0,0 +1,20 @@ +# The URL the site will be built for +base_url = "https://blog.0x76.dev" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = true + +# Whether to build a search index to be used later on by a JavaScript library +build_search_index = true + +# Enable custom theme +theme = "anemone" # https://www.getzola.org/themes/anemone/ + +[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] +list_pages = true +twitter_card = false # Disable generating twitter card diff --git a/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..f7034cb --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Blog" ++++ + diff --git a/content/blog/some_page.md b/content/blog/some_page.md new file mode 100644 index 0000000..9b38e5f --- /dev/null +++ b/content/blog/some_page.md @@ -0,0 +1,5 @@ ++++ +title = "Some Page" ++++ +# Some Page +with some conten diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..80c5341 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1701680307, + "narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "4022d587cbbfd70fe950c1e2083a02621806a725", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1703255338, + "narHash": "sha256-Z6wfYJQKmDN9xciTwU3cOiOk+NElxdZwy/FiHctCzjU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "6df37dc6a77654682fe9f071c62b4242b5342e04", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-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..9f48ab8 --- /dev/null +++ b/flake.nix @@ -0,0 +1,24 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem + (system: + let + pkgs = import nixpkgs { + inherit system; + }; + nativeBuildInputs = with pkgs; [ zola ]; + buildInputs = with pkgs; [ ]; + in + with pkgs; + { + devShells.default = mkShell { + inherit buildInputs nativeBuildInputs; + }; + } + ); +} + diff --git a/themes/anemone b/themes/anemone new file mode 160000 index 0000000..b9fdc30 --- /dev/null +++ b/themes/anemone @@ -0,0 +1 @@ +Subproject commit b9fdc307b728ed8a794891960ff7cc39ccc50525