abhinavs / moonwalk

A fast & minimal Jekyll blog theme with clean dark mode
MIT License
348 stars 507 forks source link

The page build failed for the `main` branch with the following error: #7

Closed Mahasvan closed 3 years ago

Mahasvan commented 3 years ago

This has been popping up every time i commit something to my repo image

abhinavs commented 3 years ago

I'm checking this - let me get back by tomorrow morning.

Mahasvan commented 3 years ago

thanks a lot!

smb374 commented 3 years ago

@Mahas1 I've found a fix to let GitHub build the site successfully simply by adding jekyll-seo-tag to plugins in _config.yml:

plugins:
  - jekyll-feed
  - jekyll-seo-tag       # Add this!

My guess is that if you look at the Dependency versions page there will be a list of dependencies for GitHub to build your site, and if I'm right, GitHub will only use those gems during the building process. The dependencies of this repo contains an eternal dependency - jekyll-soopr-seo-tag, which is probably the gem that is used to handle the SEO stuffs, but since GitHub won't use this gem during the building process, then the SEO stuffs will failed.

Using jekyll-seo-tag plugin may let the build pass, but my concern is that if jekyll-soopr-seo-tag provides extra functionalities other than jekyll-seo-tag, then the whole site may not work properly.

I don't know if that will effect when using the theme as a remote_theme

Any ideas, @abhinavs?

abhinavs commented 3 years ago

Thanks a lot @smb374 - you are right, Github Page has a list of approved plugins and while the jekyll-seo-tag is an approved one, jekyll-soopr-seo-tag isn't. Unfortunately, github-pages gem is also not updated and doesn't work with the latest Jekyll versions.

@Mahas1 I recommend the solution proposed by @smb374 - Soopr had recently added a feature to automatically create share images for social media*, that and a few Soopr functionalities you will miss, but I think they can be added manually if you need them.

If you are open about it - you can deploy on Netlify, it is also free and you won't face any such issues.

Mahasvan commented 3 years ago

Seems I am doing something wrong, It still fails

remote_theme: abhinavs/moonwalk

theme_config:
  appearance: "dark" # can be "light", "dark" or "auto"
  appearance_toggle: true # if appearance can be switched by user
  back_home_text: "home.." # customize text for homepage link in post layout
  date_format: "%Y-%m-%d" # customize how date is formatted
  show_description: true # show blog description
  show_navbar: true # show horizontal navbar
  show_footer: true # show footer links in home page,add in _data/home.yml

  plugins:
  - jekyll-feed
  - jekyll-seo-tag
smb374 commented 3 years ago

@Mahas1 have you put jekyll-seo-tag in the Gemfile? If you read the comments of the Gemfile, you should notice that you'll have to put the plugin you use in the Gemfile for the plugin to work properly.

# If you have any plugins, put them here!
group :jekyll_plugins do
    gem <your plugin>
    [...]
end
Mahasvan commented 3 years ago

Just added the Gemfile to my repo now, I don't know anything about Jekyll lol. But.. referencing your comment, and this page I made this


source 'https://rubygems.org'

gem 'jekyll'

group :jekyll_plugins do
  gem 'jekyll-feed'
  gem 'jekyll-seo-tag'
end

Still fails. (Im almost sure the source should be something different, but idk what)

smb374 commented 3 years ago

@Mahas1 then I'm afraid that I can't help you now. You can checkout my repo for my GitHub pages: smb374/smb374.github.io I've successfully deployed my GitHub pages using this theme as remote_theme in my _config.yml.

Mahasvan commented 3 years ago

Alright, I'll close this issue for now since the problem isnt in the repo. Thanks for you guys' help!