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 @@ -70,13 +70,23 @@ 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;

Loading…
Cancel
Save