Skip to content
This repository was archived by the owner on May 19, 2020. It is now read-only.

Commit 7a8ba70

Browse files
Merge pull request #1117 from eamdog/master
Mistakes were made in #1113. Metadata has correct info now.
2 parents 5b124e0 + e9c4a70 commit 7a8ba70

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

anchor/functions/pages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function page_description($default = '')
7272
if ($title = Registry::prop('article', 'description')) {
7373
return $title;
7474
}
75-
if ($title = Registry::prop('site', 'description')) {
75+
if ($title = Config::meta('description')) {
7676
return $title;
7777
}
7878
return $default;

themes/default/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<meta name="viewport" content="width=device-width">
2525
<meta name="generator" content="Anchor CMS">
2626

27-
<meta property="og:title" content="<?php echo page_name(); ?>">
27+
<meta property="og:title" content="<?php echo page_title(); ?>">
2828
<meta property="og:type" content="website">
2929
<meta property="og:url" content="<?php echo e(current_url()); ?>">
3030
<meta property="og:image" content="<?php echo theme_url('img/og_image.gif'); ?>">

0 commit comments

Comments
 (0)