juusaw / amp-jekyll

Build Accelerated Mobile Page versions of your Jekyll posts
MIT License
281 stars 59 forks source link

SVG support #8

Open danmindru opened 8 years ago

danmindru commented 8 years ago

Hi there, thanks for the nifty little scripts 👍 Do you have any idea on how to deal with SVGs?

juusaw commented 8 years ago

Hi!

The AMP support for SVG is quite good, as far as I know. I did some quick testing and looks like SVG type src in amp-image works just fine. FastImage should also be able to get dimensions for SVG. According to this, most inline SVG is also allowed.

danmindru commented 8 years ago

Interesting, maybe it's just the particular SVG I was using. Gonna investigate some more. Here's what I can see in dev mode btw:

screenshot 2016-08-11 12 42 58