juusaw / amp-jekyll

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

Enabling Excerpts #31

Closed lovelldies closed 7 years ago

lovelldies commented 7 years ago

Hi Juuso!

Firstly thanks for this great plugin.

I see that you mentioned in your amp_generate.rb file that excerpts are disabled as they case an error. Could you please let me know what error it causes and how I can enable excerpts if required. I'm not familiar with ruby code.

I manually set the excerpts in my code, so if there is any way to enable excerpts it would help.

Thanks!

lovelldies commented 7 years ago

self.data['excerpt'] = post.to_liquid['excerpt'] This seems to have done the trick.