Using Gridsome with multiple post type

Until v0.7.17, the only way to enable multiple post type is by repeatedly registering bunch of @gridsome/source-filesystem configs on gridsome.config.js plugins value.

// gridsome.config.js

export default {
  // ...
  plugins: [
    {
      use: "@gridsome/source-filesystem",
      options: {
        typeName: "Blog",
        path: "./contents/blog/**/*.md",
      },
    },
    {
      use: "@gridsome/source-filesystem",
      options: {
        typeName: "Journal",
        path: "./contents/journal/**/*.md",
      },
    },
  ],
};