From 7a0665a32e5232b399b27641f1e010d3b91e9613 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Sun, 3 Mar 2024 14:28:15 +0100 Subject: [PATCH] Updated developer experience and added placeholder --- content/posts/example.md | 6 ++++++ flake.nix | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 content/posts/example.md diff --git a/content/posts/example.md b/content/posts/example.md new file mode 100644 index 0000000..4b92573 --- /dev/null +++ b/content/posts/example.md @@ -0,0 +1,6 @@ +--- +title: "Example" +date: 2024-03-03T14:27:40+01:00 +draft: true +--- + diff --git a/flake.nix b/flake.nix index 628762c..5eb1a1d 100644 --- a/flake.nix +++ b/flake.nix @@ -60,7 +60,18 @@ ln -s ${nostyleplease} ./themes/nostyleplease fi - hugo server --buildDrafts + alias new='hugo new content' + alias serve='hugo serve --buildDrafts' + + greeter_text=" + * Create new content with: + new posts/name-of-post.md + + * Render drafts with: + serve + " + + echo "$greeter_text" ''; }; });