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

Gem installed, but still no 'svg' tag support #8

Open
baardev opened this issue Dec 12, 2023 · 2 comments
Open

Gem installed, but still no 'svg' tag support #8

baardev opened this issue Dec 12, 2023 · 2 comments

Comments

@baardev
Copy link

baardev commented Dec 12, 2023

I have installed via gem, updated by _config.yml, and cleared the jekyll cache, but when I run jekyll serve I get

Liquid Exception: Liquid syntax error (line 152): Unknown tag 'svg' in /home/jw/store/sites/tholonia/chirpy2/_layouts/home.html
bundler: failed to load command: jekyll (/usr/local/src/rbenv/versions/3.1.2/bin/jekyll)

Is there some step I have missed?

I confirmed they are installed with

$ gem query --local|grep svg
jekyll-inline-svg (1.1.5)
svg_optimizer (0.3.0)

@joemasilotti
Copy link

I had to add jekyll-inline-svg to the plugins: key in my config.

# _config.yml
url: ""
baseurl: ""
title: ""
plugins:
  - jekyll-inline-svg
gems:
  - jekyll-inline-svg

@scrlkx
Copy link

scrlkx commented May 21, 2024

I'm not a Ruby developer and I don't know much about it. But for me, adding jekyll-inline-svg to gems as the README suggests, leads to a broken page rendering. However, adding jekyll-inline-svg only to plugins works well. This happen in a fresh and blank Jekyll project.

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

3 participants