{"id":22509670,"url":"https://github.com/getshifter/example-gatsby-capacitor-wordpress","last_synced_at":"2025-08-03T13:31:37.029Z","repository":{"id":42862142,"uuid":"278554207","full_name":"getshifter/example-gatsby-capacitor-wordpress","owner":"getshifter","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-02T08:12:54.000Z","size":828,"stargazers_count":1,"open_issues_count":11,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-02T09:24:01.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getshifter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-10T06:15:41.000Z","updated_at":"2020-10-23T23:38:55.000Z","dependencies_parsed_at":"2023-01-21T16:49:46.435Z","dependency_job_id":"1d2397bd-2737-4069-9100-cfc69ca332e1","html_url":"https://github.com/getshifter/example-gatsby-capacitor-wordpress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getshifter%2Fexample-gatsby-capacitor-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getshifter%2Fexample-gatsby-capacitor-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getshifter%2Fexample-gatsby-capacitor-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getshifter%2Fexample-gatsby-capacitor-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getshifter","download_url":"https://codeload.github.com/getshifter/example-gatsby-capacitor-wordpress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228548566,"owners_count":17935221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T01:30:06.378Z","updated_at":"2024-12-07T01:30:07.246Z","avatar_url":"https://github.com/getshifter.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# example-gatsby-capacitor-wordpress\nThe starter theme of Gatsby site with WordPress (Using WP API).\n\nInstall this starter (assuming Gatsby is installed) by running from your CLI:\n\n## Just try the demo site\n\nYou can deploy the demo site to the following services.\n\n[![amplifybutton](https://oneclick.amplifyapp.com/button.svg)](https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/getshifter/example-gatsby-capacitor-wordpress)\n\n\n[![netlifybutton](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/getshifter/example-gatsby-capacitor-wordpress)\n\n\n## Getting started\n\n### Create new site\n\n```\n$ gatsby new gatsby-wordpress https://github.com/getshifter/example-gatsby-capacitor-wordpress\n\nor\n\n$  npx gatsby-cli new gatsby-wordpress https://github.com/getshifter/example-gatsby-capacitor-wordpress\n```\n\n### Set your WordPress URL\n\nOpen `gatsby-config.js`, and replace the following properties.\n\n- `siteMetadata.postURLPrefix`: Your WordPress Posts page URL prefix (default: `news`)\n- `siteMetadata.pageURLPrefix`: Your WordPress Pages page URL prefix (default: ``)\n- `plugins[].options.baseURL`: Your WordPress URL (default: `central.wordcamp.org`)\n\n```javascript\nmodule.exports = {\n  siteMetadata: {\n    postURLPrefix: 'news',\n    pageURLPrefix: '',\n  },\n  plugins: [\n    `gatsby-plugin-typescript`,\n    {\n      resolve: 'gatsby-plugin-graphql-codegen',\n      options: {\n        fileName: `types/graphql-types.d.ts`\n      }\n    },\n    {\n      resolve: \"gatsby-source-wordpress\",\n      options: {\n        /*\n         * The base URL of the WordPress site without the trailingslash and the protocol. This is required.\n         * Example : 'demo.wp-api.org' or 'www.example-site.com'\n         */\n        baseUrl: \"central.wordcamp.org\",\n```\n\nAll of options can see this page.\nhttps://www.gatsbyjs.org/packages/gatsby-source-wordpress/\n\n### Run in your Local\n\n```bash\n$ npm run develop\n\nor\n\n$ gatsby develop\n```\n\n\n### Build static HTML\n\n```bash\n$ npm run build\n\nor\n\n$ gatsby build\n```\n\nGenerated HTML will be placed in `public` directory.\n\n## Deploy\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/getshifter/example-gatsby-capacitor-wordpress)\n\n## PWA\n\nThe example provides PWA by using `gatsby-plugin-manifest` and `gatsby-plugin-offline`.\nYou can check the application icons in the `static/icons` directory.\n\n```bash\n% tree st   i\n/icons atic/\nstatic/icons\n├── icon-128x128.png\n├── icon-144x144.png\n├── icon-152x152.png\n├── icon-192x192.png\n├── icon-384x384.png\n├── icon-512x512.png\n├── icon-72x72.png\n└── icon-96x96.png\n\n1 directory, 8 files\n```\n\nAnd manifest.json's content are in `gatsby-config.js`.\n\n```javascript\n {\n      resolve: `gatsby-plugin-manifest`,\n      options: {\n        name: `WPGatsby Example`,\n        short_name: `WPGatsby`,\n        start_url: `/`,\n        background_color: `#ffffff`,\n        theme_color: `#00bfff`,\n        display: `standalone`,\n      },\n },\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetshifter%2Fexample-gatsby-capacitor-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetshifter%2Fexample-gatsby-capacitor-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetshifter%2Fexample-gatsby-capacitor-wordpress/lists"}