sdumetz/jekyll-inline-svg

Gem installed, but still no 'svg' tag support

baardev opened this issue · 2 comments

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)

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

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.