I've inherited a Kentico 11 site that uses a doctype of
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The client wants to create AMP variants of their pages using Kentico's AMP module, which uses a subdomain for any AMP content. The module also includes a boolean macro {% AmpFilter.IsAmpPage() %} that tests if you're currently serving AMP content. https://github.com/Kentico/kentico-amp
The issue I'm running into is that AMP seems to want a doctype of
<!doctype html>
. I don't want to change the doctype of the existing site, but it also doesn't look like I can evaluate macros within the master page template's doctype field.
Wondering if anyone has come up against an issue like this; if there's a way to allow macros to be evaluated in the doctype field, or some other approach I haven't thought of.