From 3b117515bac80de02e6dd89b865bf99e4e3a974d Mon Sep 17 00:00:00 2001 From: Autumn Date: Mon, 27 Apr 2026 22:09:16 +0100 Subject: [pages] switch to php template --- src/pages/_template.php | 19 +++++++++++++++++++ src/pages/blog/_builder.php | 21 +++++---------------- src/pages/index.php | 26 ++++++++++++-------------- 3 files changed, 36 insertions(+), 30 deletions(-) create mode 100644 src/pages/_template.php (limited to 'src') diff --git a/src/pages/_template.php b/src/pages/_template.php new file mode 100644 index 0000000..424a4fd --- /dev/null +++ b/src/pages/_template.php @@ -0,0 +1,19 @@ + + + + + + + + + + <?php print $page_title ?> | autumn's forest + + + + + + + + + diff --git a/src/pages/blog/_builder.php b/src/pages/blog/_builder.php index 4abe229..40e5487 100644 --- a/src/pages/blog/_builder.php +++ b/src/pages/blog/_builder.php @@ -1,19 +1,8 @@ - + + $page_title = $blog_title; + $page_content = $blog_content; - + include "../_template.php"; - - - - <?php print $blog_title ?> | autumn's forest - - - - - - - - - +?> diff --git a/src/pages/index.php b/src/pages/index.php index 10753bb..152b9ff 100644 --- a/src/pages/index.php +++ b/src/pages/index.php @@ -1,22 +1,20 @@ - + + $page_title = "home"; - + ob_start(); - - +?> - home | autumn's forest +

welcome to autumn's forest :3

+

a bit about me: i'm somewhere between a nerdy transbian and a aroace foxgirlthing. i'll pad this out at a later date, i promise

+

this site is a work-in-progress - my last website was based off of the MacOS 9 theme & window layout. this was too much of a pain to deal with (and i lost my MacOS 9 icon pack and idk where to get them again :[) so i'm doing something different here.

+

for now, if you need me you can contact me at contact@autumnfo.rest, or check out my singular test blog post!

- + + $page_content = ob_get_clean(); -

welcome to autumn's forest :3

-

a bit about me: i'm somewhere between a nerdy transbian and a aroace foxgirlthing. i'll pad this out at a later date, i promise

-

this site is a work-in-progress - my last website was based off of the MacOS 9 theme & window layout. this was too much of a pain to deal with (and i lost my MacOS 9 icon pack and idk where to get them again :[) so i'm doing something different here.

-

for now, if you need me you can contact me at contact@autumnfo.rest, or check out my singular test blog post!

+ include "_template.php"; - - +?> -- cgit v1.3