diff --git a/handler/MainHandler.php b/handler/MainHandler.php index 71a0772..1a6ba11 100644 --- a/handler/MainHandler.php +++ b/handler/MainHandler.php @@ -112,6 +112,7 @@ class MainHandler extends request_handler { render('main/post', title: $pt->title, id: $post->id, + source_url: $post->sourceUrl, unsafe_html: $pt->getHtml(is_retina(), getUserTheme()), unsafe_toc_html: $pt->getTableOfContentsHtml(), date: $post->getFullDate(), diff --git a/lib/posts.php b/lib/posts.php index 462168e..5c8aecf 100644 --- a/lib/posts.php +++ b/lib/posts.php @@ -17,6 +17,7 @@ class Post extends model { public string $date; public bool $visible; public string $shortName; + public string $sourceUrl; protected array $texts = []; diff --git a/skin/main.phps b/skin/main.phps index 4144965..00123ac 100644 --- a/skin/main.phps +++ b/skin/main.phps @@ -135,9 +135,6 @@ function articles_right_link($ctx, $url, string $label, int $index) { function page($ctx, $page_url, $short_name, $unsafe_html) { $html = << - {$ctx->if_admin($ctx->page_admin_links, $page_url, $short_name)}