如何为 Tumblr 上的单个帖子和注释创建永久链接页面

发布于 12-26 09:36 字数 92 浏览 3 评论 0原文

我目前正在为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

中二柚2025-01-02 09:36:09

您希望显示在仅限永久链接的页面上的任何内容都可以包含在 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 in block: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 in block:PermalinkPage tags. {PostNotes} creates an ol tag with a class of notes for you to style in any way you'd like.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文