All Projects → draftbox-co → gatsby-wordpress-libre-starter

draftbox-co / gatsby-wordpress-libre-starter

Licence: MIT license
A Gatsby starter for creating blogs from headless WordPress CMS.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gatsby-wordpress-libre-starter

gatsby-ghost-novela-starter
A Gatsby starter for creating blogs from headless Ghost CMS.
Stars: ✭ 31 (+34.78%)
Mutual labels:  blogging, gatsby, gatsby-starter
gatsby-attila-theme-ghost
A Gatsby theme plugin for creating blogs from headless Ghost CMS.
Stars: ✭ 16 (-30.43%)
Mutual labels:  blogging, gatsby
gatsby-generator
🎰 Generate Gatsby Starters in Seconds
Stars: ✭ 23 (+0%)
Mutual labels:  gatsby, gatsby-starter
gatsby-blog-mdx
A ready-to-use, customizable personal blog with minimalist design
Stars: ✭ 61 (+165.22%)
Mutual labels:  blogging, gatsby
gatsby-starter-multiverse
Gatsby.js V2 starter template based on multiverse by HTML5 UP
Stars: ✭ 14 (-39.13%)
Mutual labels:  gatsby, gatsby-starter
gatsby-starter-leaflet
🍃 A Gatsby starter with Leafet to quickly build React apps with a map!
Stars: ✭ 108 (+369.57%)
Mutual labels:  gatsby, gatsby-starter
gatsby-boilerplate
An awesome boilerplate to start projects in Gatsby considering as starter point the development experience of Electric.js 🔥⚡⚡
Stars: ✭ 28 (+21.74%)
Mutual labels:  gatsby, gatsby-starter
Gatsby Theme Try Ghost
A Gatsby theme to build flaring fast blogs from headless Ghost CMS
Stars: ✭ 88 (+282.61%)
Mutual labels:  blogging, gatsby
Blog
My blog created with React, Gatsby & Markdown
Stars: ✭ 29 (+26.09%)
Mutual labels:  blogging, gatsby
Gatsby Ghost Balsa Starter
A Gatsby starter for creating blogs from headless Ghost CMS.
Stars: ✭ 17 (-26.09%)
Mutual labels:  blogging, gatsby
gatsby-starter-portfolio-bella
A bright single-page portfolio starter for Gatsby powered by Prismic.io. The target audience are designers and photographers.
Stars: ✭ 125 (+443.48%)
Mutual labels:  gatsby, gatsby-starter
gatsby-starter-apple
🍎 Gatsby blog starter kit with beautiful responsive design
Stars: ✭ 88 (+282.61%)
Mutual labels:  gatsby, gatsby-starter
gatsby-starter-paradigmshift
Gatsby.js V2 starter template based on Paradigm Shift by HTML5 UP
Stars: ✭ 16 (-30.43%)
Mutual labels:  gatsby, gatsby-starter
gatsby-starter-wordpress-graphql
A bare-bones Gatsby starter powered WordPress and WPGraphQL!
Stars: ✭ 62 (+169.57%)
Mutual labels:  gatsby, gatsby-starter
gatsby-starter-rocketdocs
The documentation starter you were looking for ⚡️
Stars: ✭ 215 (+834.78%)
Mutual labels:  gatsby, gatsby-starter
gatsby-starter-antoine
My opinionated Gatsby.js starter
Stars: ✭ 17 (-26.09%)
Mutual labels:  gatsby, gatsby-starter
gatsby-starter-docz
📝 Gatsby starter with Docz and a blog for your documentation
Stars: ✭ 87 (+278.26%)
Mutual labels:  gatsby, gatsby-starter
gatsby-starter-i18n-bulma
A gatsby multilanguage template with bulma and i18n: it is a work in progress...
Stars: ✭ 22 (-4.35%)
Mutual labels:  gatsby, gatsby-starter
Gatsby Starter Gcn
A starter template to build amazing static websites with Gatsby, Contentful and Netlify
Stars: ✭ 488 (+2021.74%)
Mutual labels:  blogging, gatsby
Gatsby Starter Try Ghost
Publish flaring fast blogs with Gatsby and Ghost
Stars: ✭ 137 (+495.65%)
Mutual labels:  blogging, gatsby

Draftbox

gatsby-wordpress-theme-libre

A Gatsby theme plugin for creating blogs from headless WordPress CMS.

Turn your WordPress blog into a lightning fast static website. This Gatsby theme is a frontend replacement of the WordPress engine featuring the standard Libre 2 skin and functionality. All content is sourced from a headless WordPress CMS.

This starter is being used at Draftbox. Get lightning fast, secure front-end for your WordPress or Ghost blog, in 5 minutes or less, without coding. For our fellow devs, we also provide code export feature.

Demo

Play with the Demo to get a first impression.

