mirror of
https://codeberg.org/cage/tinmop/
synced 2025-03-12 11:20:05 +01:00
- added a title to bookmark page.
This commit is contained in:
parent
377d95af51
commit
804ce88de8
@ -2105,12 +2105,13 @@ gemini page the program is rendering."
|
||||
(defun generate-bookmark-page ()
|
||||
(let ((bookmarks-sections (db:bookmark-all-grouped-by-section)))
|
||||
(with-output-to-string (stream)
|
||||
(format stream (gemini-parser:geminize-h1 (_ "My bookmark~2%")))
|
||||
(loop for section in bookmarks-sections do
|
||||
(let ((header (car section))
|
||||
(bookmarks (cdr section)))
|
||||
(when (string-empty-p header)
|
||||
(setf header (_ "Uncategorized")))
|
||||
(write-string (gemini-parser:geminize-h1 header) stream)
|
||||
(write-string (gemini-parser:geminize-h2 header) stream)
|
||||
(write-char #\Newline stream)
|
||||
(write-char #\Newline stream)
|
||||
(loop for bookmark in bookmarks do
|
||||
|
Loading…
x
Reference in New Issue
Block a user