From 52a86993639e6a052dcf7fa65e06d4ab17973f44 Mon Sep 17 00:00:00 2001 From: Aidan Date: Sat, 26 Apr 2025 17:10:29 -0400 Subject: [PATCH] rf: move everything to templates, add config for blog details --- config/blog-details.php | 5 +++ templates/elements/header.php | 8 ++++ templates/elements/html-header.php | 15 +++++++ templates/elements/post.php | 9 ++++ templates/home.php | 71 +++++------------------------- templates/sidebar/categories.php | 13 ++++++ templates/sidebar/recent-posts.php | 15 +++++++ 7 files changed, 77 insertions(+), 59 deletions(-) create mode 100644 config/blog-details.php create mode 100644 templates/elements/header.php create mode 100644 templates/elements/html-header.php create mode 100644 templates/elements/post.php create mode 100644 templates/sidebar/categories.php create mode 100644 templates/sidebar/recent-posts.php diff --git a/config/blog-details.php b/config/blog-details.php new file mode 100644 index 0000000..8bd6aaa --- /dev/null +++ b/config/blog-details.php @@ -0,0 +1,5 @@ + 'Blog Title', +]; +?> \ No newline at end of file diff --git a/templates/elements/header.php b/templates/elements/header.php new file mode 100644 index 0000000..7897699 --- /dev/null +++ b/templates/elements/header.php @@ -0,0 +1,8 @@ +
+

+ +
\ No newline at end of file diff --git a/templates/elements/html-header.php b/templates/elements/html-header.php new file mode 100644 index 0000000..abccece --- /dev/null +++ b/templates/elements/html-header.php @@ -0,0 +1,15 @@ + + + + + + + TinyTalk + + + + + + + + \ No newline at end of file diff --git a/templates/elements/post.php b/templates/elements/post.php new file mode 100644 index 0000000..9a01fee --- /dev/null +++ b/templates/elements/post.php @@ -0,0 +1,9 @@ +
+

this is an example post

+ Example Category +
+
+

Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder

+

Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder

+

Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder

+
\ No newline at end of file diff --git a/templates/home.php b/templates/home.php index 96b268f..9f7b83d 100644 --- a/templates/home.php +++ b/templates/home.php @@ -1,66 +1,19 @@ - - - - - - - TinyTalk - - - - - - - -
-

blog

- -
+
-
-

this is an example post

- Example Category -
-
-

Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder

-

Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder

-

Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder Placeholder

-
+
diff --git a/templates/sidebar/categories.php b/templates/sidebar/categories.php new file mode 100644 index 0000000..e19eba9 --- /dev/null +++ b/templates/sidebar/categories.php @@ -0,0 +1,13 @@ +
+
+

categories

+
+ +
\ No newline at end of file diff --git a/templates/sidebar/recent-posts.php b/templates/sidebar/recent-posts.php new file mode 100644 index 0000000..8fa5d2c --- /dev/null +++ b/templates/sidebar/recent-posts.php @@ -0,0 +1,15 @@ +
+
+

recent posts

+
+ +
\ No newline at end of file