diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/_template.php | 19 | ||||
| -rw-r--r-- | src/pages/blog/_builder.php | 21 | ||||
| -rw-r--r-- | src/pages/index.php | 26 |
3 files changed, 36 insertions, 30 deletions
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 @@ +<!DOCTYPE html> + +<html> + + <head> + + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + <title><?php print $page_title ?> | autumn's forest</title> + + </head> + + <body> + + <?php print $page_content ?> + + </body> +</html> 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 @@ -<!DOCTYPE html> +<?php -<html> + $page_title = $blog_title; + $page_content = $blog_content; - <head> + include "../_template.php"; - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - - <title><?php print $blog_title ?> | autumn's forest</title> - - </head> - - <body> - - <?php print $blog_content ?> - - </body> -</html> +?> 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 @@ -<!DOCTYPE html> +<?php -<html> + $page_title = "home"; - <head> + ob_start(); - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> +?> - <title>home | autumn's forest</title> +<p>welcome to autumn's forest :3</p> +<p>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</p> +<p>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.</p> +<p>for now, if you need me you can contact me at <a href="mailto:contact@autumnfo.rest">contact@autumnfo.rest</a>, or <a href="/blog/2026-04-27">check out my singular test blog post</a>!</p> - </head> +<?php - <body> + $page_content = ob_get_clean(); - <p>welcome to autumn's forest :3</p> - <p>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</p> - <p>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.</p> - <p>for now, if you need me you can contact me at <a href="mailto:contact@autumnfo.rest">contact@autumnfo.rest</a>, or <a href="/blog/2026-04-27">check out my singular test blog post</a>!</p> + include "_template.php"; - </body> -</html> +?> |
