Closed FongX777 closed 6 years ago
Hi @FongX777, I recently ran into a similar problem with plugins. So I hope I can help you with this:
Github allows jekyll pages only with supported plugins on Github-Pages. It's called safemode or Plugin Whitelist. This disables foreign gems/plugins of even project internal plugins in the _plugins
folder
You run into this if your use the github-pages
gem in your Gemfile
. In this case the local and onside build process fails. I discovered it while upgrading github-pages version 105
to 163
.
You could avoid this by using the native jekyll gem and list all your used plugins manually. But in this scenario you can't let github build you page automatically. If you still wan't this you need a service like appveyor and automate the build process yourself. You can look at my blog source OCram85.github.io if you need some help.
Thanks for offering your advise Marco
Thanks a lot! @OCram85 ! I'll give it a try!
Hi @FongX777 The way I solve this is by building the site locally, with jekyll build
and then committing the output in _site to the master branch. The source code lives in the development branch for now, and when I want to update the master, I have to cd
into the _site branch where lives another git repo pointing to the master remote. I push the automated changes to master up to GitHub, and that's how I separate the source from what is generated.
This is similar to my approach: I changed the default branch to jekyll where my source is. Appveyor builds the site on every change and pushes the output to the master branch. gh-pages uses thi master.
@FongX777 I assume the suggested solutions worked for you so I'm closing this issue
Hello, I really like beautiful-jekyll for its easy-to-use feature and elegant outlook. But I have trapped in the condition for a long time that whenever I want to add a plugin, it almost failed...
Take a famous plugin 'jekyll-assets' for example, First I created a folder named '_assets' and put 'css/', 'js/', 'img/' into it, then changed my _config.yml file like it (the appending part):
here is my Gemfile
I have run
bundle install
and evengem install jekyll-assets
however, it works nothing, there is no assets file rendered into _site/assets/,
and when I use liquid tags supported by jekyll-assets like {% css main %}
it would show
(I put {% css main %} in index.html just for testing)
Not just happened in this case, whenever I installed the other plugins(like jekyll-mermaid) and want to use the customized tags, it also showed the same error message...
is something wrong with my code? I really want more plugins in my blog!
Thank you!