initial commit

This commit is contained in:
Aditya 2024-05-28 07:37:03 +05:30
commit 1dd590fd69
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
6 changed files with 61 additions and 0 deletions

3
.gitmodules vendored Normal file
View 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
View file

@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++

26
flake.lock Normal file
View 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
View 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
View file

@ -0,0 +1,3 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'

1
themes/hugo-book Submodule

@ -0,0 +1 @@
Subproject commit 7c26d9b8b731d556a2bf89848f59e8300eabc44b