如何为 Tumblr 上的单个帖子和注释创建永久链接页面
我目前正在为 Tumblr 创建我的第一个自定义主题,但找不到任何关于帖子的永久链接页面和该帖子的注释如何工作或如何编写的解释,我该如何处理?需要什么代码以及在哪里实现?
I'm currently creating my first custom theme for Tumblr and I can't find any explanation of how permalink pages for posts and that post's notes work or how they are written, how do I go about this? what is the code needed and where is it implemented?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

您希望显示在仅限永久链接的页面上的任何内容都可以包含在
block:PermalinkPage
标记中。如果您只想将其显示在索引页上,请将其包装在block:IndexPage
标记中。要显示您的笔记,请使用
{block:PostNotes}{PostNotes}{/block:PostNotes}
。这只会出现在永久链接页面上(尽管它没有被包装在block:PermalinkPage
标记中。{PostNotes}
创建一个ol
标记,其中包含笔记类别,供您按照自己喜欢的方式进行设计。Anything you want to appear on a permalink only page you want to have wrapped in
block:PermalinkPage
tags. If you only want it to show on the index page, wrap it inblock:IndexPage
tags.To get your notes to show use
{block:PostNotes}{PostNotes}{/block:PostNotes}
. This will only appear on a permalink page (despite it not being wrapped inblock:PermalinkPage
tags.{PostNotes}
creates anol
tag with a class of notes for you to style in any way you'd like.