Skip to content

vilemj-Viclick/sesicz2020

Repository files navigation

GitHub license Netlify Status Stack Overflow Live demo

Gatsby Starter Kontent Lumen

Lumen is a minimal, lightweight and mobile-first starter for creating blogs using Gatsby.

This is an edited clone of gatsby-starter-lumen and gatsby-v2-starter-lumen migrated for getting content from headless CMS Kontent.

Screenshot

Page Screenshot

Features

  • Content from Kontent headless CMS.
  • Lost Grid (peterramsing/lost).
  • Beautiful typography inspired by matejlatin/Gutenberg.
  • Mobile-First approach in development.
  • Stylesheet built using SASS and BEM-Style naming.
  • Syntax highlighting in code blocks.
  • Sidebar menu built using a configuration block.
  • Archive organized by tags and categories.
  • Automatic Sitemap generation.
  • Google Analytics support.

Getting Started

Install this starter (assuming Gatsby is installed) by running from your CLI: gatsby new gatsby-starter-kontent-lumen https://github.com/kentico/gatsby-starter-kontent-lumen

Import sample data and content structure from the source project into your project using Kontent Backup Manager (CLI)

  1. Create a free (target) project in app.kontent.ai
  2. Get a projectId and a CM API key of the newly created (target) project
  3. Install Kontent Backup Manager globally: npm i wip-backup-manager -g
  4. Restore project from kontent.backup.zip file using command: kbm --action=restore --apiKey=<CM API key> --projectId=<projectId> --zipFilename=kontent-backup
  5. Use target projectId in the gatsby-config.json
  6. Publish all the imported items in the kontent.ai web UI
Alternatively, you can use the Template Manager (web UI) for importing the content.

Import sample data and content structure from the source project into your project using the Template Manager (web UI)

  1. Create a free project in app.kontent.ai
  2. Get a projectId and a CM API key of the newly created (target) project
  3. Go to Kontent Template Manager and enter copied projectId and CM API key into Target Project section
  4. Into Source Project section copy 00676a8d-358c-0084-f2f2-33ed466c480a projectId and en-US and cs-CZ language codenames
  5. Click on Prepare import data
  6. Click on Proceed with import
  7. Use target projectId in the gatsby-config.json
  8. Publish all the imported items in the kontent.ai web UI

Running in Development

gatsby develop

Building

gatsby build

Production Deploy

Before deploying to production add own google analytics trackingId to gatsby-config.js.

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.

Updating the content in the source project

For updating sample data edit the source project 00676a8d-358c-0084-f2f2-33ed466c480a and update backup package which is part of this repo using Kontent Backup Manager

kbm --action=backup --apiKey=<Management API key from project settings> --projectId=00676a8d-358c-0084-f2f2-33ed466c480a --zipFilename=kontent-backup

Folder Structure

└── src
    ├── assets
    │   ├── fonts
    │   │   └── fontello-771c82e0
    │   │       ├── css
    │   │       └── font
    │   └── scss
    │       ├── base
    │       ├── mixins
    │       └── pages
    ├── components
    │   ├── Article
    │   ├── ArticleTemplateDetails
    │   ├── CategoryTemplateDetails
    │   ├── Links
    │   ├── Layout
    │   ├── Menu
    │   ├── PageTemplateDetails
    │   ├── Sidebar
    │   └── TagTemplateDetails
    ├── pages
    └── templates

Analytics

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published