AMP for custom pages


I’m trying to see if there is a way to create an AMP version of a custom page or homepage. I’m just wondering if it is feasible. Here is what I came up with:

<!DOCTYPE html>

{{#is "page"}}
        {{#has slug="welcome"}}
            <html ⚡>
                    <!-- Manually add meta data in here -->
                    <!-- Manually add <style amp-custom> -->
                    <script async src=""></script>
                    <script async custom-element="amp-anim" src=""></script>
                <body class="amp-template">
            <html lang="{{lang}}">
                    {{> theme_head}}

                    {{!-- Ghost outputs important style and meta data with this tag --}}

                    <!-- Manually add this meta tag in Code Injection for this page -->
                    <link rel="amphtml" href="http://localhost:2369/welcome/amp/" />

                <body class="{{body_class}} nav-closed">
        <!-- Fix other posts -->

I know that this is an ugly way to do it. I’m just curios if this is possible or if AMP needs something more to work. What do you think?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.