Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep receiving a warning by mail for page building #23

Closed
Funeoz opened this issue Nov 11, 2019 · 6 comments
Closed

Keep receiving a warning by mail for page building #23

Funeoz opened this issue Nov 11, 2019 · 6 comments

Comments

@Funeoz
Copy link
Contributor

Funeoz commented Nov 11, 2019

The build is working but keep receiving a mail saying : "You are attempting to use a Jekyll theme, "bulma-clean-theme", which is not supported by GitHub Pages.". Should i change the "theme:" setting in _config.yml to "remote_theme:" ?

@chrisrhymes
Copy link
Owner

chrisrhymes commented Nov 11, 2019

When working locally I set my _config.yml as follows with both remote_theme and theme.

theme: bulma-clean-theme
remote_theme: chrisrhymes/bulma-clean-theme

and when I push to github pages I comment out the theme to avoid getting the warning email, but leave the remote_theme setting

#theme: bulma-clean-theme
remote_theme: chrisrhymes/bulma-clean-theme

I contacted github pages support about this in February this year and they said to use github-pages gem to resolve the issue, but at that time the gem required an old version of Jekyll. It looks like the latest version of github-pages gem now uses Jekyll 3.8.5.

@Funeoz
Copy link
Contributor Author

Funeoz commented Nov 12, 2019

So every time I work locally or I push my changes to GitHub, I need to modify these settings ?

@chrisrhymes
Copy link
Owner

This is what I do currently but it’s not ideal. I will try and add GitHub pages gem to a test site this weekend to see if this resolves the need for changing settings.

@chrisrhymes
Copy link
Owner

Thanks for bearing with me.

It seems you can remove the need for theme: bulma-clean-theme in your _config.yml file completely if you add gem 'github-pages', group: :jekyll_plugins to your Gemfile and then add github-pages to your plugins in _config.yml

plugins:
  - jekyll-sitemap
  - jekyll-paginate
  - jekyll-redirect-from
  - github-pages

Then run bundle update.

Now when you run bundle exec jekyll serve locally it should build using the specified remote_theme as per GitHub Pages build.

Generating... 
Remote Theme: Using theme chrisrhymes/bulma-clean-theme
           done in 4.43 seconds.

@Funeoz
Copy link
Contributor Author

Funeoz commented Nov 23, 2019

Okay, so I tried it and it seems to be working. But I get an error when running bundle exec jekyll serve: Invalid theme folder: _sass.
Is this folder needed or not ?

@chrisrhymes
Copy link
Owner

Glad its working for you.
For the invalid theme folder message, it looks like this is a warning, rather than an error, from Jekyll when using a remote_theme instead of theme.
jekyll/jekyll#7630

KEClaytor added a commit to KEClaytor/keclaytor.github.io that referenced this issue Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants