[1mdiff --git a/booster.py b/booster.py[m
[1mindex 2c9568b..41c735e 100755[m
[1m--- a/booster.py[m
[1m+++ b/booster.py[m
[36m@@ -122,8 +122,8 @@[m [mclass Tinylog:[m
def write(self):[m
with open(self.path, 'w') as f:[m
f.write(self.render(allow_edit=False))[m
[31m- # run_command([GIT_COMMAND, 'add', self.path])[m
[31m- # run_command([GIT_COMMAND, 'commit', '-m', f'{self.title}: New entry'])[m
[32m+[m[32m run_command([GIT_COMMAND, 'add', self.path])[m
[32m+[m[32m run_command([GIT_COMMAND, 'commit', '-m', f'{self.title}: New entry'])[m
[m
def add(self, timestamp, entry):[m
entry = entry.strip()[m
[36m@@ -171,10 +171,10 @@[m [mclass Tinylog:[m
output += f'# {self.title}\n\n'[m
if self.info:[m
output += self.info + '\n'[m
[32m+[m[32m output += '\n'[m
[m
today = datetime.datetime.now()[m
cur_month = None[m
[31m- output += '\n'[m
[m
# Archives are linked to before the entries.[m
for ts in archived:[m
[36m@@ -187,7 +187,8 @@[m [mclass Tinylog:[m
output += f'=> gemini://{self.base_url}{cur_month} Archived: {label}\n'[m
[m
if self.author or self.avatar:[m
[31m- output += f'\nauthor: {self.author}\n'[m
[32m+[m[32m if self.info: output += '\n'[m
[32m+[m[32m output += f'author: {self.author}\n'[m
output += f'avatar: {self.avatar}\n'[m
if is_editable:[m
output += f'=> gemini://{self.base_url}/edit Edit metadata\n'[m
[36m@@ -235,7 +236,7 @@[m [mSITE_URL = CONFIG['site_url'][m
GIT_COMMAND = CONFIG['git'][m
FILES_ROOT = append_slash(CONFIG['files']['root'])[m
AUTHORIZED = CONFIG['authorized'] # cert/pubkey fingerprint(s)[m
[31m-MAX_COUNT = 2[m
[32m+[m[32mMAX_COUNT = 25[m
[m
req_protocol = os.getenv('SERVER_PROTOCOL')[m
req_identity = os.getenv('REMOTE_IDENT').split(';') if os.getenv('REMOTE_IDENT') else [None, None][m
[36m@@ -288,6 +289,7 @@[m [mfor file_group in CONFIG['files']:[m
file_path = os.path.normpath(pjoin(FILES_ROOT, path))[m
[m
if is_tinylog:[m
[32m+[m[32m os.chdir(FILES_ROOT) # for Git actions[m
tinylog = Tinylog(pjoin(FILES_ROOT, group['tinylog']),[m
editable=is_authorized,[m
base_url=SITE_URL.replace('gemini://', '') + auth_prefix)[m
[36m@@ -410,7 +412,7 @@[m [mfor file_group in CONFIG['files']:[m
report_error(30, 'gemini://' + tinylog.base_url +[m
(time.strftime(Tinylog.PATH_FORMAT, time.localtime(entry_ts))[m
if entry_ts else ''))[m
[31m- [m
[32m+[m
sys.exit(0)[m
[m
if path.startswith(auth_prefix):[m
text/plain
This content has been proxied by September (ba2dc).