Does Jekyll work with Paul?

How do I get Jekyll to work with Pow ?

+6
source share
3 answers

Thanks to @mipadi's answer, I found out that Pow automatically serves static files in the public directory of your application, so just configure Jekyll to change the directory in which Jekyll will write files from _site (by default) to public . Since public does not start with an underscore ( _ ), you must also add it to the list of files and directories for exclusion. The relevant parts of my _config.yaml are as follows:

 destination: public exclude: ["CNAME", "Rakefile", "README.md", "public"] 

Then just do the usual:

 cd ~/.pow ln -s /path/to/myjekyllsite 

And go to http://myjekyllsite.dev/ .

Passive directory with the rest of the slash : Going to http://myjekyllsite.dev/projects should automatically redirect to http://myjekyllsite.dev/projects/ , but didn’t.

+15
source

Here's an approach that does not require overriding any normal Jekyll defaults:

Install rack-jekyll :

 gem install rack-jekyll 

Add config.ru with the following contents:

 require "rack/jekyll" run Rack::Jekyll.new 

And now symbolize the project directory in ~/.pow , as usual.

+9
source

I am not familiar with Pow, but it looks like you can simply symbolize the output of your site, created by Jekyll, in ~/.pow/public .

+1
source

Source: https://habr.com/ru/post/892772/


All Articles