Add rel="amphtml" to head - any tips?

I am afraid that would require completely rewriting Discourse from scratch, as in making it no longer a JavaScript app — if you really need amp that badly, choose a different free open source software.