返回首页
最新
几周前,一个朋友给我发了 grug-brain XSLT,这让我受到启发,决定用 XSLT 重做我的个人博客。<p>与其仅仅在此基础上建立自己的博客,我将其整理成文以供他人使用,并已在 GitHub 上发布,链接为 <a href="https://github.com/vgr-land/vgr-xslt-blog-framework" rel="nofollow">https://github.com/vgr-land/vgr-xslt-blog-framework</a>。<p>由于其他人也在关注 XSLT,现在正是与大家分享的好时机。Evidlo@ 对 XSLT 的工作原理做了很好的解释。<p>使用这个框架发布的简要步骤如下:<p>1. 创建一个新的 HTML 帖子,并用框架所需的 XML 头部和尾部进行包装。<p>2. 为帖子打上标签,以确保其唯一性,框架可以在构建时找到它。<p>3. 将帖子添加到 posts.xml 文件中。<p>就是这样。没有需要更新菜单的构建系统,也没有需要更新的 RSS 文件(posts.xml 就是 RSS 文件)。作为一个可重用的框架,CSS 中可能潜藏着一些 bug,但除此之外,我发现它完全满足我的需求。<p>最后,如果 XSLT 从 HTML 规范中移除,那将是个遗憾,因为我发现它在简单性上相当优雅。<p>(1) <a href="https://news.ycombinator.com/item?id=44393817">https://news.ycombinator.com/item?id=44393817</a><p>(2) <a href="https://github.com/vgr-land/vgr-xslt-blog-framework" rel="nofollow">https://github.com/vgr-land/vgr-xslt-blog-framework</a><p>(3) <a href="https://news.ycombinator.com/item?id=44988271">https://news.ycombinator.com/item?id=44988271</a><p>(4) <a href="https://news.ycombinator.com/item?id=44952185">https://news.ycombinator.com/item?id=44952185</a><p>(附注 - 第一次打电话,长期听众,感谢!)