From d360e9ed8cae0245d69fd4163f27f99eefae251e Mon Sep 17 00:00:00 2001 From: Kurtis Holsapple Date: Tue, 13 May 2025 15:19:47 -0700 Subject: [PATCH] WIP --- index.php | 5 +---- tpl/index.tpl | 10 ++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index e404f8f..4b42e63 100644 --- a/index.php +++ b/index.php @@ -6,10 +6,7 @@ get_header(); // Next, gather any data that you want, and pass it to the render method to bind // your data to a template file. In the example below, the ./tpl/index.tpl file // will be given the current page content, and today's timestamp. -echo site()->render("index", [ - "post" => site()->getCurrentPost(["content", "title", "published_at"]), - "now" => date("Y-m-d H:i:s"), -]); +echo site()->render("index", site()->getCurrentPost(["content", "title"])); // ...and finally, make sure you close out your page render the WordPress way! get_footer(); diff --git a/tpl/index.tpl b/tpl/index.tpl index e69de29..11ef396 100644 --- a/tpl/index.tpl +++ b/tpl/index.tpl @@ -0,0 +1,10 @@ +
+
+
+
+

{{ title }}

+ {{{ content }}} +
+
+
+