From 6a70691f64efa60b18d46ec0cb937d30a4ff52bf Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 26 Jan 2024 09:49:14 +0200 Subject: [PATCH] update template decoration --- src/controller/room.php | 7 ++++--- src/view/post.gemini | 3 +++ src/view/posts.gemini | 4 ++++ src/view/room.gemini | 4 ++-- src/view/rooms.gemini | 6 +++++- 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/controller/room.php b/src/controller/room.php index 18cb0d9..e5c4b67 100644 --- a/src/controller/room.php +++ b/src/controller/room.php @@ -294,6 +294,7 @@ class Room '{author}', '{quote}', '{message}', + PHP_EOL . PHP_EOL ], [ $record['txid'], @@ -301,11 +302,11 @@ class Room $matches[1] ), '@' . $matches[2], - $quote - , + $quote, $this->_plain( $record['value'] - ) + ), + PHP_EOL ], file_get_contents( __DIR__ . '/../view/post.gemini' diff --git a/src/view/post.gemini b/src/view/post.gemini index 88cf2aa..1e6518c 100644 --- a/src/view/post.gemini +++ b/src/view/post.gemini @@ -1,6 +1,9 @@ ### {author} + {quote} {message} + + ``` {time} #{txid} ``` diff --git a/src/view/posts.gemini b/src/view/posts.gemini index 4062140..3e2587a 100644 --- a/src/view/posts.gemini +++ b/src/view/posts.gemini @@ -2,6 +2,10 @@ # {subject} +## Navigation + +=> {home} + ## Posts {posts} \ No newline at end of file diff --git a/src/view/room.gemini b/src/view/room.gemini index 04457db..eb5c402 100644 --- a/src/view/room.gemini +++ b/src/view/room.gemini @@ -1,3 +1,3 @@ -## {name} ({total}) +### {name} ({total}) -=> {link} \ No newline at end of file +=> {link} diff --git a/src/view/rooms.gemini b/src/view/rooms.gemini index 44d6a82..7138f2c 100644 --- a/src/view/rooms.gemini +++ b/src/view/rooms.gemini @@ -1,5 +1,9 @@ ```{logo}``` -# Rooms +## About + +{about} + +## Rooms {rooms} \ No newline at end of file