Typecho 自定义首页keywords和Description内容

如果我们有需要对 Typecho 自定义首页TDK的话,可以用这个代码实现:

<?php if($this->is('index')): ?>
<?php $this->header('description=描述内容'); ?>
<?php else: ?>
<?php $this->header(); ?><?php endif; ?>

 

投上你的一票

原创文章,转载请注明出处:https://www.itbulu.com/typecho-tdk.html

上一篇 2025年6月2日 19:08
下一篇 2025年7月14日 14:17

相关推荐