我们站长或者Typecho开发者在设计主题的时候,尤其是在设置SEO页面需要用到首页描述和关键字固定设置。或者是在主题参与设置参数。这里我们需要在Head代码中添加下面这样的代码,然后实现自定或者固定设置。 然后根据我们可以设置固定设置或者后台设置参数模块调用。
<?php if($this->is('index')): ?>
<meta name="keywords" content="<?php $this->options->keyswords() ?>" />
<meta name="description" content="<?php $this->options->descriptions() ?>" />
<?php else: ?>
<?php $this->header(); ?><?php endif; ?>