Blogspot 小部件中 visible=true 的功能是什么?

What is the function of visible=true inside Blogspot widget?

为什么 Blogspot 中的 <b:widget visible='true'> 值总是 'true'?我将其更改为 'false',然后当我重新加载编辑 HTML 页面时它又变回 'true'。另外我不知道它在Blogspot模板中的作用。

更新

随着 Blogger 模板的新更新(请参阅 this),visible 属性现在可以使用,可用于显示和隐藏小工具。此设置可以直接在模板中更改或通过自定义 > 小工具界面


b:widget 标签上的 visible 属性的使用没有可用的官方文档。

根据一位 Google 员工在 Blogger 官方论坛上的 threads 之一 -

A workaround for this problem is to head to: Template => Edit HTML => Jump to widget => (The missing widget)

You'll see visible='false' on the widget. Change this to true, and save the template.

Please let users know this workaround, and advise them to refrain from modifying their widgets until the problem has been resolved.

如该帖子中所述,此属性可能用于 hiding/showing 小部件(链接的帖子解决了 2016 年 6 月发生的一个问题,当时多个用户面临小部件突然从他们的博客中消失的问题。)

就目前而言,此小部件属性无法从用户端修改,并且始终保持 true

Blogger 确实提供了另一个小部件属性,用于在博客上有选择地显示小部件,称为 pageType(具有选项 allarchivemainitem. 请参阅 Page elements tags for layouts),但目前也不起作用(保存模板时,此属性会从 b:widget 标签中强制删除)