Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

Gatsby Theme Drupal Markdown Post

Single purpose theme that displays Markdown post data from Drupal in Gatsby with limited configuration. Uses the gatsby-remark-drupal plugin for markdown and image preprocessing.

Requires enabling the Gatsby Markdown Post module on your Drupal site.


npm install --save gatsby-theme-drupal-markdown-post gatsby-source-drupal

This theme has gatsby-source-drupal as a peer dependency - if you aren’t already using that plugin you’ll need to install and configure it.

How to use

// In your gatsby-config.js
module.exports = {
  plugins: [
      resolve: `gatsby-theme-drupal-markdown-post`,
      options: {
        basePath: `/posts`, // Optional, defaults to `/`
      resolve: `gatsby-source-drupal`, // Configure gatsby-source-drupal as needed
      options: {
        baseUrl: `https://live-contentacms.pantheonsite.io/`,

Theming and Component Shadowing

This theme intentionally does not include styling so that it can be easily overridden and used with any prefered styling approach. You may find it helpful to shadow some or all of the following components provided by this theme:

  • DrupalMarkdownPost
  • DrupalMarkdownPostList
  • Layout
© 2023 Gatsby, Inc.