diff --git a/www/src/serve/post.php b/www/src/serve/post.php index 5cea531..1a8aa33 100644 --- a/www/src/serve/post.php +++ b/www/src/serve/post.php @@ -18,7 +18,8 @@ function render_root_template($template, $args = []) { "site_name" => $page['site_name'] ?? 'Nameless Site', "title" => $page['title'] ?? 'Titleless', "url" => $page['url'] ?? $page['path'] ?? 'No URL set', - "description" => $page['description'] ?? 'No description set' + "description" => $page['brief'] ?? $page['description'] ?? 'No description set', + "image" => $page['preview_image'] ?? $page['banners'][0] ]; $args['banners'] = json_encode($page['banners'] ?? []); @@ -114,4 +115,4 @@ if(!isset($post)) { } -?> \ No newline at end of file +?> diff --git a/www/templates/root.html b/www/templates/root.html index 7293902..f1bab6d 100644 --- a/www/templates/root.html +++ b/www/templates/root.html @@ -20,10 +20,6 @@ - {% if page.base %} - - {% endif %} - {% block feed_links %} {% endblock %}