Tumblr 主题...试图找到第一篇文章的类型(文本、图片等)

发布于 2024-08-05 13:28:06 字数 276 浏览 4 评论 0原文

所以我希望我的主题的各个方面根据最新的帖子进行改变。知道我该怎么做吗?

我更喜欢使用 tumblr 自定义的 {html tag} 东西,而不是 javascript 或其他东西。也不知道 tumblr 是否允许这样做。

主题文档在这里: http://www.tumblr.com/docs/custom_themes

谢谢。

So I want various aspects of my theme to change depending on the most recent post. Any idea how I could do it?

I would prefer it to be by using on of the tumblr custom {html tag} things, rather than javascript or whatever. Don't know if that's even allowed on tumblr either.

Theme Documents are here:
http://www.tumblr.com/docs/custom_themes

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

偷得浮生 2024-08-12 13:28:06

在第一篇文章中,在相应的类型块(块文本、块照片等)中放置覆盖默认样式的自定义 css,然后就完成了

{块:帖子[1-15]} {/块:帖子[1-15]}
为帖子呈现
指定的偏移量。这使得
可以插入广告或
设计元素在你的中间
帖子。

示例:{block:Post5}我是第五个
post!{/block:Post5} 只会是
在第五篇文章中呈现的是
显示。

in the first post, in the according type block (block text, block photo, etc..) put custom css that overrides the default style, and you're done

{block:Post[1-15]} {/block:Post[1-15]}
Rendered for the post at the
specified offset. This makes it
possible to insert an advertisement or
design element in the middle of your
posts.

Example: {block:Post5}I'm the fifth
post!{/block:Post5} will only be
rendered on the fifth post being
displayed.

把人绕傻吧 2024-08-12 13:28:06

您可以获得 JSON 格式的最新帖子,因此您可以使用一些 JavaScript 来获取最新帖子,然后应用一些额外的 CSS 魔法。

You can get your most recent posts as JSON, so you can have a bit of JavaScript which would get the most recent posts then apply some extra CSS magic.

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