diff --git a/.envrc b/.envrc
index 3550a30..0ece44e 100644
--- a/.envrc
+++ b/.envrc
@@ -1 +1,10 @@
-use flake
+use_flake() {
+ watch_file flake.nix
+ watch_file site.hs
+ watch_file blogng.cabal
+ watch_file flake.lock
+ mkdir -p "$(direnv_layout_dir)"
+ eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile" "$@")"
+}
+
+use_flake
diff --git a/pages/about.md b/pages/about.md
new file mode 100644
index 0000000..b2e6693
--- /dev/null
+++ b/pages/about.md
@@ -0,0 +1,7 @@
+# Document Title
+
+Hello world
+
+```
+when in rome
+```
diff --git a/site.hs b/site.hs
index e7735c5..6241e44 100644
--- a/site.hs
+++ b/site.hs
@@ -52,6 +52,12 @@ main = hakyllWith config $ do
>>= loadAndApplyTemplate "templates/default.html" (postCtxWTags tags)
>>= relativizeUrls
+ match "pages/*" $ do
+ route pageRoute
+ compile $ pandocCompiler
+ >>= loadAndApplyTemplate "templates/pages.html" defaultContext
+ >>= relativizeUrls
+
match "index.html" $ do
route idRoute
compile $ do
@@ -117,6 +123,10 @@ postCtx =
dateField "date" "%B %e, %Y" `mappend`
defaultContext
+-- static page routes
+pageRoute :: Routes
+pageRoute = customRoute $ (\p -> (takeFileName (toFilePath p)) -<.> ".html")
+
-- octopress compatible routes
octopressRoute :: Routes
octopressRoute = customRoute $ octoMangaling
diff --git a/templates/default.html b/templates/default.html
index 29dca6c..603795e 100644
--- a/templates/default.html
+++ b/templates/default.html
@@ -13,7 +13,7 @@