diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-08-13 10:42:27 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-08-13 10:55:48 +0200 |
commit | a120fb2977331e0f7d7ffe05861ba179fdae8764 (patch) | |
tree | db25468102f9deb9bff0ebe0efaa909810efad40 /application/PageBuilder.php | |
parent | a4f0509a77a39d1ac834d4967e3e8f245de6d68d (diff) | |
download | Shaarli-a120fb2977331e0f7d7ffe05861ba179fdae8764.tar.gz Shaarli-a120fb2977331e0f7d7ffe05861ba179fdae8764.tar.zst Shaarli-a120fb2977331e0f7d7ffe05861ba179fdae8764.zip |
Add OpenGraph meta tags on permalink page
Includes:
- og:title
- og:type -> article
- og:image -> if there is a thumbnail
- og:url -> permalink
- og:description -> first 300 chars of raw description
- article:published_time
- article:modified_time
- article:tag -> one OG meta tag for each shaare tag
Fixes #258
Diffstat (limited to 'application/PageBuilder.php')
-rw-r--r-- | application/PageBuilder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/PageBuilder.php b/application/PageBuilder.php index b1abe0d0..0efd24c3 100644 --- a/application/PageBuilder.php +++ b/application/PageBuilder.php | |||
@@ -101,7 +101,7 @@ class PageBuilder | |||
101 | 'version_hash', | 101 | 'version_hash', |
102 | ApplicationUtils::getVersionHash(SHAARLI_VERSION, $this->conf->get('credentials.salt')) | 102 | ApplicationUtils::getVersionHash(SHAARLI_VERSION, $this->conf->get('credentials.salt')) |
103 | ); | 103 | ); |
104 | $this->tpl->assign('scripturl', index_url($_SERVER)); | 104 | $this->tpl->assign('index_url', index_url($_SERVER)); |
105 | $visibility = ! empty($_SESSION['visibility']) ? $_SESSION['visibility'] : ''; | 105 | $visibility = ! empty($_SESSION['visibility']) ? $_SESSION['visibility'] : ''; |
106 | $this->tpl->assign('visibility', $visibility); | 106 | $this->tpl->assign('visibility', $visibility); |
107 | $this->tpl->assign('untaggedonly', !empty($_SESSION['untaggedonly'])); | 107 | $this->tpl->assign('untaggedonly', !empty($_SESSION['untaggedonly'])); |