mirror of
https://git.adityakumar.xyz/dsa.git
synced 2024-11-09 13:39:43 +00:00
initial commit
This commit is contained in:
commit
1dd590fd69
6 changed files with 61 additions and 0 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "themes/hugo-book"]
|
||||
path = themes/hugo-book
|
||||
url = https://github.com/alex-shpak/hugo-book
|
5
archetypes/default.md
Normal file
5
archetypes/default.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
+++
|
||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||
date = {{ .Date }}
|
||||
draft = true
|
||||
+++
|
26
flake.lock
Normal file
26
flake.lock
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1716819864,
|
||||
"narHash": "sha256-mpmHHIruvDZIM0uUcr1ZEe3Eem4nnOLvaxjyhjJlKVI=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b98544a6c41552f4e9557a22f1673182b1f51f0d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
23
flake.nix
Normal file
23
flake.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
description = "A flake for publishing DSA stuff to https://dsa.adityakumar.xyz/";
|
||||
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs";
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: {
|
||||
packages.x86_64-linux.default = with import nixpkgs {system = "x86_64-linux";};
|
||||
stdenv.mkDerivation {
|
||||
name = "dsa";
|
||||
buildInputs = with pkgs; [
|
||||
bash
|
||||
hugo
|
||||
rsync
|
||||
];
|
||||
src = self;
|
||||
buildPhase = "hugo server -D";
|
||||
installPhase = "bash deploy.sh";
|
||||
};
|
||||
};
|
||||
}
|
3
hugo.toml
Normal file
3
hugo.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
baseURL = 'https://example.org/'
|
||||
languageCode = 'en-us'
|
||||
title = 'My New Hugo Site'
|
1
themes/hugo-book
Submodule
1
themes/hugo-book
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 7c26d9b8b731d556a2bf89848f59e8300eabc44b
|
Loading…
Reference in a new issue