An optimizer for your static site. Inline css, automatically generate amp pages.
After building your site (using zola for example), point the cli to your build folder and tell it what your site's base url is:
cargo run --release -- \
<static site folder> \
--base-url https://<site base url> \
--outdir <output directory> \
--amp \
--inline-styles
After the command runs upload your output directory to your server.
Note: this is still very WIP. I'm fixing AMP issues as I see Google complain about them.
- amp boilerplate
- collapse styles
- set canonical
- remove scripts
- amp-img (everything becomes layout="fill", so parents must be relative)
- iframes
- audio
- video