GithubHelp home page GithubHelp logo

pauliescanlon / gatsby-remark-grid-system Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 1.4 MB

A Gatsby remark plugin for responsive grid systems in markdown ๐Ÿฑ

Home Page: https://gatsby-remark-grid-system.netlify.com/

JavaScript 100.00%
gatsby gatsbyjs gatsby-plugin gatsby-remark gatsby-remark-grid-system

gatsby-remark-grid-system's Introduction

gatsby-remark-grid-system

gatsby-remark-grid-system is a plugin that creates responsive layouts from markdown files

Motivation As much as i like blogs, do they all have to be single coloum? Arguably if you're using gatsby-pugin-mdx this is not problem but... if your blog / site / app uses .md this might be worth a look.

๐Ÿ‘๏ธ Preview

๐Ÿš€ Getting started

Install

npm install @pauliescanlon/gatsby-remark-grid-system

Setup

Add gatsby-transformer-remark to your gatsby-config.js then add @pauliescanlon/gatsby-remark-grid-system as a plugin of that ๐Ÿ˜…

module.exports = {
  ...
  plugins: [
    {
      resolve: `gatsby-transformer-remark`,
      options: {
        plugins: [`@pauliescanlon/gatsby-remark-grid-system`],
      },
    },
  ],
}

Options

Option Type Reqiured Default Description
breakpoints array no [576, 768, 992, 1200] bootstrap inspired breakpoints
padding number no 16 padding applied to each col
debug boolean no false adds an outline to each col
...
plugins: [
  {
    resolve: `@pauliescanlon/gatsby-remark-grid-system`,
      options: {
        ...
     }
  },
]

๐Ÿ“ Markdown

TODO explain markdown a bit more ::: ... row ... col ...

::: div row

::: div col 12|6|7|9
   left content 1
:::

::: div col 12|6|5|3
   right content 1
:::

:::

gatsby-remark-grid-system's People

Contributors

pauliescanlon avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.