Tumblr 主题...试图找到第一篇文章的类型(文本、图片等)
所以我希望我的主题的各个方面根据最新的帖子进行改变。知道我该怎么做吗?
我更喜欢使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在第一篇文章中,在相应的类型块(块文本、块照片等)中放置覆盖默认样式的自定义 css,然后就完成了
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
您可以获得 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.