首页 > 解决方案 > Blogger 模板中的“super.main”是什么意思

问题描述

主要包含的包含来自 Blog1 小部件的代码 -

 <b:includable id='main'>
      <!--<b:include name='noContentPlaceholder'/>-->

      <b:comment>Cap the total number of ads (widgets and inline ads).</b:comment>
      <b:with value='3' var='maxNumAds'>
      <b:with value='data:widgets.AdSense.size' var='numDesktopAds'>
      <b:with value='data:widgets.AdSense count (w =&gt; w.sectionId != &quot;ads&quot;)' var='numMobileAds'>
      <b:comment>Filter out the featured post, but only on the homepage.</b:comment>
      <b:with value='data:widgets.FeaturedPost filter (w =&gt; w.sectionId == &quot;page_body&quot;) map (w =&gt; w.postId)' var='featuredPostIds'>
      <b:with value='data:view.isHomepage  ? data:posts filter (post =&gt; post.id not in data:featuredPostIds)   : data:posts' var='posts'>
        <b:include name='super.main'/>
      </b:with>
      </b:with>
      </b:with>
      </b:with>
      </b:with>
    </b:includable>

我可以理解此代码片段中使用的其他标签和表达式,但我无法弄清楚“super.main”是什么意思。当我在包含标签周围放置一个父 div 时,我意识到它嵌套了帖子的提要。但它调用的是哪个 includable?

标签: blogger

解决方案


每个includable标签都有一个存储在 Blogger 端的默认版本。super.main是 Blogger 的默认主标签。


推荐阅读