nielsenramon / chalk

Chalk is a high quality, completely customizable, performant and 100% free Jekyll blog theme.
http://chalk.nielsenramon.com
MIT License
1.23k stars 442 forks source link

Making pages amp compatible #130

Open xRahul opened 6 years ago

xRahul commented 6 years ago

Having amp ready pages will again be a boon for SEO. As the theme is minimal with non-existent dynamic content, we can make amp version of the pages for higher preference in mobile searches. I have checked out some packages also like amp-jekyll. If we can incorporate them, we should do it. I really like this theme and want to take it to the next level now! I guess going PWA route is too soon though. ;)

migueldemoura commented 6 years ago

AMP is a double-edged sword, and one ought to be careful before jumping into it with both feet. Not to mention the obvious downsides, its only benefits are performance/latency and SEO.

Chalk is properly designed, and with a CDN is should match AMP's speed. As for SEO, it would certainly improve it, but unlike structured data (https://github.com/nielsenramon/chalk/issues/129), the only reason for such increase is Google's apparent content prioritization.

In my opinion, and for those willing to accept the downsides, this could be offered as a option behind a config flag.

Edit: Much smaller comment :)

xRahul commented 6 years ago

YEah, it was purely for SEO. I know making a web page amp-lified is an undertaking by itself, but having that lightning symbol in the search results would be quite good. I agree that it should be under config and turned on only if required. As there are many things that do not work in amp pages, user should have the option to choose. Also, I was joking about PWA. I don't see why someone would need to make their blog an app. It would be an optional feature at most. Lets keep that shelved for now though.

xRahul commented 6 years ago

I have added both PWA and AMP on my fork of Chalk. It looks great so far. There are many changes that need to be done, but having AMP version of Posts would be good. Ref: AMP post, Code