jekyll-bootstrap

Github pages: Why do I need a gh-pages

偶尔善良 提交于 2020-02-26 12:10:12
问题 I have deployed a personal blog using Github pages and I see that some tutorials tell you to create a gh-pages branch. I did that, however, my changes to the website are visible only if I make changes to my master. So, I'm confused as to why I need gh-pages? Can someone please explain this. Thanks 回答1: You no longer need a gh-pages branch. GitHub now allows pages to be published from the master branch, or from a docs folder in master. 回答2: You host one website per github person or

Jekyll automatically processing rows

痞子三分冷 提交于 2019-12-11 08:21:29
问题 I want to filter out from site.pages all pages with a given YAML frontmatter type 'project' . To do this I've done this: {% sorted_for page in site.pages sort_by:title %} {% if page.type == 'project' %} do something {% endif %} {% endfor %} This uses the sorted_for plugin. What I want to do now, however is to arrange these in css rows of four. <div class="row"> <div class="span3">{{ page1.title }}</div> <div class="span3">{{ page2.title }}</div> <div class="span3">{{ page3.title }}</div> <div

What does capturing a liquid variable then assigning to nil do?

Deadly 提交于 2019-12-08 13:41:44
问题 Jekyll bootstrap includes the file _includes/JB/setup : {% capture jbcache %} <!-- - Dynamically set liquid variables for working with URLs/paths --> {% if site.JB.setup.provider == "custom" %} {% include custom/setup %} {% else %} {% if site.safe and site.JB.BASE_PATH and site.JB.BASE_PATH != '' %} {% assign BASE_PATH = site.JB.BASE_PATH %} {% assign HOME_PATH = site.JB.BASE_PATH %} {% else %} {% assign BASE_PATH = nil %} {% assign HOME_PATH = "/" %} {% endif %} {% if site.JB.ASSET_PATH %} {

Jekyll private deployment?

人走茶凉 提交于 2019-12-06 12:18:57
问题 I have created jekyll site. Regarding the deployment I don't want to host on github pages. To host private domain I came know from documentation to copy the all files from _site folder. That's all wicked. Question: Each time I add new blog post, I am running cmd>jekyll build then I am copying newly created html to hosted domain. Is there any easy way to update without compiling each time ? The reason, Why I am asking is because it will updated by non technical person Thanks for the help!! 回答1

Show pages under one folder in Jekyll?

我的未来我决定 提交于 2019-12-06 01:00:02
问题 I think the native way of managing pages of Jekyll, i.e. by creating .md file / folders under the root folder, is a bit messy. Thus I want to put, every page I want to show, into the folder called "pages". Additionally, I'd like these pages to have a cascaded structure: say if my folder has the structure: pages |-> parent1 |-> index.html |-> son1.html |-> son2.html |-> parent2 |-> index.html Then in the pages-listing page, it should be something like this: page listing * parent1 * son1 * son2

Jekyll private deployment?

回眸只為那壹抹淺笑 提交于 2019-12-04 19:38:18
I have created jekyll site. Regarding the deployment I don't want to host on github pages. To host private domain I came know from documentation to copy the all files from _site folder. That's all wicked. Question: Each time I add new blog post, I am running cmd>jekyll build then I am copying newly created html to hosted domain. Is there any easy way to update without compiling each time ? The reason, Why I am asking is because it will updated by non technical person Thanks for the help!! If you don't want to use GitHub Pages, AFAIK there's no other way than to compile your site each time you

Switch theme in an existing Jekyll installation

匆匆过客 提交于 2019-11-29 20:16:43
There are many themes for Jekyll, e.g. https://github.com/jekyll/jekyll/wiki/Themes . What is the easiest way to switch to a new theme in an EXISTING Jekyll installation? While you could migrate to an existing installation by forking a new theme and then manually copy and pasting over resources like CSS, JS, HTML in the _includes , _layouts and other files you may need, this probably isn't a great idea as you end up having a mash up of old and new resources, which may not be of the same name, but in the scenario that they are (for example you didn't overwrite an old stylesheet that your post

Switch theme in an existing Jekyll installation

▼魔方 西西 提交于 2019-11-28 15:57:38
问题 There are many themes for Jekyll, e.g. https://github.com/jekyll/jekyll/wiki/Themes. What is the easiest way to switch to a new theme in an EXISTING Jekyll installation? 回答1: While you could migrate to an existing installation by forking a new theme and then manually copy and pasting over resources like CSS, JS, HTML in the _includes , _layouts and other files you may need, this probably isn't a great idea as you end up having a mash up of old and new resources, which may not be of the same

Adding Bootstrap to Jekyll

帅比萌擦擦* 提交于 2019-11-27 17:44:12
I'm new to Jekyll and would like to pull in some of the Twitter Bootstrap functionality. Has anyone done this and, if so, do you have any advice? I would have gone with Jekyll-Bootstrap, but there is no longer support for it. I have built my Jekyll site and am hoping there's a way to pull in Bootstrap. David Jacquel As Jekyll natively supports sass, you can use bootstrap-sass . I personally install it with the bower install bootstrap-sass command. This installs Bootstrap and Jquery in the bower_components folder. Configuration In your _config.yml add : sass: # loading path from site root #

Adding Bootstrap to Jekyll

被刻印的时光 ゝ 提交于 2019-11-26 19:09:19
问题 I'm new to Jekyll and would like to pull in some of the Twitter Bootstrap functionality. Has anyone done this and, if so, do you have any advice? I would have gone with Jekyll-Bootstrap, but there is no longer support for it. I have built my Jekyll site and am hoping there's a way to pull in Bootstrap. 回答1: As Jekyll natively supports sass, you can use bootstrap-sass. I personally install it with the bower install bootstrap-sass command. This installs Bootstrap and Jquery in the bower