What is the {block:Hidden} and when is it used?

雨燕双飞 提交于 2019-12-03 15:48:10

Meta tags are not rendered by the browser, like every other tag in <head>. They are there but "invisible" to the user. Some are read by the browser, some are read by search engines and in this case some are read by Tumblr.

Since Tumblr's meta tags (or theme options) are usually not needed outside Tumblr itself, you can use {block:Hidden} to prevent them from appearing in the generated HTML, thus saving bandwidth.

{block:Hidden} is not in the docs because it does not exist. For that reason, Tumblr never shows its content. {block:NOPE} or any other non-existent block would work the same way.


The meta tags outside that block are not Tumblr-related; They need to appear in the generated code and thus to be sent to the browser. Here's an article if you want to know more about the viewport meta tag.

Luke

Content in between the block {block:Hidden} will not be rendered on the client / source.

Those meta tags are for defining variables that are used within the theme. They will be rendered by Tumblr but won't appear in the client / source code.

A still helpful resource for blocks: http://www.tumblr.com/docs/en/custom_themes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!