# Search and Load More Posts

Galerie uses the Ghost Content API (opens new window) to load more articles by pressing the corresponding button and to make the search work, because of this it is very important that you don't forget to configure a special key that the Ghost Content API needs to work properly.

# Configure Content API Key

To generate and add the Content API Key follow these steps:

  1. In the Ghost Admin head to the Integrations page and press the Add custom integration button. You can name it as you like but I recommend that you name it Content API Key.

  2. Copy the Content API Key value.

Content Key

  1. Then head to the Code injection page and paste the following code into the Site Header block:
<script>
  const ghostApiKey = 'YOUR_CONTENT_API_KEY_GOES_HERE';
</script>
  1. Replace YOUR_CONTENT_API_KEY_GOES_HERE with the Content API Key that you got in step 2. Please keep the single quotes.

  2. Save your changes.

WARNING

If you do not configure the Content API Key, no more articles can be loaded and the search will not work, also the following error message will be displayed in the browser console:

Please make sure to setup the Content API custom integration in the Ghost Admin first, see the documentation for more information.