Giter Club home page Giter Club logo

Comments (3)

rohandebsarkar avatar rohandebsarkar commented on June 3, 2024

When using github-metadata plugin for extracting site.url from the GitHub repository for hosting with GitHub pages, this plugin crashes.

from jekyll-target-blank.

peter1357908 avatar peter1357908 commented on June 3, 2024

Bumping this. This is what caused the CloudFlare Pages build to fail: I didn't define url in _config.yml and the build would crash with an error whose root cause is as follows:

17:40:45.705 | /opt/buildhome/.asdf/installs/ruby/3.2.2/lib/ruby/3.2.0/uri/rfc3986_parser.rb:15:in `split': undefined method `to_str' for nil:NilClass (NoMethodError)
-- | --
17:40:45.705 | ย 
17:40:45.706 | uri = uri.to_str
17:40:45.706 | ^^^^^^^
17:40:45.706 | from /opt/buildhome/.asdf/installs/ruby/3.2.2/lib/ruby/3.2.0/uri/rfc3986_parser.rb:71:in `parse'
17:40:45.706 | from /opt/buildhome/.asdf/installs/ruby/3.2.2/lib/ruby/3.2.0/uri/common.rb:193:in `parse'
17:40:45.706 | from /opt/buildhome/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/jekyll-target-blank-2.0.2/lib/jekyll-target-blank.rb:196:in `external?'

The error went away after I added the production url to _config.yml. It even made the Preview deployment pass, which actually has a different url than the one I specified in _config.yml.

from jekyll-target-blank.

keithmifsud avatar keithmifsud commented on June 3, 2024

Hi guys.

The URL in the config is required for this plugin to work.

Thanks

from jekyll-target-blank.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.