fix: 🩹 small fixes for OpenGraph
This commit is contained in:
parent
0f2634749d
commit
da25a786d1
2 changed files with 3 additions and 6 deletions
|
@ -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)) {
|
|||
}
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -20,10 +20,6 @@
|
|||
<script id="main_banner_script" src="/static/banner.js"></script>
|
||||
<script src="/static/toc.js"></script>
|
||||
|
||||
{% if page.base %}
|
||||
<base href="{{ page.base }}">
|
||||
{% endif %}
|
||||
|
||||
{% block feed_links %}
|
||||
<link rel="alternate" type="application/rss+xml" title="{{opengraph.site_name}} Global Feed" href="{{site_config.uri_prefix}}/feed">
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue