Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Preview
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Mar 16, 2018
1 parent 51caf7b commit 67e9003
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/middleman_dato/middleman_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MiddlemanExtension < ::Middleman::Extension
option :token, ENV['DATO_API_TOKEN'], 'Site API token'
option :api_base_url, 'https://site-api.datocms.com', 'Site API host'
option :live_reload, true, 'Live reload of content coming from DatoCMS'
option :draft_mode, false, 'Show draft (unpublished) versions of your content'
option :preview, false, 'Show latest (unpublished) version of your content'

option :base_url, nil, 'Website base URL (deprecated)'
option :domain, nil, 'Site domain (deprecated)'
Expand All @@ -29,7 +29,7 @@ def initialize(app, options_hash = {}, &block)

@loader = loader = Dato::Local::Loader.new(
client,
options_hash[:draft_mode]
options_hash[:preview]
)

@loader.load
Expand Down

0 comments on commit 67e9003

Please sign in to comment.