项目作者: Bielma

项目描述 :
Blog de actividades: Seminario de Sistemas Operativos de red
高级语言: JavaScript
项目地址: git://github.com/Bielma/sor.git
创建时间: 2020-10-17T19:25:44Z
项目社区:https://github.com/Bielma/sor

开源协议:MIT License

下载


Screen Shot

Prerequisites

  • Node (I recommend using v8.2.0 or higher)
  • Gatsby CLI

Install

  1. # Make sure that you have the Gatsby CLI program installed
  2. npm install --global gatsby-cli
  3. # run from your CLI
  4. gatsby new gatsby-example-blog https://github.com/bielma/sor

In gatsby-config.js you need to add configuration for your Cosmic Bucket

  1. {
  2. resolve: 'gatsby-source-cosmicjs',
  3. options: {
  4. bucketSlug: '', /* Find this in Your Bucket > Settings > Basic Settings after logging in at https://app.cosmicjs.com/login */
  5. objectTypes: ['posts', 'settings'], /* Object types to fetch */
  6. apiAccess: {
  7. read_key: '', /* Find this in Your Bucket > Settings > API Access after logging in at https://app.cosmicjs.com/login */
  8. },
  9. localMedia: true /* Optional. If you want to enable local image for Gatsby Image */
  10. }
  11. },

Then

  1. # Then you can run it by
  2. cd gatsby-example-blog
  3. npm run develop