sdumetz / jekyll-inline-svg

SVG optimizer and inliner for jekyll
GNU General Public License v3.0
39 stars 6 forks source link

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

Open baardev opened 11 months ago

baardev commented 11 months ago

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 commented 10 months ago

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 commented 5 months ago

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.