Add categories to page render context

- Add post IDs to tech blog index template
This commit is contained in:
2022-05-31 10:11:06 -04:00
parent aa3ee239f6
commit 019ac229fb
4 changed files with 4 additions and 1 deletions
+1
View File
@@ -193,6 +193,7 @@ let home : HttpHandler = fun next ctx -> task {
return!
Hash.FromAnonymousObject {|
page = DisplayPage.fromPage webLog page
categories = CategoryCache.get ctx
page_title = page.title
is_home = true
|}
+1
View File
@@ -41,6 +41,7 @@ module CatchAll =
yield fun next ctx ->
Hash.FromAnonymousObject {|
page = DisplayPage.fromPage webLog page
categories = CategoryCache.get ctx
page_title = page.title
is_page = true
|}