diff options
Diffstat (limited to 'src/web/_views/head.php')
| -rw-r--r-- | src/web/_views/head.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/web/_views/head.php b/src/web/_views/head.php index 281ebc5..c8c4ee0 100644 --- a/src/web/_views/head.php +++ b/src/web/_views/head.php @@ -2,9 +2,9 @@ <?php /* Html cache headers */ $current_app = ROUTER->req['app']; - $non_cached_apps = ['blog']; + $is_blog_post = $current_app == 'blog' && ROUTER->req['slug'] != 'index'; - if (ENVIRONMENT == 'production' && !in_array($current_app, $non_cached_apps)) { + if (ENVIRONMENT == 'production' && !$is_blog_post) { $cache_seconds = 300; if ($current_app == 'bucket') { $cache_seconds = 86400; @@ -28,6 +28,7 @@ <meta property="og:title" content="<?=$title?>"> <meta property="og:site_name" content="<?=CONFIG['domain']?>"> <meta property="og:image" content="<?=$this->get_url('public/icons/logo640.png', TRUE)?>"> + <meta name="fediverse:creator" content="@freya@freya.cat"> <title><?=$title?></title> <link rel="icon" type="image/png" sizes="16x16" href="<?=$this->get_url("public/icons/logo16.png", TRUE)?>"> <link rel="icon" type="image/png" sizes="32x32" href="<?=$this->get_url("public/icons/logo32.png", TRUE)?>"> |