blogger - 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 => w.sectionId != "ads")' var='numMobileAds'>
<b:comment>Filter out the featured post, but only on the homepage.</b:comment>
<b:with value='data:widgets.FeaturedPost filter (w => w.sectionId == "page_body") map (w => w.postId)' var='featuredPostIds'>
<b:with value='data:view.isHomepage ? data:posts filter (post => 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?
解决方案
每个includable
标签都有一个存储在 Blogger 端的默认版本。super.main
是 Blogger 的默认主标签。
推荐阅读
- android - Flipper 实现 assambleRelease 错误
- javascript - 如何在 puppeteer 中使用单击事件侦听器查找元素名称和值
- c# - Azure Web 作业是否能够让任务在后台运行?
- nginx - 为什么我的网站在部署后显示 502 bad gateway 错误
- swift - 获取打印机属性抛出 IPP - Swift
- docker - Docker 无法在 Windows 上初始化
- node.js - NestJs typeorm - 列“***”中的空值违反了保存方法的非空约束
- linkki - 删除 linkki-Table 中的列
- ios - 带常规呼叫的 Callkit
- .net - 代理客户端,带有 .net 的 TCP over ProxyServer (https)