Publish habits as a webpage
I think it might be a good idea to version control my habits, so that I can audit them as they change. I'm publishing these on my website, so that I can refer to them wherever I had internet.
This commit is contained in:
parent
f2ba5aca31
commit
48cdb69efb
4 changed files with 66 additions and 0 deletions
|
|
@ -9,5 +9,8 @@ pkgs.stdenv.mkDerivation {
|
|||
|
||||
mkdir -p $out/goals
|
||||
cp -r ${briefcase.website.goals}/* $out/goals
|
||||
|
||||
mkdir -p $out/habits
|
||||
cp ${briefcase.website.habits} $out/habits/index.html
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
13
website/habits/default.nix
Normal file
13
website/habits/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "habits-webpage";
|
||||
src = ../../org;
|
||||
buildInputs = [];
|
||||
buildPhase = ''
|
||||
${pkgs.pandoc}/bin/pandoc $src/habits.org -o index.html
|
||||
'';
|
||||
installPhase = ''
|
||||
mv index.html $out
|
||||
'';
|
||||
}
|
||||
|
|
@ -13,6 +13,9 @@
|
|||
<li>
|
||||
<a href="/goals">Goals</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/habits">Habits</a>
|
||||
</li>
|
||||
</ul>
|
||||
<li>Other</li>
|
||||
<ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue