ctuxboy
1
Hello,
I want building my own custom Jekyll theme.
Reading the docs https://jekyllrb.com/docs/themes/#creating-a-gem-based-theme
Type:
$jekyll new-theme jekyll-theme-custom
_includes
_layouts
_sass
assets
Gemfile
But this files/dirs are not generated
gemspec
git
gitignore
README.md
Licence.txt
Was there any error output in the terminal?
ctuxboy
3
Yes,
About git.
Here you see the output when generate a new theme:
$jekyll new-theme jekyll-theme-mytheme
create /home/ubuntu/jekyll-theme-mytheme/assets
create /home/ubuntu/jekyll-theme-mytheme/_layouts
create /home/ubuntu/jekyll-theme-mytheme/_includes
create /home/ubuntu/jekyll-theme-mytheme/_sass
create /home/ubuntu/jekyll-theme-mytheme/_layouts/page.html
create /home/ubuntu/jekyll-theme-mytheme/_layouts/post.html
create /home/ubuntu/jekyll-theme-mytheme/_layouts/default.html
create /home/ubuntu/jekyll-theme-mytheme/Gemfile
jekyll 4.0.0 | Error: No such file or directory - git
This problem is only on my ubuntu server.
When generate a new theme on MacOS, then this works wel.
ctuxboy
4
@ashmaroli,
Thx for the hint!
installing git:
$sudo apt-get install git
Generate new theme:
$ jekyll new-theme jekyll-theme-mytheme
create /home/ubuntu/jekyll-theme-mytheme/assets
create /home/ubuntu/jekyll-theme-mytheme/_layouts
create /home/ubuntu/jekyll-theme-mytheme/_includes
create /home/ubuntu/jekyll-theme-mytheme/_sass
create /home/ubuntu/jekyll-theme-mytheme/_layouts/page.html
create /home/ubuntu/jekyll-theme-mytheme/_layouts/post.html
create /home/ubuntu/jekyll-theme-mytheme/_layouts/default.html
create /home/ubuntu/jekyll-theme-mytheme/Gemfile
create /home/ubuntu/jekyll-theme-mytheme/jekyll-theme-mytheme.gemspec
create /home/ubuntu/jekyll-theme-mytheme/README.md
create /home/ubuntu/jekyll-theme-mytheme/LICENSE.txt
initialize /home/ubuntu/jekyll-theme-mytheme/.git
create /home/ubuntu/jekyll-theme-mytheme/.gitignore
Your new Jekyll theme, jekyll-theme-mytheme, is ready for you in /home/ubuntu/jekyll-theme-mytheme!
For help getting started, read /home/ubuntu/jekyll-theme-mytheme/README.md.
Now it works perfect :-