set up basic project structure

This commit is contained in:
Martin Wurm 2024-02-13 03:28:47 +01:00
parent a0bb06f703
commit 3ee5b0af43
7 changed files with 1895 additions and 0 deletions

8
.direnv/bin/nix-direnv-reload Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
dir="$(realpath $(dirname ${BASH_SOURCE[0]})/../..)"
_nix_direnv_force_reload=1 direnv exec "$dir" true
direnv reload
# direnv reload updates the mtime of .envrc. Also update the timestamp of the
# profile_rc file to keep track that we actually are up to date.
touch $dir/.direnv/{nix,flake}-profile-*.rc

View file

@ -0,0 +1 @@
/nix/store/665i5kn31xhw3ka3qbivy4if39jpwlxf-mart-w.de-0.1-env

File diff suppressed because it is too large Load diff

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix;

5
archetypes/default.md Normal file
View file

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

21
default.nix Normal file
View file

@ -0,0 +1,21 @@
{pkgs ? import <nixpkgs> {}}:
with pkgs;
stdenv.mkDerivation rec {
name = "mart-w.de-${version}";
version = "0.1";
src = ./.;
nativeBuildInputs = [
hugo
];
buildPhase = ''
hugo
'';
installPhase = ''
mkdir -p $out
cp -r ./public/* $out
'';
}

3
hugo.toml Normal file
View file

@ -0,0 +1,3 @@
baseURL = 'https://mart-w.de/'
languageCode = 'en-gb'
title = 'mart-ws amazing homepage'