All Projects → daviddarnes → Netlify Plugin Ghost Markdown

daviddarnes / Netlify Plugin Ghost Markdown

Licence: mit
Returns Ghost content as markdown files for static site generators like Jekyll to consume.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Netlify Plugin Ghost Markdown

Hospitalrun.io
HospitalRun website
Stars: ✭ 109 (+136.96%)
Mutual labels:  netlify, jekyll
Jamstackthemes
A list of themes and starters for JAMstack sites.
Stars: ✭ 298 (+547.83%)
Mutual labels:  netlify, jekyll
Gray Matter
Contributing Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Stars: ✭ 2,105 (+4476.09%)
Mutual labels:  netlify, markdown
Jekyll Spaceship
🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
Stars: ✭ 196 (+326.09%)
Mutual labels:  jekyll, markdown
Jekflix Template
A Jekyll theme inspired by Netflix. 🎬
Stars: ✭ 504 (+995.65%)
Mutual labels:  netlify, jekyll
Starter Academic
🎓 Easily create a beautiful academic résumé or educational website using Hugo, GitHub, and Netlify
Stars: ✭ 1,158 (+2417.39%)
Mutual labels:  netlify, markdown
Emacs Easy Hugo
Emacs major mode for managing hugo
Stars: ✭ 235 (+410.87%)
Mutual labels:  netlify, markdown
Jokecamp.com
personal blog and website
Stars: ✭ 79 (+71.74%)
Mutual labels:  jekyll, markdown
Alembic
⚗️ A Jekyll boilerplate theme designed to be a starting point for any Jekyll website
Stars: ✭ 501 (+989.13%)
Mutual labels:  netlify, jekyll
Made Mistakes Jekyll
Source for my website and blog (Jekyll + Gulp + Netlify)
Stars: ✭ 436 (+847.83%)
Mutual labels:  netlify, jekyll
Awesome Static Hosting And Cms
A collection of awesome static hosting & CMS providers
Stars: ✭ 163 (+254.35%)
Mutual labels:  jekyll, ghost
Memo
📓 Memo Life For You
Stars: ✭ 771 (+1576.09%)
Mutual labels:  jekyll, markdown
Jekyll
🌐 Jekyll is a blog-aware static site generator in Ruby
Stars: ✭ 43,803 (+95123.91%)
Mutual labels:  jekyll, markdown
Gatsby Advanced Starter
A high performance skeleton starter for GatsbyJS that focuses on SEO/Social features/development environment.
Stars: ✭ 1,224 (+2560.87%)
Mutual labels:  netlify, markdown
Md Cv
markdown cv / résumé built with jekyll
Stars: ✭ 96 (+108.7%)
Mutual labels:  jekyll, markdown
Eleventy Starter Ghost
A starter template to build websites with Ghost & Eleventy
Stars: ✭ 187 (+306.52%)
Mutual labels:  netlify, ghost
Cv
A resume template written in Markdown,Yaml JSON auto generates github-pages website & PDF by Jekyll. 在线简历生成模板(超高兼容可导PDF)
Stars: ✭ 61 (+32.61%)
Mutual labels:  jekyll, markdown
Glim
Static site generator which is semi-compatible with Jekyll
Stars: ✭ 76 (+65.22%)
Mutual labels:  jekyll, markdown
Jekyll Klise
🏖 Klisé is a minimalist Jekyll theme for running a personal site or blog, light & dark mode support. (https://klise.now.sh)
Stars: ✭ 312 (+578.26%)
Mutual labels:  netlify, jekyll
Gatsby Starter Ghost
A starter template to build lightning fast websites with Ghost & Gatsby
Stars: ✭ 752 (+1534.78%)
Mutual labels:  netlify, ghost

Netlify Ghost Markdown Build Plugin

npm version badge

This plugin generates posts, pages, tag pages and author pages from a Ghost publication as markdown files, using the Ghost Content API. In addition it will copy images from the Ghost publication into a local assets directory. Pages, posts, tag pages, author pages and images will be generated on the onPreBuild event in the Netlify deployment cycle, this is to ensure the files are present before an actual build occurs.

Prerequisites

Before you can use this package you'll need a Netlify project that can consume markdown files and images. This package was built with Jekyll in mind, however in theory it should work with any static site generator ✨. Additionally you'll need the Netlify CLI tool installed and Build Plugins Beta enabled.

Installation

To install, add the following lines to your netlify.toml file:

[[plugins]]
package = "netlify-plugin-ghost-markdown"

   [plugins.inputs]
   ghostURL = "https://YOURGHOST.URL"
   ghostKey = "YOURGHOSTKEY"

Note: The [[plugins]] line is required for each plugin, even if you have other plugins in your netlify.toml file already.

You'll need to get a Ghost Content API URL and key to authenticate with your Ghost publication. Please see the Ghost documentation for more info.

Psst, test credentials can be "borrowed" from here: https://ghost.org/docs/api/v3/javascript/content/#working-example

Configuration

[[plugins]]
package = "netlify-plugin-ghost-markdown"

  [plugins.inputs]
  # Required: Your Ghost domain, must not end in a trailing slash
  ghostURL = "https://YOURGHOST.URL"

  # Required: Content API key from the Integrations screen in Ghost Admin
  ghostKey = "YOURGHOSTKEY"

  # Optional: Directory containing image assets (assets/images by default)
  assetsDir = "./assets/images/"

  # Optional: Directory containing pages (site root by default)
  pagesDir = "./"

  # Optional: Directory containing posts (_posts/ directory by default)
  postsDir = "./_posts/"

  # Optional: Output tag pages (false by default)
  tagPages = false

  # Optional: Output author pages (false by default)
  authorPages = false

  # Optional: Directory containing tags (tag/ directory by default)
  tagsDir = "tag/"

  # Optional: Directory containing authors (author/ directory by default)
  authorsDir = "author/"

  # Optional: Layout value for pages (page by default)
  pageLayout = "page"

  # Optional: Layout value for posts (post by default)
  postsLayout = "post"

  # Optional: Layout value for pages (page by default)
  tagsLayout = "tag"

  # Optional: Layout value for posts (post by default)
  authorsLayout = "author"

  # Optional: Date prefix on post file names (true by default)
  postDatePrefix = true

  # Optional: File path and name for a timestamp caching file (_data/ghostMarkdownCache.json by default)
  cacheFile = "./_data/ghostMarkdownCache.json"

Currently posts follow the Jekyll markdown file name format. Set the postDatePrefix to false to use the post slug as the file name

Development

Testing inside the project is proving difficult at the minute. Currently requesting support on a practical method here

Currently you need clone this project and copy the plugin into an example site, copy the package.json into the root of the project, and then run it like a custom build plugin. You can download the demo site here if you need it as a quick starting point. Don't forget to install the dependencies and run it using Netlify CLI!

License

Released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].