WIP
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<section class="default-content">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h1>{{ title }}</h1>
|
||||
{{{ content }}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user