【问题标题】:How to change the meta tag title of the homepage in expressionengine?如何在表达式引擎中更改主页的元标记标题?
【发布时间】:2016-08-20 06:12:30
【问题描述】:

我正在尝试更改主页的标签标题,但在 cms 中找不到主页。我无法编辑布局页面,因为它会在下面的代码中动态生成标签标题。有谁知道如何在 cms 中找到主页?

{!--choozle tag--}
<script type="text/javascript"  src="//nexus.ensighten.com/choozle/200/Bootstrap.js"></script>
{!--end choozle--}

{if layout:meta_title}
     <title>{layout:meta_title} | {site_name} </title>
     <meta name='description' content='{layout:meta_description}' />
     <meta property="og:description" content=" {layout:meta_description}" />
     <meta property="og:title" content=">{layout:meta_title}" />

{if:else}
   {exp:seo_lite use_last_segment="yes"}
{/if}


{if layout:og-image}
    <meta property="og:image:url" content="{layout:og-image}" >
{if:else}
    <meta property="og:image:url" content="{lv-og-url}/images/og-logo.png" >
{/if}

【问题讨论】:

    标签: html expressionengine expressionengine3


    【解决方案1】:

    这个模板使用了布局,所以在调用布局模板的模板中,你必须将它设置为{layout:meta_title}。

    在此处阅读有关布局模板的更多信息:https://docs.expressionengine.com/latest/templates/layouts.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-08-05
      • 1970-01-01
      • 2011-11-24
      • 1970-01-01
      • 2013-11-28
      • 2021-10-13
      • 1970-01-01
      相关资源
      最近更新 更多