54

GitHub - alxshelepenok/gatsby-starter-lumen: A minimal, lightweight and mobile-f...

 4 years ago
source link: https://github.com/alxshelepenok/gatsby-starter-lumen
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Lumen
Lumen

A minimal, lightweight and mobile-first starter for creating blogs uses Gatsby.

68747470733a2f2f636972636c6563692e636f6d2f67682f616c787368656c6570656e6f6b2f6761747362792d737461727465722d6c756d656e2e7376673f7374796c653d737667 68747470733a2f2f636f6465636f762e696f2f67682f616c787368656c6570656e6f6b2f6761747362792d737461727465722d6c756d656e2f6272616e63682f6d61737465722f67726170682f62616467652e737667 68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6637653237626233613238613436613662313334353361303238303163356339 68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f616c787368656c6570656e6f6b2f6761747362792d737461727465722d6c756d656e2e737667 68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246616c787368656c6570656e6f6b2532466761747362792d737461727465722d6c756d656e2e7376673f747970653d736869656c64

Table of contents

Features

Web Performance Tests

Quick Start

Create a Gatsby site

Use the Gatsby CLI to create a new site, specifying the Lumen starter.

# Create a new Gatsby site using the Lumen starter
gatsby new blog https://github.com/alxshelepenok/gatsby-starter-lumen

Start Developing

Navigate into your new site’s directory and start it up.

cd blog
gatsby develop

Open the source code and start editing!

Your site is now running at http://localhost:8000!

Note: You'll also see a second link: http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

Open the blog directory in your code editor of choice and edit src/templates/index-template.js. Save your changes and the browser will update in real time!

Deploy with Netlify

Netlify CMS can run in any frontend web environment, but the quickest way to try it out is by running it on a pre-configured starter site with Netlify. Use the button below to build and deploy your own copy of the repository:

Deploy to Netlify

After clicking that button, you’ll authenticate with GitHub and choose a repository name. Netlify will then automatically create a repository in your GitHub account with a copy of the files from the template. Next, it will build and deploy the new site on Netlify, bringing you to the site dashboard when the build is complete. Next, you’ll need to set up Netlify’s Identity service to authorize users to log in to the CMS.

Deploy to Github Pages

To deploy to github pages, simply do the following:

  • Ensure that your package.json file correctly reflects where this repo lives
  • Change the pathPrefix in your config.js
  • Run the standard deploy command
npm run deploy

Access Locally

$ git clone https://github.com/[GITHUB_USERNAME]/[REPO_NAME].git
$ cd [REPO_NAME]
$ yarn
$ npm run develop

To test the CMS locally, you'll need run a production build of the site:

$ npm run build
$ gatsby serve

Folder Structure

└── content
    ├── pages
    └── posts
└── static
    ├── admin
    └── media
└── src
    ├── assets
    │   └── scss
    │       ├── base
    │       └── mixins
    ├── cms
    │   └── preview-templates
    ├── components
    │   ├── Feed
    │   ├── Icon
    │   ├── Layout
    │   ├── Page
    │   ├── Pagination
    │   ├── Post
    │   │   ├── Author
    │   │   ├── Comments
    │   │   ├── Content
    │   │   ├── Meta
    │   │   └── Tags
    │   └── Sidebar
    │       ├── Author
    │       ├── Contacts
    │       ├── Copyright
    │       └── Menu
    ├── constants
    ├── templates
    └── utils

Related

Statinamic port by Khoa Nguyen

Contributors

Thanks goes to these wonderful people!

vzhou842 abisz mariolopjr ihororlovskyi timbroder vinnymac vzhou842 abisz mariolopjr ihororlovskyi timbroder vinnymac yodahuang axelclark BigTony666 ybbarng marktani concreted yodahuang axelclark BigTony666 ybbarng marktani concreted chmac charandas marcelabomfim zollillo codejet reed-jones chmac charandas marcelabomfim zollillo codejet reed-jones stigrune swapnilmishra vvasiloud vstoms wichopy yairmark stigrune swapnilmishra vvasiloud vstoms wichopy yairmark

Backers Backers on Open Collective

Thank you to all our backers!

68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c756d656e2f6261636b6572732e7376673f77696474683d383930

Sponsors Sponsors on Open Collective

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c756d656e2f73706f6e736f722f302f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c756d656e2f73706f6e736f722f312f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c756d656e2f73706f6e736f722f322f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c756d656e2f73706f6e736f722f332f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c756d656e2f73706f6e736f722f342f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c756d656e2f73706f6e736f722f352f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c756d656e2f73706f6e736f722f362f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c756d656e2f73706f6e736f722f372f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c756d656e2f73706f6e736f722f382f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c756d656e2f73706f6e736f722f392f6176617461722e737667

Credits

Nature graphic by Anna Bearne from Noun Project is licensed under CC BY 3.0.

License

The MIT License (MIT)

Copyright (c) 2016-2019 Alexander Shelepenok

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK