init zola
This commit is contained in:
commit
5760ae68ef
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.direnv
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "themes/juice"]
|
||||
path = themes/juice
|
||||
url = https://github.com/huhu/juice
|
16
config.toml
Normal file
16
config.toml
Normal file
|
@ -0,0 +1,16 @@
|
|||
# The URL the site will be built for
|
||||
base_url = "https://glennwso.com"
|
||||
|
||||
# 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
|
||||
|
||||
[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
|
60
flake.lock
Normal file
60
flake.lock
Normal file
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1726560853,
|
||||
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1730800820,
|
||||
"narHash": "sha256-jcss5b/Z7mF1bDVu5c+Q7VL+f9tON3aZaDSI951NDPg=",
|
||||
"owner": "NixOs",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b7546315457a024bdd2471417bdf8690423c58fb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOs",
|
||||
"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
|
||||
}
|
46
flake.nix
Normal file
46
flake.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "github:NixOs/nixpkgs";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
# inputs.flake-utils.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
outputs = {
|
||||
flake-utils,
|
||||
nixpkgs,
|
||||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
dev_serve = pkgs.writeShellScriptBin "serve" ''
|
||||
${pkgs.zola}/bin/zola serve $@
|
||||
'';
|
||||
static_serve = pkgs.writeShellScriptBin "serve" ''
|
||||
${pkgs.simple-http-server}/bin/simple-http-server -i
|
||||
'';
|
||||
static_homepage = pkgs.stdenv.mkDerivation {
|
||||
name = "homepage";
|
||||
src = ./.;
|
||||
buildPhase = ''
|
||||
${pkgs.zola}/bin/zola build -o $out/
|
||||
'';
|
||||
};
|
||||
prod_homepage = pkgs.writeShellScriptBin "home-prod" ''
|
||||
${pkgs.simple-http-server}/bin/simple-http-server -i ${static_homepage}/. $@
|
||||
'';
|
||||
in {
|
||||
packages.default = prod_homepage;
|
||||
packages.static = static_homepage;
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
pkgs.vscode-langservers-extracted # html, css lsp
|
||||
simple-http-server
|
||||
dev_serve
|
||||
static_serve
|
||||
imagemagick
|
||||
ffmpeg
|
||||
zola
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
1
themes/juice
Submodule
1
themes/juice
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit c6ad1fbe1c6298dc983f56a78d26ad460993e6a1
|
Loading…
Reference in a new issue