Jekyll

Jekyll installation, wrong number of arguments

為{幸葍}努か 提交于 2021-01-28 05:51:01
问题 I am running Fedora 28. Having trouble installing Jekyll. I have all the dependencies mentioned on their installation page. ruby -v ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux] gem -v 2.5.2 bundle -v Bundler version 1.16.1 When I try to install Jekyll, I am getting this - gem install jekyll ERROR: While executing gem ... (ArgumentError) wrong number of arguments (given 1, expected 0) Running as root doesn't help either. When I run backtrace, gem install jekyll --backtrace ERROR:

Wrong number of arguments (1 for 2) while serving Jekyll

99封情书 提交于 2021-01-28 03:38:58
问题 Fresh installation of Jekyll and Octopress. On starting the server, it yields: Homes-MacBook-Pro:octopress home$ jekyll serve Configuration file: /Users/home/octopress/_config.yml Source: source Destination: public Generating... error: wrong number of arguments (1 for 2). Use --trace to view backtrace on performing the trace: Homes-MacBook-Pro:octopress home$ jekyll serve --trace Configuration file: /Users/home/octopress/_config.yml Source: source Destination: public Generating... /Users/home

Include Jekyll/Liquid code without rendering it

烂漫一生 提交于 2021-01-27 04:43:16
问题 Is it possible to {% include file.html %} without the tags inside it getting rendered? I've tried {% include file.html | escape_once %} which gives an error running it through {% raw %} {% include file.html %} {% endraw %} which gives {% include file.html %} (not surprisingly). I'm looking for something along the lines of {% include file.html | no_render %} The reason I can't put the raw tags inside file.html is that I'm trying to reuse it as a template (it's a bit of a hack). This would also

Include Jekyll/Liquid code without rendering it

折月煮酒 提交于 2021-01-27 04:42:11
问题 Is it possible to {% include file.html %} without the tags inside it getting rendered? I've tried {% include file.html | escape_once %} which gives an error running it through {% raw %} {% include file.html %} {% endraw %} which gives {% include file.html %} (not surprisingly). I'm looking for something along the lines of {% include file.html | no_render %} The reason I can't put the raw tags inside file.html is that I'm trying to reuse it as a template (it's a bit of a hack). This would also

Is it possible to serve multiple Jekyll sites locally?

大憨熊 提交于 2021-01-21 06:15:49
问题 Every time I serve a Jekyll site from the command line it is served on port 4000. Two sites can't be served on the same port. Is it possible to serve multiple Jekyll sites locally? 回答1: You can also start the server with an additional argument --port 1234 or --host hostname . For example: $ jekyll serve --port 4001 --host my_hostname_or_ip You can view all the possible CLI flags from The official Jekyll documentation 回答2: Yes it is possible to serve multiple Jekyll sites locally by setting

Is it possible to serve multiple Jekyll sites locally?

北城以北 提交于 2021-01-21 06:15:33
问题 Every time I serve a Jekyll site from the command line it is served on port 4000. Two sites can't be served on the same port. Is it possible to serve multiple Jekyll sites locally? 回答1: You can also start the server with an additional argument --port 1234 or --host hostname . For example: $ jekyll serve --port 4001 --host my_hostname_or_ip You can view all the possible CLI flags from The official Jekyll documentation 回答2: Yes it is possible to serve multiple Jekyll sites locally by setting

Commonmarker gem cannot be installed (needed for jekyll) macos

对着背影说爱祢 提交于 2021-01-20 08:58:07
问题 what do I have to do, is there a problem with dependencies? How do I fix those? I am on catalina. I repeatedly get this error and have already looked for the directory.. doesn't exist. sudo bundle update Password: Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/. Resolving dependencies....... Bundler found conflicting requirements for the Ruby version: In Gemfile: github-pages was resolved to 1, which depends on Ruby (~> 1.9.3)

Adding Jekyll (only the blog portion) to my website

拥有回忆 提交于 2021-01-05 04:23:11
问题 I wish to add Jekyll (only the blog portion) to my already existing website. I currently have this repo on my Github (https://github.com/TonyHoanTrinh/TonyHoanTrinh.github.io). Where I currently have a folder for Images. An index.html, main.js and style.css files. My question is how would I be able to add the Jekyll blog portion to my website which already has a layout and theme? I've been looking at several Jekyll tutorials but they have it start the project from the beginning using a theme

Adding Jekyll (only the blog portion) to my website

前提是你 提交于 2021-01-05 04:20:03
问题 I wish to add Jekyll (only the blog portion) to my already existing website. I currently have this repo on my Github (https://github.com/TonyHoanTrinh/TonyHoanTrinh.github.io). Where I currently have a folder for Images. An index.html, main.js and style.css files. My question is how would I be able to add the Jekyll blog portion to my website which already has a layout and theme? I've been looking at several Jekyll tutorials but they have it start the project from the beginning using a theme

Adding Jekyll (only the blog portion) to my website

与世无争的帅哥 提交于 2021-01-05 04:17:56
问题 I wish to add Jekyll (only the blog portion) to my already existing website. I currently have this repo on my Github (https://github.com/TonyHoanTrinh/TonyHoanTrinh.github.io). Where I currently have a folder for Images. An index.html, main.js and style.css files. My question is how would I be able to add the Jekyll blog portion to my website which already has a layout and theme? I've been looking at several Jekyll tutorials but they have it start the project from the beginning using a theme