Skip to content
Grav 2.0 is officially stable. Read the announcement →

Muut Archive Legend

@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • AMP ⚡ - Taking on without making plugins · 10 years ago

    That sounds like it covers creating a template for amp page, but you also need to ensure the content is using the correct markup. I would like to see how https://github.com/Lullabot/amp-library could

  • AMP ⚡ - Taking on without making plugins · 10 years ago

    What was the problem?

  • AMP ⚡ - Taking on without making plugins · 10 years ago

    Allright! I MADE IT WORKING WITHOUT PLUGINS. YAY!

  • AMP ⚡ - Taking on without making plugins · 10 years ago

    @rhukster something still isn't right. In my system/config/system.yamlfile I have addedamp` to the end: pages: types: [txt,xml,html,htm,json,rss,atom,amp] # list of valid page types Now this st

  • AMP ⚡ - Taking on without making plugins · 10 years ago

    You need to define amp in Media types so Grav knows the MIME type. Then you need to add amp to the system.pages.types, then provide appropriate .amp.twig templates to render.

  • AMP ⚡ - Taking on without making plugins · 10 years ago

    Still could not solve it. Anyone got a hint?

  • AMP ⚡ - Taking on without making plugins · 10 years ago

    @flaviocopes I just tested my system.pages.types and tried adding .rss and it gave me an error. When I add .amp, it loads default .html page? Do I am missing something?

  • AMP ⚡ - Taking on without making plugins · 10 years ago

    I would start by creating a default.amp.twig file, and by adding amp to the system.pages.types setting (in the System config). This way you can simply add .amp to a page URL to render the AMP version.

  • AMP ⚡ - Taking on without making plugins · 10 years ago

    I am just messing around with default Grav set-up and thinking how can I add AMP (Accelerated Mobile Pages) to existing news site. So I started off with a partial base-amp.html.twig that will be a boi

  • Multisite structure · 9 years ago

    I also would like to have this explained in depth. As I use the admin tool the directory was not automatically updated and I really don't know how the structure has to look. There are a lot of folders