mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
use gemtext title on available
This commit is contained in:
parent
5b821996c5
commit
78029264db
1 changed files with 11 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue