aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAutumn <git@autumnfo.rest>2026-04-27 22:26:09 +0100
committerAutumn <git@autumnfo.rest>2026-04-27 22:26:09 +0100
commitd228c37a2b36f0009268b08e3e386e94b5852cfc (patch)
tree16304ad41f445047595be0eb7d1eeb3fedd9f4be
parent3b117515bac80de02e6dd89b865bf99e4e3a974d (diff)
[pages/thoughts] added thoughts section
-rw-r--r--src/pages/thoughts.php18
-rw-r--r--src/pages/thoughts/_builder.php9
2 files changed, 27 insertions, 0 deletions
diff --git a/src/pages/thoughts.php b/src/pages/thoughts.php
new file mode 100644
index 0000000..0c4d6a0
--- /dev/null
+++ b/src/pages/thoughts.php
@@ -0,0 +1,18 @@
+<?php
+
+ $thought_title = "thoughts";
+
+ ob_start();
+?>
+
+<h1>thoughts</h1>
+
+<p>here lies a forever-expanding set of my Thoughts. currently my head is empty and thus i have no thoughts.</p>
+
+<?php
+
+ $thought_content = ob_get_clean();
+
+ include "thoughts/_builder.php";
+
+?>
diff --git a/src/pages/thoughts/_builder.php b/src/pages/thoughts/_builder.php
new file mode 100644
index 0000000..8c6b83b
--- /dev/null
+++ b/src/pages/thoughts/_builder.php
@@ -0,0 +1,9 @@
+<?php
+
+ $page_title = $thought_title;
+ $page_content = $thought_content;
+
+ $root = explode("pages", $_SERVER["DOCUMENT_ROOT"])[0] . "pages/";
+ include $root . "_template.php";
+
+?>