Skip to content
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
site
theme
.gitignore
README.md
package.json
yarn.lock

README.md

gatsby-theme-CoPo

Gatsby theme CoPo (Code is Poetry). See a demo.

Install

npm i --save gatsby react react-dom gatsby-theme-copo

or

yarn add gatsby react react-dom gatsby-theme-copo

Usage

Project structure

Create the following project structure for your website.

your-website
├── src
│   ├── pages
│   │   └── yourPage.mdx
|   ├── posts
│   │   └── myFirstPost.mdx
├── gatsby-config.js
└── package.json

Configuration

In the gatsby-config.js file add the following changes

module.exports = {
  siteMetadata: {
    title: '', // Site Title
    subtitle: '', // Site Subtitle
    navigationLinks: 
    [
        {
            text: 'Home',
            link: '/'
        },
        {
            text: 'Page',
            link: '/yourPage'
        }
    ], // Navigation links of the website,
    language: '' // Language of the website
    
  },
  plugins: [
    {
      resolve: 'gatsby-theme-copo',
      
    },
  ],
};

Blog posts

The theme supports creating blog posts using markdown files. You can start adding your first post by creating a file at src/posts/my-first-post.md with the following content.

---

title: My first post <!-- Title of the post -->
date: '2019-07-31' <!-- Date of the post in which it is published -->

---

Your content comes here
You can’t perform that action at this time.