summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/_views/head.php5
-rw-r--r--src/web/_views/home/main.php4
-rw-r--r--src/web/lang/home.php1
3 files changed, 8 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)?>">
diff --git a/src/web/_views/home/main.php b/src/web/_views/home/main.php
index fc3799a..09d13de 100644
--- a/src/web/_views/home/main.php
+++ b/src/web/_views/home/main.php
@@ -48,6 +48,10 @@
<th><?=lang('contact_xmpp')?></th>
<td><a href="xmpp:freya@freya.cat">freya@freya.cat</a></td>
</tr>
+ <tr>
+ <th><?=lang('contact_sharkey')?></th>
+ <td><a rel="me" href="https://social.freya.cat/@freya">@freya@freya.cat</a></td>
+ </tr>
<tr>
<th>XSSbook</th>
<td><a href="https://xssbook.com/profile?id=7">Admin istrator</a></td>
diff --git a/src/web/lang/home.php b/src/web/lang/home.php
index 70797ef..2270a79 100644
--- a/src/web/lang/home.php
+++ b/src/web/lang/home.php
@@ -36,3 +36,4 @@ $lang['contact'] = 'Contact Me';
$lang['contact_email'] = 'Email';
$lang['contact_matrix'] = 'Matrix';
$lang['contact_xmpp'] = 'XMPP';
+$lang['contact_sharkey'] = 'Sharkey';