企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# seo 标签 ## SEO标签 用于生成页面标题、关键字、描述标签 ## 演示 调用方法 ``` <pre class="calibre16">``` <span class="token1">{</span>hkcms<span class="token1">:</span>seo <span class="token">/</span><span class="token1">}</span> ``` ``` 结果 ``` <pre class="calibre16">``` <span class="token"><</span>title<span class="token">></span>标题<span class="token"><</span><span class="token">/</span>title<span class="token">></span> <span class="token"><</span>meta name<span class="token">=</span><span class="token4">"keywords"</span> content<span class="token">=</span><span class="token4">"关键字"</span><span class="token">></span> <span class="token"><</span>meta name<span class="token">=</span><span class="token4">"description"</span> content<span class="token">=</span><span class="token4">"描述"</span><span class="token">></span> ``` ``` 自定义方式: ``` <pre class="calibre16">``` 全局站点配置,可以在后台站点配置修改 $site<span class="token1">[</span><span class="token4">"home_title"</span><span class="token1">]</span> $site<span class="token1">[</span><span class="token4">"keyword"</span><span class="token1">]</span> $site<span class="token1">[</span><span class="token4">"description"</span><span class="token1">]</span> ``` ``` ``` <pre class="calibre20">``` 列表页<span class="token1">(</span>list<span class="token1">,</span>category<span class="token1">)</span>、内容页<span class="token1">(</span>show<span class="token1">)</span>都会有的变量,可自行自定义 $seo_title $seo_keywords $seo_desc ``` ```