# Gatsby/Ghost how to modify a page in Gatsby that was generated from Ghost

**URL:** <https://forum.ghost.org/t/gatsby-ghost-how-to-modify-a-page-in-gatsby-that-was-generated-from-ghost/10881>\
**Category:** Developer help\
**Created:** [December 18, 2019, 11:05am UTC](https://forum.ghost.org/t/gatsby-ghost-how-to-modify-a-page-in-gatsby-that-was-generated-from-ghost/10881 "2019-12-18T11:05:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shadycuz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/shadycuz/32/5525_2.png) [@shadycuz](https://forum.ghost.org/u/shadycuz)\
**Post date:** [December 18, 2019, 11:05am UTC](https://forum.ghost.org/t/gatsby-ghost-how-to-modify-a-page-in-gatsby-that-was-generated-from-ghost/10881/1 "2019-12-18T11:05:02Z")

</div>

Hey,

I created a “tags” page in ghost and using code injection, injected a little bit of code so that all tags created would be listed on that page as links.

Because of a known issue [Include codeinjection for site and posts · Issue #22 · TryGhost/gatsby-starter-ghost · GitHub](https://github.com/TryGhost/gatsby-starter-ghost/issues/22) when you build the site with gatsby the script I injected doesn’t work and the page is blank.

I would like to modify that page in gatsby so it works correctly. Since the content of the page comes from ghost all I could find is the page in graphQL.

```
query MyQuery {
  allGhostPage {
    totalCount
    nodes {
      id
      html
      title
    }
  }
}

```

Can I just modify it? I searched but all I could find was this [https://spectrum.chat/gatsby-js/general/executing-apollo-mutations-when-creating-pages~9d9669b4-8a3a-472c-90f9-f731cefa37e6](https://spectrum.chat/gatsby-js/general/executing-apollo-mutations-when-creating-pages~9d9669b4-8a3a-472c-90f9-f731cefa37e6)

Is there a better way to be doing this?
