【发布时间】:2016-03-15 12:52:08
【问题描述】:
我正在尝试将 Jekyll 博客添加到现有的引导站点。 (很高兴使用任何可以轻松配置为与现有站点一起使用的 SGG,但我只能在这里找到任何这样做的人的参考:Adding Jekyll to an existing website)。
当前布局
/website/index.html
/website/css/bootstrap.css
/website/_jekyll/_posts/first_post.markdown
first_post.markdown:
---
layout: post
title: "Does this work?"
date: 2016-03-15 16:06:25 +0800
categories: blogging stuff
---
Hello blog first post
预构建
/website/blog
在 jekyll 构建之后
/website/blog/blogging/stuff/2016/03/15/welcome-to-jekyll.html
我无法理解的是如何将此博客链接到网站的现有结构中。我可以在 index.html 中放置 /blog url 的链接,但我不想手动构建每个博客的确切 html 路径并将其硬编码到 index.html 页面中。
另一个选项是“反转”站点,以便 jekyll 首先将站点构建为博客 - 但是我如何设置我正在使用的引导主题(用于博客和主页)并将博客作为从主页链接到的辅助页面?
【问题讨论】:
-
也许您可以从一个新的 jekyll 开始并转换您现有的所有站点。见Adding Bootstrap to Jekyll
-
@DavidJacquel 谢谢,我正在尝试做这个 atm。
标签: html css twitter-bootstrap jekyll