修正以某个page作为首页时description和keywords会变化

This commit is contained in:
joyqi
2013-12-11 22:51:17 +08:00
parent 6825bb69d9
commit 7e06a9cc2e
+6 -6
View File
@@ -796,12 +796,6 @@ class Widget_Archive extends Widget_Abstract_Contents
}
}
/** 设置关键词 */
$this->_keywords = implode(',', Typecho_Common::arrayFlatten($this->tags, 'name'));
/** 设置描述 */
$this->_description = $this->description;
/** 设置模板 */
if ($this->template) {
/** 应用自定义模板 */
@@ -823,6 +817,12 @@ class Widget_Archive extends Widget_Abstract_Contents
/** 设置标题 */
$this->_archiveTitle = $this->title;
/** 设置关键词 */
$this->_keywords = implode(',', Typecho_Common::arrayFlatten($this->tags, 'name'));
/** 设置描述 */
$this->_description = $this->description;
}
/** 设置归档类型 */