Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amp to pwa #1

merged 6 commits into from Feb 17, 2019
Diff settings


Just for now

feat(amp): Converted html to AMPHTML

  • Loading branch information...
tomoyukikashiro committed Feb 13, 2019
commit 5126d9cb6f07b71e91478f4e0fdfeec5d4407bd9
Copy path View file
@@ -107,6 +107,14 @@ module.exports = {
icon: `content/assets/gatsby-icon.png`,
resolve: 'gatsby-plugin-html2amp',
options: {
files: ['posts/**/index.html', 'index.html'],
gaConfigPath: 'gaConfig.json',
dist: 'public/amp'
Copy path View file

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Copy path View file
@@ -12,6 +12,7 @@
"gatsby-image": "^2.0.29",
"gatsby-plugin-feed": "^2.0.13",
"gatsby-plugin-google-analytics": "^2.0.13",
"gatsby-plugin-html2amp": "^0.3.3",
"gatsby-plugin-manifest": "^2.0.17",
"gatsby-plugin-offline": "^2.0.23",
"gatsby-plugin-react-helmet": "^3.0.6",
@@ -23,6 +23,10 @@ function SEO({ description, lang, meta, keywords, title, slug = ''}) {
rel: 'canonical',
href: `${siteUrl}${path}`
rel: 'amphtml',
href: `${siteUrl}amp/${path}`
@@ -0,0 +1 @@
{ "vars": { "account": "UA-xxxxxx-xx"}, "triggers": {"trackPageview": {"on": "visible", "request": "pageview"}}}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.