@frontity/amp

0.1.1 • Public • Published

@frontity/amp

Table of contents

Install

npm i @frontity/amp

Usage

You should add the package to your frontity.settings.js file.

Usually, you will want to have a "main site" which doesn't use this package and renders the normal React application and an "amp site" that returns the AMP version of the pages.

The AMP site should have a match property which will indicate which are the AMP URLs. Some examples are:

  • A subdomain: "match": "amp\\.domain\\.com"
  • A query: "match": "(\\?|&)amp=true"
  • An ending path: "match": "\\/amp\\/?($|\\?|#)"

You can read more about setting up multiple sites in our docs.

export default [
  {
    name: "main-site",
    packages: [
      // ...your normal packages
    ],
  },
  {
    name: "amp-site",
    match: "...",
    packages: [
      "@frontity/amp",
      // ...your other packages
    ],
  },
];

Feature Discussions

Feature Discussions about Frontity are public. You can join the discussions, vote for those you're interested in or create new ones.

These are the ones related to this package: https://community.frontity.org/tags/c/feature-discussions/33/analytics

Changelog

Have a look at the latest updates of this package in the CHANGELOG


Open Source Community

Channels

Community Forum Topics Twitter: frontity Frontity Github Stars

Frontity has a number of different channels at your disposal where you can find out more information about the project, join in discussions about it, and also get involved:

  • 📖 Docs: Frontity's primary documentation resource - this is the place to learn how to build amazing sites with Frontity.
  • 👨‍👩‍👧‍👦 Community forum: join Frontity's forum and ask questions, share your knowledge, give feedback and meet other cool Frontity people. We'd love to know about what you're building with Frontity, so please do swing by the forum and tell us about your projects.
  • 🐞 Contribute: Frontity uses GitHub for bugs and pull requests. Check out the Contributing section to find out how you can help develop Frontity, or improve this documentation.
  • 🗣 Social media: interact with other Frontity users. Reach out to the Frontity team on Twitter. Mention us in your tweets about Frontity and what you're building by using @frontity.
  • 💌 Newsletter: do you want to receive the latest news about Frontity and find out as soon as there's an update to the framework? Subscribe to our newsletter.

Get involved

GitHub issues by-label

Got questions or feedback about Frontity? We'd love to hear from you in our community forum.

Frontity also welcomes contributions. There are many ways to support the project! If you don't know where to start then this guide might help: How to contribute?.

If you would like to start contributing to the code please open a pull request to address one of our good first issues.

Dependencies (6)

Dev Dependencies (9)

Package Sidebar

Install

npm i @frontity/amp

Homepage

frontity.org

Weekly Downloads

5

Version

0.1.1

License

Apache-2.0

Unpacked Size

71.7 kB

Total Files

26

Last publish

Collaborators

  • davidarenas
  • frontibotito
  • luisherranz
  • poliuk
  • santosguillamot