diff --git a/booster.py b/booster.py

index 2c9568b..41c735e 100755

--- a/booster.py

+++ b/booster.py

@@ -122,8 +122,8 @@ class Tinylog:

 def write(self):

     with open(self.path, 'w') as f:

         f.write(self.render(allow_edit=False))

- # run_command([GIT_COMMAND, 'add', self.path])

- # run_command([GIT_COMMAND, 'commit', '-m', f'{self.title}: New entry'])

+ run_command([GIT_COMMAND, 'add', self.path])

+ run_command([GIT_COMMAND, 'commit', '-m', f'{self.title}: New entry'])



 def add(self, timestamp, entry):

     entry = entry.strip()

@@ -171,10 +171,10 @@ class Tinylog:

                 output += f'# {self.title}\n\n'

             if self.info:

                 output += self.info + '\n'

+ output += '\n'



             today = datetime.datetime.now()

             cur_month = None

- output += '\n'



             # Archives are linked to before the entries.

             for ts in archived:

@@ -187,7 +187,8 @@ class Tinylog:

                     output += f'=> gemini://{self.base_url}{cur_month} Archived: {label}\n'



             if self.author or self.avatar:

- output += f'\nauthor: {self.author}\n'

+ if self.info: output += '\n'

+ output += f'author: {self.author}\n'

                 output += f'avatar: {self.avatar}\n'

             if is_editable:

                 output += f'=> gemini://{self.base_url}/edit Edit metadata\n'

@@ -235,7 +236,7 @@ SITE_URL = CONFIG['site_url']

GIT_COMMAND = CONFIG['git']

FILES_ROOT = append_slash(CONFIG['files']['root'])

AUTHORIZED = CONFIG['authorized'] # cert/pubkey fingerprint(s)

-MAX_COUNT = 2

+MAX_COUNT = 25



req_protocol = os.getenv('SERVER_PROTOCOL')

req_identity = os.getenv('REMOTE_IDENT').split(';') if os.getenv('REMOTE_IDENT') else [None, None]

@@ -288,6 +289,7 @@ for file_group in CONFIG['files']:

 file_path = os.path.normpath(pjoin(FILES_ROOT, path))



 if is_tinylog:

+ os.chdir(FILES_ROOT) # for Git actions

     tinylog = Tinylog(pjoin(FILES_ROOT, group['tinylog']),

                       editable=is_authorized,

                       base_url=SITE_URL.replace('gemini://', '') + auth_prefix)

@@ -410,7 +412,7 @@ for file_group in CONFIG['files']:

         report_error(30, 'gemini://' + tinylog.base_url +

             (time.strftime(Tinylog.PATH_FORMAT, time.localtime(entry_ts))

                 if entry_ts else ''))

- 

+

     sys.exit(0)



 if path.startswith(auth_prefix):

Proxy Information
Original URL
gemini://git.skyjake.fi/booster/main/pcdiff/01abf0710b25e9cc0e8883fe5e2462e6d9d14c1f
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
30.015377 milliseconds
Gemini-to-HTML Time
1.39668 milliseconds

This content has been proxied by September (ba2dc).