Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gatsby-theme-blogmic with all npm packages installed. Try it out:

var gatsbyThemeBlogmic = require("gatsby-theme-blogmic")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gatsby-theme-blogmic v0.2.8

Welcome to gatsby-theme-blogmic 👋

Version Twitter: 2600hz

Blogmic - Yet another simple blog theme for gatsby using Prismic.io CMS

🏠 Homepage

Install dependencies

yarn add react-helmet gatsby-source-prismic gatsby-source-filesystem gatsby-plugin-react-helmet gatsby-plugin-sharp gatsby-transformer-sharp gatsby-transformer-remark gatsby-remark-relative-images gatsby-remark-images gatsby-remark-lazy-load gatsby-remark-responsive-iframe gatsby-remark-prismjs gatsby-remark-copy-linked-files gatsby-remark-smartypants prismjs gatsby-image moment prop-types @sekmet/react-structured-data @sindresorhus/slugify

Install theme

yarn add gatsby-theme-blogmic

OR

npm install gatsby-theme-blogmic

Usage

Add your Prismic Access Token as a enviroment variable

GATSBY_CMS_REPO_NAME=`YOUR-REPOSITORY-NAME`
GATSBY_CMS_API_KEY=`YOUR-ACCESS-TOKEN`

Add the plugin options in your gatsby-config.js plugins section.

    plugins: [
        {
            resolve: "gatsby-theme-blogmic",
            options: {
                basePath: "/blog",
                articlePath: false,
                tagPath: '/tag',
                blogTagline: 'My Blogmic Articles',
                readmoreBtnlabel: 'Read more',
                siteMetadata: false,
                metaTitleTpl: 'My Gatsby Blogmic - Open4G Media',
                metaDescriptionTpl: 'Gatsby is a free and open source framework based on React that helps developers build blazing fast websites and apps',
            },
        },
    ],

Author

👤 Carlos Guimaraes

Show your support

Give a ⭐️ if this project helped you!

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free