diff --git a/src/Entity/Browser/Container/Page/Content.php b/src/Entity/Browser/Container/Page/Content.php index 77481335..f44af7d2 100644 --- a/src/Entity/Browser/Container/Page/Content.php +++ b/src/Entity/Browser/Container/Page/Content.php @@ -70,14 +70,24 @@ class Content { case Filesystem::MIME_TEXT_GEMINI: + $title = null; + $document = new Gemtext( $this ); $document->set( - $data + $data, + $title ); + if ($title) // use gemtext title on available + { + $this->page->title->setValue( + $title + ); + } + break; case Filesystem::MIME_TEXT_PLAIN: