Assemble a blog from gists.
It's hard to believe when you see how fast the pages render, but all of the content in the example pages is from Gists.
Download this project:
git clone https://github.com/assemble/boilerplate-gist-blog.git
Install the necessary dependencies to run the build:
npm i
Once dependencies are installed, you may build the project by running grunt
or grunt assemble
.
Currently the assemble.css
stylesheet is used in the examples, but the project is already setup to use Bootstrap if you want to edit the styles.
To do so, from the root of the project git clone
Bootstrap:
git clone -b master https://github.com/twbs/bootstrap.git "vendor/bootstrap"
(the "less" task is currently configured to use the vendor
directory)
In ./src/layouts/default.hbs
, change this:
<link rel="stylesheet" href="{{assets}}/assemble.css">
to this:
<link rel="stylesheet" href="{{assets}}/bootstrap.css">
Then run grunt less
to compile.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Jon Schlinkert
Brian Woodward
Copyright 2013 Assemble
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。