Jekyll

What is the difference between 0.0.0.0, 127.0.0.1 and localhost?

大兔子大兔子 提交于 2019-12-27 09:02:32
问题 I am using Jekyll and Vagrant on my mac. I found that Jekyll server will bind to 0.0.0.0:4000 instead of 127.0.0.1:4000 . Also gem server will bind to this address by default. I can still visit it via http://localhost:port . But for Jekyll , it seems that the default setting (e.g. 0.0.0.0:4000) requires Internet access. I cannot run Jekyll server without Internet. Is it a small bug? I also use Vagrant . I have set port forwarding(8080 => 4000) in Vagrantfile, since I install Jekyll in Vagrant

What is the difference between 0.0.0.0, 127.0.0.1 and localhost?

断了今生、忘了曾经 提交于 2019-12-27 09:01:42
问题 I am using Jekyll and Vagrant on my mac. I found that Jekyll server will bind to 0.0.0.0:4000 instead of 127.0.0.1:4000 . Also gem server will bind to this address by default. I can still visit it via http://localhost:port . But for Jekyll , it seems that the default setting (e.g. 0.0.0.0:4000) requires Internet access. I cannot run Jekyll server without Internet. Is it a small bug? I also use Vagrant . I have set port forwarding(8080 => 4000) in Vagrantfile, since I install Jekyll in Vagrant

Jekyll Build Error for hmfaysal-omega-theme

陌路散爱 提交于 2019-12-25 14:00:40
问题 I downloaded the Omega theme and try to start on my MAC: But i get this error: Configuration file: /Users/rname/jekyll/hmfaysal-omega-theme-gh-pages/_config.yml Source: /Users/rname/jekyll/hmfaysal-omega-theme-gh-pages Destination: /Users/rname/jekyll/hmfaysal-omega-theme-gh-pages/_site Generating... Build Warning: Layout 'none' requested in feed.xml does not exist. jekyll 2.5.3 | Error: Operation not permitted @ unlink_internal - /Users/rnagaraj/jekyll/hmfaysal-omega-theme-gh-pages/_site

Jekyll -v error (Bundler::GemNotFound)

匆匆过客 提交于 2019-12-25 11:56:33
问题 When running jekyll -v I get the following: /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:88:in 'block in materialize': Could not find jekyll-feed-0.9.2 in any of the sources (Bundler::GemNotFound) from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in 'map!' from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in 'materialize' from /Users/myusername/.rvm/gems/ruby-2.4.2/gems

Jekyll on github doesn't works the same as local jekyll server

孤人 提交于 2019-12-25 11:53:06
问题 Project demo next button http://lenville.com/images/pager/next.png The next button works very well when I ran all the codes on local jekyll server. But it doesn't work on online Github Jekyll server. Looking forward to the best answer. 回答1: Make sure you using correct Jekyll Currently gem 'jekyll', '=0.12.0' 来源: https://stackoverflow.com/questions/16500043/jekyll-on-github-doesnt-works-the-same-as-local-jekyll-server

Is there a way to access rendered content in Jekyll?

喜欢而已 提交于 2019-12-25 05:24:26
问题 In Jekyll, is there any way to access the rendered content of a post from another page? Here's the scenario: Suppose I wanted to create a blog index page listing a bunch of posts. Each post uses a different layout (text, photo, tweet, etc). Is there a way to get Jekyll to render each post with the layout specified inside of that post and then hand me the rendered content so that I can put it into a summary page? (I'm 97% sure I saw this exact question asked and answered somewhere here on

GitHub pages serving from docs and jekyll source folder config

无人久伴 提交于 2019-12-25 04:36:01
问题 The documentation for standard F# (following ProjectScaffold) has the following structure - project | - docs | | content | | files | | output | | tools The generated docs are saved into output , which are then pushed to the gh-pages branch. Recently, GitHub has changed the way serving pages work and now you can just serve the docs folder directly from the master branch. The problem is that the actual folder I wish to serve is docs/output . Jekyll has a source configuration that allow me to do

Uncaught SyntaxError: Unexpected identifier - Webshare api

不问归期 提交于 2019-12-25 03:34:58
问题 I am trying to implement web share api of android chrome in jekyll posts page. Below is my code. <script> document.querySelector('share-btn2').addEventListener('click', function() { console.log('clicked'); if(navigator.share) { navigator.share({ title: {{ page.title }}, text: {{ page.content }}, url: {{ site.url }}{{ page.url }} }) .then(() => console.log('Success')) .catch((error) => console.log('Error sharing', error)); } }); </script> But I get an Uncaught SyntaxError: Unexpected

Copying generated files from a Jekyll plugin to a site resource folder

自作多情 提交于 2019-12-25 03:07:41
问题 I'm developing a plugin in Jekyll that inserts a new Liquid Tag (a block tag) named latex . It's purpose is to insert a block of LaTeX source code inside a post source file this way: ... post file contents ... {% latex density=300 usepackages=pstricks-all, %} \pspicture(5,5) \psframe(0,0)(5,5) \psline(0,0)(5,5) \psline(0,5)(5,0) \endpspicture {% endlatex %} ... post file contents ... The output post will contain a <img> tag instead of the Liquid Tag block once compiled and the LaTeX source

can't get jekyll to parse markdown

╄→尐↘猪︶ㄣ 提交于 2019-12-25 02:38:11
问题 When I include a file with the .md extension in my Jekyll project, the markdown just shows up as plain text, totally unformatted, when deployed to github pages which is my target, and locally. I think I have faithfully followed the directions in these guides, but must have missed something: http://jekyllrb.com/docs/configuration/ https://help.github.com/articles/using-jekyll-with-pages I have tried not including any markdown directives in _config.yml, thinking that jekyll would know what to