Browse Source

make menu links relative

main
ghost 10 months ago
parent
commit
891d8106b0
  1. 12
      src/server.php

12
src/server.php

@ -213,9 +213,7 @@ $server->setHandler( @@ -213,9 +213,7 @@ $server->setHandler(
// Register section link
$sections[] = sprintf(
'=> gemini://%s%s/%s %s',
$config->gemini->server->host,
$config->gemini->server->port == 1965 ? null : ':' . $config->gemini->server->port,
'=> /%s %s',
$uri,
$h1
);
@ -254,9 +252,7 @@ $server->setHandler( @@ -254,9 +252,7 @@ $server->setHandler(
foreach ($filesystem->getPagePathsByPath($directory) as $file)
{
$pages[] = sprintf(
'=> gemini://%s%s/%s %s',
$config->gemini->server->host,
$config->gemini->server->port == 1965 ? null : ':' . $config->gemini->server->port,
'=> /%s %s',
$filesystem->getPageUriByPath(
$file
),
@ -369,9 +365,7 @@ $server->setHandler( @@ -369,9 +365,7 @@ $server->setHandler(
foreach ($filesystem->getPagePathsByPath($directory) as $file)
{
$pages[] = sprintf(
'=> gemini://%s%s/%s',
$config->gemini->server->host,
$config->gemini->server->port == 1965 ? null : ':' . $config->gemini->server->port,
'=> /%s',
$filesystem->getPageUriByPath(
$file
)

Loading…
Cancel
Save