From d5398d87b55aa6726daba276a721d42652863ce7 Mon Sep 17 00:00:00 2001 From: bochard Date: Tue, 5 Aug 2025 22:10:57 +0800 Subject: [PATCH] list all entries in my journal --- journal/index.php | 35 +++++++++++++++++++++++++++++++++-- stylesheets/journal.css | 4 ++++ 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/journal/index.php b/journal/index.php index 242052f..731b074 100644 --- a/journal/index.php +++ b/journal/index.php @@ -2,7 +2,8 @@ require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php"); $pgtitle = "My Thoughts"; $pgdescription = "This page serves as my space to write down my opinion, what I feel, and some random things that worth writing down."; - head($pgtitle, $pgdescription); + $pgcss = ["journal.css"]; + head($pgtitle, $pgdescription, $pgcss); ?> @@ -10,7 +11,37 @@ diff --git a/stylesheets/journal.css b/stylesheets/journal.css index b837756..ac93dfb 100644 --- a/stylesheets/journal.css +++ b/stylesheets/journal.css @@ -1,3 +1,7 @@ +.entry-list-item { + color: darkgreen; + font-style: italic; +} .entry-title { margin-bottom: 0; } -- 2.39.5
- +

My Journal

+

Feel free to read them. Please don't mind the grammatical mistakes, I am not a native English speaker but I'll do my best to improve my vocabulary and writing so I could express more my thoughts.

+ +

List of entries:

+
    + $filename) { + $url = "/journal/$filename"; + $entryName = date("F j, Y", strtotime($date)); + echo "
  • $entryName
  • \n"; + } + ?> +