Features

  • WordPress Libre 2 skin
  • SEO optimized
  • Fully responsive
  • Gatsby images
  • Styled 404 page
  • RSS Feed
  • AMP Pages
  • Sitemap
  • Contact Form
  • Subscribe Form
  • Social Sharing
  • Google Analytics Integration
  • Segment Integration
  • Disqus Integration
  • Composable and extensible

Getting Started

  1. Install this starter by running

    gatsby new wp-starter https://github.com/draftbox-co/gatsby-wordpress-libre-starter
  2. Change directory

    cd wp-starter
  3. Run

    gatsby develop

    and visit your site at http://localhost:8000.

🧐 What's inside?

A quick look at the top-level files and directories you'll see in a Gatsby project.

.
├── node_modules
├── static
├── .gitignore
├── gatsby-config.js
├── yarn.lock
├── package.json
├── siteConfig.js
├── .wordpress-config.json
└── README.md
  1. /node_modules: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.

  2. /static: This directory will contain all of the static files required by theme such as favicon, logo and robot.txt.

  3. .gitignore: This file tells git which files it should not track / not maintain a version history for.

  4. gatsby-config.js: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the config docs for more detail).

  5. yarn.lock (See yarn.lock below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. (You won’t change this file directly).

  6. siteConfig: A config file for your website, which includes things like website url, title, Background color, theme color etc.

  7. .wordpress-config.json: A config file containing config required to fetch data from wordpress such as url and content keys etc.

  8. README.md: A text file containing useful reference information about your project.

Configure

//siteConfig.js
module.exports = {
  siteUrl: "https://wp-libre-preview.draftbox.co", // Site domain. Do not include a trailing slash!

  postsPerPage: 10, // Number of posts shown on paginated pages (changes this requires sometimes to delete the cache)

  siteTitleMeta: "Built with Draftbox", // This allows an alternative site title for meta data for pages.
  siteDescriptionMeta: "New-age blogging platform", // This allows an alternative site description for meta data for pages.

  shareImageWidth: 1000, // Change to the width of your default share image
  shareImageHeight: 523, // Change to the height of your default share image

  shortTitle: "Built with Draftbox", // Used for App manifest e.g. Mobile Home Screen
  siteIcon: "favicon.png", // Logo in /static dir used for SEO, RSS, and App manifest
  backgroundColor: "#e9e9e9", // Used for Offline Manifest
  themeColor: "#15171A", // Used for Offline Manifest
  apiUrl: "https://wordpress.theasdfghjkl.com",
  subscribeWidget: {
    title: "Subscribe to Draftbox",
    helpText: "Get the latest posts delivered right to your inbox.",
    successMessage: "Thanks for subscribing to Draftbox.",
  },
  header: {
    navigation: [
      {
        label: "Home",
        url: "https://wp-libre-preview.draftbox.co/",
      },
      {
        label: "Contact",
        url: "https://wp-libre-preview.draftbox.co/contact",
      },
    ],
  },
  footer: {
    copyright: "Built with Draftbox",
    navigation: [
      {
        label: "Home",
        url: "https://wp-libre-preview.draftbox.co/",
      },
      {
        label: "Sitemap",
        url: "https://wp-libre-preview.draftbox.co/sitemap.xml",
      },
      {
        label: "RSS",
        url: "https://wp-libre-preview.draftbox.co/rss.xml",
      },
      {
        label: "Contact",
        url: "https://wp-libre-preview.draftbox.co/contact",
      },
      {
        label: "External Link",
        url: "https://spectrum.chat/gatsby-js/themes?tab=posts",
      },
    ],
  },
  socialLinks: {
    twitter: "https://twitter.com/draftboxhq",
    facebook: "https://facebook.com/",
    instagram: "https://www.instagram.com/",
    linkedin: "https://linkedin.com/",
    github: "https://github.com/draftbox-co",
  },
  contactWidget: {
    title: "Contact Built with Draftbox",
    successMessage: "We’ll get in touch with you soon.",
  },
};

In the configuration shown above, the most important fields to be changed are siteUrl, siteTitleMeta and siteDescriptionMeta. Update at least those to fit your needs.

WordPress Content configuration

    {
        "baseUrl": "yourwordpressblog.com",
        "protocol": "https",
        "hostingWPCOM": false,
        "useACF": true,
        "includedRoutes": [
            "**/categories",
            "**/posts",
            "**/pages",
            "**/media",
            "**/tags",
            "**/taxonomies",
            "**/users"
        ]
    }

In the configuration shown above, the most important fields to be changed are baseUrl and hostingWPCOM . Update those with your configuration. example shown above works great for self hosted wordpress.

If your blog is hosted on wordpress.com you will have to add few extra keys for reference check out wordpress-source-docs.

Deploy

    gatsby build

After completion of the build process your static site can be found in the public/ folder. Copy those files over to your webserver.

Authors

Contributions

PRs are welcome! Consider contributing to this project if you are missing feature that is also useful for others.

Copyright & License

Copyright (c) 2020 Draftbox - Released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].