Added the base for Hugo

This commit is contained in:
Nicola Belluti 2024-04-14 13:47:17 +02:00
parent 4c70d50a9f
commit 073ebf00b9
6 changed files with 61 additions and 1 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
resources/
public/
.hugo_build.lock

View File

@ -1,2 +1,3 @@
# blog
# Blog
> My personal blog, powered by [Hugo](https://gohugo.io/)

5
archetypes/default.md Normal file
View File

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

View File

@ -0,0 +1,3 @@
baseURL = "https://nicolabelluti.me/"
languageCode = "en-us"
title = "Nicola's Blog"

27
flake.lock generated Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1712791164,
"narHash": "sha256-3sbWO1mbpWsLepZGbWaMovSO7ndZeFqDSdX0hZ9nVyw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "1042fd8b148a9105f3c0aca3a6177fd1d9360ba5",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

21
flake.nix Normal file
View File

@ -0,0 +1,21 @@
{
description = "Nicola's blog";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
hugo
];
};
};
}