Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eggheadio/gatsby-theme-egghead-blog

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eggheadio/gatsby-theme-egghead-blog

This is a theme for egghead content creator blogs

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
5
Weekly downloads
 
Created
Source

gatsby-theme-egghead-blog

This is a theme version of our gatsby-starter-egghead-blog.

Using the theme

Themes are in development so we have to use themes with __expetimentalTheme like this in our gatsby-config.js:

// gatsby-config.js
module.exports = {
  __experimentalThemes: ['gatsby-theme-egghead-blog'],
}

Now you will get all the functionality in your blog with a gatsby-config.js file and a content/ directory.

Your example project will look like this:

content/
  blog/
    post1/
      index.md
    post2/
      index.md
    post3/
      index.md
gatsby-config.js
package.json

Override theme components (Component Shadowing)

To override a theme component, you will need to add src/gatsby-theme-egghead-blog. You may override anything in the gatsby-theme-egghead-blog/src directory.

For example, if you would like to override the default Header component:

// src/gatsby-theme-egghead-blog/Header.js
import React from 'react'

class Header extends React.Component {
    render(){
        return (
            <div>hello egghead</div>
            )
    }
}

export default Header

Now "hello egghead" will be rendered anywhere the old Header component was render.

Keywords

FAQs

Package last updated on 21 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc