Browse Source

use gemtext title on available

PHP-GTK3
yggverse 4 months ago
parent
commit
78029264db
  1. 12
      src/Entity/Browser/Container/Page/Content.php

12
src/Entity/Browser/Container/Page/Content.php

@ -70,13 +70,23 @@ class Content
{ {
case Filesystem::MIME_TEXT_GEMINI: case Filesystem::MIME_TEXT_GEMINI:
$title = null;
$document = new Gemtext( $document = new Gemtext(
$this $this
); );
$document->set( $document->set(
$data $data,
$title
);
if ($title) // use gemtext title on available
{
$this->page->title->setValue(
$title
); );
}
break; break;

Loading…
Cancel
Save