Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/draftbox-co/gatsby-attila-theme-starter
A Gatsby starter for creating blogs from headless Ghost CMS.
https://github.com/draftbox-co/gatsby-attila-theme-starter
attila blogging draftbox gatsby gatsby-starter gatsby-theme gatsbyjs react static-site
Last synced: 26 days ago
JSON representation
A Gatsby starter for creating blogs from headless Ghost CMS.
- Host: GitHub
- URL: https://github.com/draftbox-co/gatsby-attila-theme-starter
- Owner: draftbox-co
- License: mit
- Created: 2020-03-11T12:45:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T20:15:10.000Z (about 1 year ago)
- Last Synced: 2023-12-15T22:13:29.754Z (about 1 year ago)
- Topics: attila, blogging, draftbox, gatsby, gatsby-starter, gatsby-theme, gatsbyjs, react, static-site
- Language: JavaScript
- Homepage: https://ghost-attila.draftbox.co/
- Size: 768 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Draftbox](https://res.cloudinary.com/thinkcdnimages/image/upload/v1589291053/Draftbox/draftbox-for-github.svg)](https://draftbox.co)
# gatsby-starter-try-ghost
A Gatsby starter for creating blogs from headless Ghost CMS.
Turn your Ghost blog into a lightning fast static website. This Gatsby theme is a front-end replacement of the Ghost Handlebars engine featuring the standard Ghost Casper skin and functionality. All content is sourced from a headless Ghost CMS.
> This starter is being used at [Draftbox](https://draftbox.co). Get lightning fast, secure front-end for your WordPress or Ghost blog, in 5 minutes or less, without coding. For our fellow devs, we also provide code export feature.
## Demo
>Play with the [Demo](https://ghost-attila-preview.draftbox.co/) to get a first impression.
Β
## Features
- Ghost Casper skin and functionality
- SEO optimized
- Fully responsive
- Gatsby images
- Styled 404 page
- RSS Feed
- AMP Pages
- Sitemap
- Contact Form
- Subscribe Form
- Social Sharing
- Google Analytics Integration
- Segment Integration
- Disqus Integration
- Composable and extensible## Getting Started
1. Install this starter by running
```bash
gatsby new try-ghost https://github.com/draftbox-co/gatsby-attila-theme-starter
```2. Change directory
```bash
cd try-ghost
```3. Run
```bash
gatsby develop
```
and visit your site at `http://localhost:8000`.## π§ What's inside?
A quick look at the top-level files and directories you'll see in a Gatsby project.
.
βββ node_modules
βββ static
βββ .gitignore
βββ gatsby-config.js
βββ yarn.lock
βββ package.json
βββ README.md1. **`/node_modules`**: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.
2. **`/static`**: This directory will contain all of the static files required by theme such as `favicon`, `logo` and `robot.txt`.
3. **`.gitignore`**: This file tells git which files it should not track / not maintain a version history for.
4. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins youβd like to include, etc. (Check out the [config docs](https://www.gatsbyjs.org/docs/gatsby-config/) for more detail).
5. **`yarn.lock`** (See `yarn.lock` below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(You wonβt change this file directly).**
6. **`package.json`**: A manifest file for Node.js projects, which includes things like metadata (the projectβs name, author, etc). This manifest is how npm knows which packages to install for your project.
7. **`README.md`**: A text file containing useful reference information about your project.
## Configure
```js
//siteConfig.js
module.exports = {
siteUrl: `https://your-blog.com`, // Do not include a trailing slash!
postsPerPage: 12, //for future use
siteTitleMeta: `Gatsby Starter Ghost CMS`, // This allows an alternative site title for meta data for pages.
siteDescriptionMeta: `Gastby Starter with Ghost CMS and Casper Skin`, // This allows an site description for meta data for pages.
shareImageWidth: 1000, // Change to the width of your default share image
shareImageHeight: 523, // Change to the height of your default share image
shortTitle: `Ghost`, // Used for App manifest e.g. Mobile Home Screen
siteIcon: `favicon.png`, // Logo in /static dir used for SEO, RSS, and App manifest
backgroundColor: `#e9e9e9`, // Used for Offline Manifest
themeColor: `#15171A`, // Used for Offline Manifest
}
```In the configuration shown above, the most important fields to be changed are `siteUrl`, `siteTitleMeta` and `siteDescriptionMeta`. Update at least those to fit your needs.
## Ghost Content API keys
All content is sourced from a Ghost CMS. If you don't customize the file `.ghost.json` content is fetched from the demo location at `https://cms.gotsby.org`. Surely you want to source your own content. Change the keys to match your own Ghost CMS Content API keys:
```bash
{
"development": {
"apiUrl": "http://localhost:2368",
"contentApiKey": "9fccdb0e4ea5b572e2e5b92942"
},
"production": {
"apiUrl": "http://localhost:2368",
"contentApiKey": "9fccdb0e4ea5b572e2e5b92942"
}
}
```## Deploy
```bash
gatsby build
```After completion of the build process your static site can be found in the `public/` folder. Copy those files over to your webserver.
## Optimizing
You can disable the default Ghost Handlebars theme front-end by enabling the `Make this site private` flag within your Ghost settings. This enables password protection in front of the Ghost install and sets `` so your Gatsby front-end becomes the source of truth for SEO.
## Authors
- Arun Priyadarshi ([@Gunnerforlife](https://github.com/Gunnerforlife)) β [Draftbox](https://draftbox.co)
- Keyur Raval ([@thandaanda](https://github.com/thandaanda)) β [Draftbox](https://draftbox.co)
- Shyam Lohar ([@shyamlohar](https://github.com/shyamlohar)) β [Draftbox](https://draftbox.co)
- Tanmay Desai ([@tanmaydesai89](https://github.com/tanmaydesai89)) β [Draftbox](https://draftbox.co)## Contributions
PRs are welcome! Consider contributing to this project if you are missing feature that is also useful for others.# Copyright & License
Copyright (c) 2020 [Draftbox](https://draftbox.co) - Released under the [MIT license](LICENSE).