Skip to content

Instantly share code, notes, and snippets.

@kcmr
Created April 20, 2019 20:09
Show Gist options
  • Save kcmr/476d47270315463e3decd79ec931fc82 to your computer and use it in GitHub Desktop.
Save kcmr/476d47270315463e3decd79ec931fc82 to your computer and use it in GitHub Desktop.

Esto es un gist de prueba.

module.exports.onCreateNode = ({ node, actions }) => {
  const { createNodeField } = actions

  if (node.internal.type === 'MarkdownRemark') {
    const slug = path.basename(node.fileAbsolutePath, '.md')

    createNodeField({
      node,
      name: 'slug',
      value: slug,
    })
  }
}

Un encabezado de nivel 2

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum"

  • list item
  • second list item
  • third list item

Lorem ipsum dolor sit amet consectetuer...

Lorem ipsum patatas añsldfkj asdñfla sdjflñas dfñlaskfdj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment