Skip to content

Instantly share code, notes, and snippets.

@pascalandy
Created September 21, 2018 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pascalandy/8a18172090f743b46e15fbff9015f4fe to your computer and use it in GitHub Desktop.
Save pascalandy/8a18172090f743b46e15fbff9015f4fe to your computer and use it in GitHub Desktop.
```
Aborting due to errexit on line 26. Exit code: 1
[2018-09-21 21:21:26] INFO Creating database backup
[2018-09-21 21:21:26] INFO Database backup written to: /var/lib/ghost/content/data/barber-avenue.ghost.2018-09-21.json
[2018-09-21 21:21:26] INFO Adding demo post.
[2018-09-21 21:21:27] INFO Rollback: Fixture posts.
[2018-09-21 21:21:27] INFO Rollback: Bring back demo post.
[2018-09-21 21:21:27] ERROR
NAME: RollbackError
CODE: SQLITE_ERROR
MESSAGE: insert into `posts` (`author_id`, `comment_id`, `created_at`, `created_by`, `feature_image`, `featured`, `html`, `id`, `meta_description`, `meta_title`, `mobiledoc`, `page`, `plaintext`, `published_by`, `slug`, `status`, `title`, `updated_at`, `updated_by`, `uuid`, `visibility`) values ('5951f5fca366002ebd5dbef7', '5ba560d7d0b33a0023e49f61', '2018-09-21 21:21:27', 1, NULL, false, '<p>Hey there! Welcome to the new Ghost editor - affectionately known as <strong>Koenig</strong>.</p><p>Koenig is a brand new writing experience within Ghost, and follows more of a rich writing experience which you''ve come to expect from the best publishing platforms. Don''t worry though! You can still use Markdown too, if that''s what you prefer.</p><p>Because there are some changes to how Ghost outputs content using its new editor, we dropped this draft post into your latest update to tell you a bit about it – and simultaneously give you a chance to preview how well your theme handles these changes. So after reading this post you should both understand how everything works, and also be able to see if there are any changes you need to make to your theme in order to upgrade to Ghost 2.0.</p><hr><h1 id="what-s-new">What''s new</h1><p>The new editor is designed to allow you have a more rich editing experience, so it''s no longer limited to just text and formatting options – but it can also handle rich media objects, called cards. You can insert a card either by clicking on the <code>+</code> button on a new line, or typing <code>/</code> on a new line to search for a particular card. </p><p>Here''s one now:</p><figure class="kg-card kg-embed-card"><blockquote class="twitter-tweet"><p lang="en" dir="ltr">Fun announcement coming this afternoon πŸ™ˆ what could it be?</p>&mdash; Ghost (@TryGhost) <a href="https://twitter.com/TryGhost/status/761119175192420352?ref_src=twsrc%5Etfw">August 4, 2016</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</figure><p>Cards are rich objects which contain content which is more than just text. To start with there are cards for things like images, markdown, html and embeds β€” but over time we''ll introduce more cards and integrations, as well as allowing you to create your own!</p><h2 id="some-examples-of-possible-future-cards">Some examples of possible future cards</h2><ul><li>A chart card to display dynamic data visualisations</li><li>A recipe card to show a pre-formatted list of ingredients and instructions</li><li>A Mailchimp card to capture new subscribers with a web form</li><li>A recommended reading card to display a dynamic suggested story based on the current user''s reading history</li></ul><p>For now, though, we''re just getting started with the basics.</p><h1 id="new-ways-to-work-with-images">New ways to work with images</h1><p>Perhaps the most notable change to how you''re used to interacting with Ghost is in the images. In Koenig, they''re both more powerful and easier to work with in the editor itself - and in the theme, they''re output slightly differently with different size options.</p><p>For instance, here''s your plain ol'' regular image:</p><figure class="kg-card kg-image-card"><img src="https://casper.ghost.org/v1.25.0/images/koenig-demo-1.jpg" class="kg-image"><figcaption>A regular size image</figcaption></figure><p>But perhaps you''ve got a striking panorama that you really want to stand out as your readers scroll down the page. In that case, you could use the new full-bleed image size which stretches right out to the edges of the screen:</p><figure class="kg-card kg-image-card kg-width-full"><img src="https://casper.ghost.org/v1.25.0/images/koenig-demo-2.jpg" class="kg-image"><figcaption>It''s wide</figcaption></figure><p>Or maybe you''re looking for something in between, which will give you just a little more size to break up the vertical rhythm of the post without dominating the entire screen. If that''s the case, you might like the breakout size:</p><figure class="kg-card kg-image-card kg-width-wide"><img src="https://casper.ghost.org/v1.25.0/images/koenig-demo-3.jpg" class="kg-image"><figcaption>It''s wider, but not widest</figcaption></figure><p>Each of these sizes can be selected from within the editor, and each will output a number of HTML classes for the theme to do styling with. </p><p>Chances are your theme will need a few small updates to take advantage of the new editor functionality. Some people might also find they need to tweak their theme layout, as the editor canvas previously output a wrapper div around its content – but no longer does. If you rely on that div for styling, you can always add it back again in your theme.</p><p>Oh, we have some nice new image captions, too :)</p><h1 id="what-else">What else?</h1><p>Well, you can still write Markdown, as mentioned. In fact you''ll find the entire previous Ghost editor <em>inside</em> this editor. If you want to use it then just go ahead and add a Markdown card and start writing like nothing changed at all:</p><p>Markdown content works just the way it always did, <strong>simply</strong> and <em>beautifully</em>.</p>
<p>of course you can embed code blocks</p><pre><code>.new-editor {
display: bock;
}</code></pre><p>or embed things from external services like YouTube...</p><figure class="kg-card kg-embed-card"><iframe width="480" height="270" src="https://www.youtube.com/embed/CfeQTuGyiqU?feature=oembed" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></figure><p>and yeah you can do full HTML if you need to, as well!</p><div style="background:#fafafa;margin-bottom:1.5em;padding:20px 50px;">
<blink>hello world</blink>
</div><p>So everything works, hopefully, just about how you would expect. It''s like the old editor, but faster, cleaner, prettier, and a whole lot more powerful.</p><h1 id="what-do-i-do-with-this-information">What do I do with this information?</h1><p>Preview this post on your site to see if it causes any issues with your theme. Click on the settings cog in the top right πŸ‘‰πŸΌ corner of the editor, then click on ''<strong>Preview</strong>'' next to the ''Post URL'' input.</p><p>If everything looks good to you then there''s nothing you need to do, you''re all set! If you spot any issues with your design, or there are some funky display issues, then you might need to make some updates to your theme based on the new editor classes being output.</p><p>Head over to the <a href="https://forum.ghost.org/t/ghost-2-0-theme-compatibility-help-support/2103">Ghost 2.0 Theme Compatibility</a> forum topic to discuss any changes and get help if needed.</p><p>That''s it!</p><p>We''re looking forward to sharing more about the new editor soon</p>', '5ba560d7d0b33a0023e49f61', NULL, NULL, '{"version":"0.3.1","atoms":[],"cards":[["hr",{}],["embed",{"url":"https://twitter.com/TryGhost/status/761119175192420352","html":"<blockquote class=\"twitter-tweet\"><p lang=\"en\" dir=\"ltr\">Fun announcement coming this afternoon πŸ™ˆ what could it be?</p>&mdash; Ghost (@TryGhost) <a href=\"https://twitter.com/TryGhost/status/761119175192420352?ref_src=twsrc%5Etfw\">August 4, 2016</a></blockquote>\n<script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>\n","type":"rich"}],["image",{"src":"https://casper.ghost.org/v1.25.0/images/koenig-demo-1.jpg","alt":"","caption":"A regular size image"}],["image",{"src":"https://casper.ghost.org/v1.25.0/images/koenig-demo-2.jpg","alt":"","cardWidth":"full","caption":"It''s wide"}],["image",{"src":"https://casper.ghost.org/v1.25.0/images/koenig-demo-3.jpg","alt":"","cardWidth":"wide","caption":"It''s wider, but not widest"}],["markdown",{"markdown":"Markdown content works just the way it always did, **simply** and *beautifully*."}],["code",{"code":".new-editor {\n\tdisplay: bock;\n}"}],["embed",{"url":"https://www.youtube.com/watch?v=CfeQTuGyiqU","html":"<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/CfeQTuGyiqU?feature=oembed\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen></iframe>","type":"video"}],["html",{"html":"<div style=\"background:#fafafa;margin-bottom:1.5em;padding:20px 50px;\">\n <blink>hello world</blink>\n</div>"}]],"markups":[["strong"],["code"],["em"],["a",["href","https://forum.ghost.org/t/ghost-2-0-theme-compatibility-help-support/2103"]]],"sections":[[1,"p",[[0,[],0,"Hey there! Welcome to the new Ghost editor - affectionately known as "],[0,[0],1,"Koenig"],[0,[],0,"."]]],[1,"p",[[0,[],0,"Koenig is a brand new writing experience within Ghost, and follows more of a rich writing experience which you''ve come to expect from the best publishing platforms. Don''t worry though! You can still use Markdown too, if that''s what you prefer."]]],[1,"p",[[0,[],0,"Because there are some changes to how Ghost outputs content using its new editor, we dropped this draft post into your latest update to tell you a bit about it – and simultaneously give you a chance to preview how well your theme handles these changes. So after reading this post you should both understand how everything works, and also be able to see if there are any changes you need to make to your theme in order to upgrade to Ghost 2.0."]]],[10,0],[1,"h1",[[0,[],0,"What''s new"]]],[1,"p",[[0,[],0,"The new editor is designed to allow you have a more rich editing experience, so it''s no longer limited to just text and formatting options – but it can also handle rich media objects, called cards. You can insert a card either by clicking on the "],[0,[1],1,"+"],[0,[],0," button on a new line, or typing "],[0,[1],1,"/"],[0,[],0," on a new line to search for a particular card. "]]],[1,"p",[[0,[],0,"Here''s one now:"]]],[10,1],[1,"p",[[0,[],0,"Cards are rich objects which contain content which is more than just text. To start with there are cards for things like images, markdown, html and embeds β€” but over time we''ll introduce more cards and integrations, as well as allowing you to create your own!"]]],[1,"h2",[[0,[],0,"Some examples of possible future cards"]]],[3,"ul",[[[0,[],0,"A chart card to display dynamic data visualisations"]],[[0,[],0,"A recipe card to show a pre-formatted list of ingredients and instructions"]],[[0,[],0,"A Mailchimp card to capture new subscribers with a web form"]],[[0,[],0,"A recommended reading card to display a dynamic suggested story based on the current user''s reading history"]]]],[1,"p",[[0,[],0,"For now, though, we''re just getting started with the basics."]]],[1,"h1",[[0,[],0,"New ways to work with images"]]],[1,"p",[[0,[],0,"Perhaps the most notable change to how you''re used to interacting with Ghost is in the images. In Koenig, they''re both more powerful and easier to work with in the editor itself - and in the theme, they''re output slightly differently with different size options."]]],[1,"p",[[0,[],0,"For instance, here''s your plain ol'' regular image:"]]],[10,2],[1,"p",[[0,[],0,"But perhaps you''ve got a striking panorama that you really want to stand out as your readers scroll down the page. In that case, you could use the new full-bleed image size which stretches right out to the edges of the screen:"]]],[10,3],[1,"p",[[0,[],0,"Or maybe you''re looking for something in between, which will give you just a little more size to break up the vertical rhythm of the post without dominating the entire screen. If that''s the case, you might like the breakout size:"]]],[10,4],[1,"p",[[0,[],0,"Each of these sizes can be selected from within the editor, and each will output a number of HTML classes for the theme to do styling with. "]]],[1,"p",[[0,[],0,"Chances are your theme will need a few small updates to take advantage of the new editor functionality. Some people might also find they need to tweak their theme layout, as the editor canvas previously output a wrapper div around its content – but no longer does. If you rely on that div for styling, you can always add it back again in your theme."]]],[1,"p",[[0,[],0,"Oh, we have some nice new image captions, too :)"]]],[1,"h1",[[0,[],0,"What else?"]]],[1,"p",[[0,[],0,"Well, you can still write Markdown, as mentioned. In fact you''ll find the entire previous Ghost editor "],[0,[2],1,"inside"],[0,[],0," this editor. If you want to use it then just go ahead and add a Markdown card and start writing like nothing changed at all:"]]],[10,5],[1,"p",[[0,[],0,"of course you can embed code blocks"]]],[10,6],[1,"p",[[0,[],0,"or embed things from external services like YouTube..."]]],[10,7],[1,"p",[[0,[],0,"and yeah you can do full HTML if you need to, as well!"]]],[10,8],[1,"p",[[0,[],0,"So everything works, hopefully, just about how you would expect. It''s like the old editor, but faster, cleaner, prettier, and a whole lot more powerful."]]],[1,"h1",[[0,[],0,"What do I do with this information?"]]],[1,"p",[[0,[],0,"Preview this post on your site to see if it causes any issues with your theme. Click on the settings cog in the top right πŸ‘‰πŸΌ corner of the editor, then click on ''"],[0,[0],1,"Preview"],[0,[],0,"'' next to the ''Post URL'' input."]]],[1,"p",[[0,[],0,"If everything looks good to you then there''s nothing you need to do, you''re all set! If you spot any issues with your design, or there are some funky display issues, then you might need to make some updates to your theme based on the new editor classes being output."]]],[1,"p",[[0,[],0,"Head over to the "],[0,[3],1,"Ghost 2.0 Theme Compatibility"],[0,[],0," forum topic to discuss any changes and get help if needed."]]],[1,"p",[[0,[],0,"That''s it!"]]],[1,"p",[[0,[],0,"We''re looking forward to sharing more about the new editor soon"]]]]}', false, 'Hey there! Welcome to the new Ghost editor - affectionately known as Koenig.
Koenig is a brand new writing experience within Ghost, and follows more of a
rich writing experience which you''ve come to expect from the best publishing
platforms. Don''t worry though! You can still use Markdown too, if that''s what
you prefer.
Because there are some changes to how Ghost outputs content using its new
editor, we dropped this draft post into your latest update to tell you a bit
about it – and simultaneously give you a chance to preview how well your theme
handles these changes. So after reading this post you should both understand how
everything works, and also be able to see if there are any changes you need to
make to your theme in order to upgrade to Ghost 2.0.
--------------------------------------------------------------------------------
What''s new
The new editor is designed to allow you have a more rich editing experience, so
it''s no longer limited to just text and formatting options – but it can also
handle rich media objects, called cards. You can insert a card either by
clicking on the + button on a new line, or typing / on a new line to search
for a particular card.
Here''s one now:
Fun announcement coming this afternoon πŸ™ˆ what could it be?
β€” Ghost (@TryGhost) August 4, 2016
[https://twitter.com/TryGhost/status/761119175192420352?ref_src=twsrc%5Etfw]
Cards are rich objects which contain content which is more than just text. To
start with there are cards for things like images, markdown, html and embeds β€”
but over time we''ll introduce more cards and integrations, as well as allowing
you to create your own!
Some examples of possible future cards
* A chart card to display dynamic data visualisations
* A recipe card to show a pre-formatted list of ingredients and instructions
* A Mailchimp card to capture new subscribers with a web form
* A recommended reading card to display a dynamic suggested story based on the
current user''s reading history
For now, though, we''re just getting started with the basics.
New ways to work with images
Perhaps the most notable change to how you''re used to interacting with Ghost is
in the images. In Koenig, they''re both more powerful and easier to work with in
the editor itself - and in the theme, they''re output slightly differently with
different size options.
For instance, here''s your plain ol'' regular image:
A regular size imageBut perhaps you''ve got a striking panorama that you really
want to stand out as your readers scroll down the page. In that case, you could
use the new full-bleed image size which stretches right out to the edges of the
screen:
It''s wideOr maybe you''re looking for something in between, which will give you
just a little more size to break up the vertical rhythm of the post without
dominating the entire screen. If that''s the case, you might like the breakout
size:
It''s wider, but not widestEach of these sizes can be selected from within the
editor, and each will output a number of HTML classes for the theme to do
styling with.
Chances are your theme will need a few small updates to take advantage of the
new editor functionality. Some people might also find they need to tweak their
theme layout, as the editor canvas previously output a wrapper div around its
content – but no longer does. If you rely on that div for styling, you can
always add it back again in your theme.
Oh, we have some nice new image captions, too :)
What else?
Well, you can still write Markdown, as mentioned. In fact you''ll find the entire
previous Ghost editor inside this editor. If you want to use it then just go
ahead and add a Markdown card and start writing like nothing changed at all:
Markdown content works just the way it always did, simply and beautifully.
of course you can embed code blocks
.new-editor {
display: bock;
}
or embed things from external services like YouTube...
and yeah you can do full HTML if you need to, as well!
hello worldSo everything works, hopefully, just about how you would expect. It''s
like the old editor, but faster, cleaner, prettier, and a whole lot more
powerful.
What do I do with this information?
Preview this post on your site to see if it causes any issues with your theme.
Click on the settings cog in the top right πŸ‘‰πŸΌ corner of the editor, then click
on ''Preview'' next to the ''Post URL'' input.
If everything looks good to you then there''s nothing you need to do, you''re all
set! If you spot any issues with your design, or there are some funky display
issues, then you might need to make some updates to your theme based on the new
editor classes being output.
Head over to the Ghost 2.0 Theme Compatibility
[https://forum.ghost.org/t/ghost-2-0-theme-compatibility-help-support/2103]
forum topic to discuss any changes and get help if needed.
That''s it!
We''re looking forward to sharing more about the new editor soon', NULL, 'v2-demo-post', 'draft', 'Koenig Demo Post', '2018-09-21 21:21:27', 1, '38b5415c-66cc-42d0-9fcb-3a112719c1f2', 'public') - SQLITE_ERROR: table posts has no column named comment_id
level:normal
OuterError: insert into `posts` (`author_id`, `comment_id`, `created_at`, `created_by`, `custom_excerpt`, `feature_image`, `featured`, `html`, `id`, `meta_description`, `meta_title`, `mobiledoc`, `page`, `plaintext`, `published_at`, `published_by`, `slug`, `status`, `title`, `updated_at`, `updated_by`, `uuid`, `visibility`) values ('1', '5ba560d6d0b33a0023e49f60', '2018-09-21 21:21:26', 1, 'Ghost comes with a beautiful default theme called Casper, which is designed to be a clean, readable publication layout and can be easily adapted for most purposes.', 'https://casper.ghost.org/v2.0.0/images/creating-a-custom-theme.jpg', false, '<p>Ghost comes with a beautiful default theme called Casper, which is designed to be a clean, readable publication layout and can be adapted for most purposes. However, Ghost can also be completely themed to suit your needs. Rather than just giving you a few basic settings which act as a poor proxy for code, we just let you write code.</p><p>There are a huge range of both free and premium pre-built themes which you can get from the <a href="http://marketplace.ghost.org">Ghost Theme Marketplace</a>, or you can create your own from scratch.</p><figure class="kg-card kg-image-card"><img src="https://casper.ghost.org/v1.0.0/images/marketplace.jpg" class="kg-image"><figcaption>Anyone can write a completely custom Ghost theme with some solid knowledge of HTML and CSS</figcaption></figure><p>Ghost themes are written with a templating language called handlebars, which has a set of dynamic helpers to insert your data into template files. For example: <code>{{author.name}}</code> outputs the name of the current author.</p><p>The best way to learn how to write your own Ghost theme is to have a look at <a href="https://github.com/TryGhost/Casper">the source code for Casper</a>, which is heavily commented and should give you a sense of how everything fits together.</p><ul><li><code>default.hbs</code> is the main template file, all contexts will load inside this file unless specifically told to use a different template.</li><li><code>post.hbs</code> is the file used in the context of viewing a post.</li><li><code>index.hbs</code> is the file used in the context of viewing the home page.</li><li>and so on</li></ul><p>We''ve got <a href="https://themes.ghost.org/v2.0.0/docs">full and extensive theme documentation</a> which outlines every template file, context and helper that you can use.</p><p>If you want to chat with other people making Ghost themes to get any advice or help, there''s also a <strong>themes</strong> section on our <a href="https://forum.ghost.org/c/themes">public Ghost forum</a>.</p>', '5ba560d6d0b33a0023e49f60', NULL, NULL, '{"version":"0.3.1","atoms":[],"cards":[["image",{"src":"https://casper.ghost.org/v1.0.0/images/marketplace.jpg","caption":"Anyone can write a completely custom Ghost theme with some solid knowledge of HTML and CSS"}]],"markups":[["a",["href","http://marketplace.ghost.org"]],["code"],["a",["href","https://github.com/TryGhost/Casper"]],["a",["href","https://themes.ghost.org/v2.0.0/docs"]],["strong"],["a",["href","https://forum.ghost.org/c/themes"]]],"sections":[[1,"p",[[0,[],0,"Ghost comes with a beautiful default theme called Casper, which is designed to be a clean, readable publication layout and can be adapted for most purposes. However, Ghost can also be completely themed to suit your needs. Rather than just giving you a few basic settings which act as a poor proxy for code, we just let you write code."]]],[1,"p",[[0,[],0,"There are a huge range of both free and premium pre-built themes which you can get from the "],[0,[0],1,"Ghost Theme Marketplace"],[0,[],0,", or you can create your own from scratch."]]],[10,0],[1,"p",[[0,[],0,"Ghost themes are written with a templating language called handlebars, which has a set of dynamic helpers to insert your data into template files. For example: "],[0,[1],1,"{{author.name}}"],[0,[],0," outputs the name of the current author."]]],[1,"p",[[0,[],0,"The best way to learn how to write your own Ghost theme is to have a look at "],[0,[2],1,"the source code for Casper"],[0,[],0,", which is heavily commented and should give you a sense of how everything fits together."]]],[3,"ul",[[[0,[1],1,"default.hbs"],[0,[],0," is the main template file, all contexts will load inside this file unless specifically told to use a different template."]],[[0,[1],1,"post.hbs"],[0,[],0," is the file used in the context of viewing a post."]],[[0,[1],1,"index.hbs"],[0,[],0," is the file used in the context of viewing the home page."]],[[0,[],0,"and so on"]]]],[1,"p",[[0,[],0,"We''ve got "],[0,[3],1,"full and extensive theme documentation"],[0,[],0," which outlines every template file, context and helper that you can use."]]],[1,"p",[[0,[],0,"If you want to chat with other people making Ghost themes to get any advice or help, there''s also a "],[0,[4],1,"themes"],[0,[],0," section on our "],[0,[5],1,"public Ghost forum"],[0,[],0,"."]]]]}', false, 'Ghost comes with a beautiful default theme called Casper, which is designed to
be a clean, readable publication layout and can be adapted for most purposes.
However, Ghost can also be completely themed to suit your needs. Rather than
just giving you a few basic settings which act as a poor proxy for code, we just
let you write code.
There are a huge range of both free and premium pre-built themes which you can
get from the Ghost Theme Marketplace [http://marketplace.ghost.org], or you can
create your own from scratch.
Anyone can write a completely custom Ghost theme with some solid knowledge of
HTML and CSSGhost themes are written with a templating language called
handlebars, which has a set of dynamic helpers to insert your data into template
files. For example: {{author.name}} outputs the name of the current author.
The best way to learn how to write your own Ghost theme is to have a look at
the
source code for Casper [https://github.com/TryGhost/Casper], which is heavily
commented and should give you a sense of how everything fits together.
* default.hbs is the main template file, all contexts will load inside this
file unless specifically told to use a different template.
* post.hbs is the file used in the context of viewing a post.
* index.hbs is the file used in the context of viewing the home page.
* and so on
We''ve got full and extensive theme documentation
[https://themes.ghost.org/v2.0.0/docs] which outlines every template file,
context and helper that you can use.
If you want to chat with other people making Ghost themes to get any advice or
help, there''s also a themes section on our public Ghost forum
[https://forum.ghost.org/c/themes].', '2018-09-21 21:21:27', 1, 'themes', 'published', 'Creating a custom theme', '2018-09-21 21:21:26', 1, '882d2738-826a-4b38-aeb7-264e52003f98', 'public') - SQLITE_ERROR: table posts has no column named comment_id
RollbackError: insert into `posts` (`author_id`, `comment_id`, `created_at`, `created_by`, `feature_image`, `featured`, `html`, `id`, `meta_description`, `meta_title`, `mobiledoc`, `page`, `plaintext`, `published_by`, `slug`, `status`, `title`, `updated_at`, `updated_by`, `uuid`, `visibility`) values ('5951f5fca366002ebd5dbef7', '5ba560d7d0b33a0023e49f61', '2018-09-21 21:21:27', 1, NULL, false, '<p>Hey there! Welcome to the new Ghost editor - affectionately known as <strong>Koenig</strong>.</p><p>Koenig is a brand new writing experience within Ghost, and follows more of a rich writing experience which you''ve come to expect from the best publishing platforms. Don''t worry though! You can still use Markdown too, if that''s what you prefer.</p><p>Because there are some changes to how Ghost outputs content using its new editor, we dropped this draft post into your latest update to tell you a bit about it – and simultaneously give you a chance to preview how well your theme handles these changes. So after reading this post you should both understand how everything works, and also be able to see if there are any changes you need to make to your theme in order to upgrade to Ghost 2.0.</p><hr><h1 id="what-s-new">What''s new</h1><p>The new editor is designed to allow you have a more rich editing experience, so it''s no longer limited to just text and formatting options – but it can also handle rich media objects, called cards. You can insert a card either by clicking on the <code>+</code> button on a new line, or typing <code>/</code> on a new line to search for a particular card. </p><p>Here''s one now:</p><figure class="kg-card kg-embed-card"><blockquote class="twitter-tweet"><p lang="en" dir="ltr">Fun announcement coming this afternoon πŸ™ˆ what could it be?</p>&mdash; Ghost (@TryGhost) <a href="https://twitter.com/TryGhost/status/761119175192420352?ref_src=twsrc%5Etfw">August 4, 2016</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</figure><p>Cards are rich objects which contain content which is more than just text. To start with there are cards for things like images, markdown, html and embeds β€” but over time we''ll introduce more cards and integrations, as well as allowing you to create your own!</p><h2 id="some-examples-of-possible-future-cards">Some examples of possible future cards</h2><ul><li>A chart card to display dynamic data visualisations</li><li>A recipe card to show a pre-formatted list of ingredients and instructions</li><li>A Mailchimp card to capture new subscribers with a web form</li><li>A recommended reading card to display a dynamic suggested story based on the current user''s reading history</li></ul><p>For now, though, we''re just getting started with the basics.</p><h1 id="new-ways-to-work-with-images">New ways to work with images</h1><p>Perhaps the most notable change to how you''re used to interacting with Ghost is in the images. In Koenig, they''re both more powerful and easier to work with in the editor itself - and in the theme, they''re output slightly differently with different size options.</p><p>For instance, here''s your plain ol'' regular image:</p><figure class="kg-card kg-image-card"><img src="https://casper.ghost.org/v1.25.0/images/koenig-demo-1.jpg" class="kg-image"><figcaption>A regular size image</figcaption></figure><p>But perhaps you''ve got a striking panorama that you really want to stand out as your readers scroll down the page. In that case, you could use the new full-bleed image size which stretches right out to the edges of the screen:</p><figure class="kg-card kg-image-card kg-width-full"><img src="https://casper.ghost.org/v1.25.0/images/koenig-demo-2.jpg" class="kg-image"><figcaption>It''s wide</figcaption></figure><p>Or maybe you''re looking for something in between, which will give you just a little more size to break up the vertical rhythm of the post without dominating the entire screen. If that''s the case, you might like the breakout size:</p><figure class="kg-card kg-image-card kg-width-wide"><img src="https://casper.ghost.org/v1.25.0/images/koenig-demo-3.jpg" class="kg-image"><figcaption>It''s wider, but not widest</figcaption></figure><p>Each of these sizes can be selected from within the editor, and each will output a number of HTML classes for the theme to do styling with. </p><p>Chances are your theme will need a few small updates to take advantage of the new editor functionality. Some people might also find they need to tweak their theme layout, as the editor canvas previously output a wrapper div around its content – but no longer does. If you rely on that div for styling, you can always add it back again in your theme.</p><p>Oh, we have some nice new image captions, too :)</p><h1 id="what-else">What else?</h1><p>Well, you can still write Markdown, as mentioned. In fact you''ll find the entire previous Ghost editor <em>inside</em> this editor. If you want to use it then just go ahead and add a Markdown card and start writing like nothing changed at all:</p><p>Markdown content works just the way it always did, <strong>simply</strong> and <em>beautifully</em>.</p>
<p>of course you can embed code blocks</p><pre><code>.new-editor {
display: bock;
}</code></pre><p>or embed things from external services like YouTube...</p><figure class="kg-card kg-embed-card"><iframe width="480" height="270" src="https://www.youtube.com/embed/CfeQTuGyiqU?feature=oembed" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></figure><p>and yeah you can do full HTML if you need to, as well!</p><div style="background:#fafafa;margin-bottom:1.5em;padding:20px 50px;">
<blink>hello world</blink>
</div><p>So everything works, hopefully, just about how you would expect. It''s like the old editor, but faster, cleaner, prettier, and a whole lot more powerful.</p><h1 id="what-do-i-do-with-this-information">What do I do with this information?</h1><p>Preview this post on your site to see if it causes any issues with your theme. Click on the settings cog in the top right πŸ‘‰πŸΌ corner of the editor, then click on ''<strong>Preview</strong>'' next to the ''Post URL'' input.</p><p>If everything looks good to you then there''s nothing you need to do, you''re all set! If you spot any issues with your design, or there are some funky display issues, then you might need to make some updates to your theme based on the new editor classes being output.</p><p>Head over to the <a href="https://forum.ghost.org/t/ghost-2-0-theme-compatibility-help-support/2103">Ghost 2.0 Theme Compatibility</a> forum topic to discuss any changes and get help if needed.</p><p>That''s it!</p><p>We''re looking forward to sharing more about the new editor soon</p>', '5ba560d7d0b33a0023e49f61', NULL, NULL, '{"version":"0.3.1","atoms":[],"cards":[["hr",{}],["embed",{"url":"https://twitter.com/TryGhost/status/761119175192420352","html":"<blockquote class=\"twitter-tweet\"><p lang=\"en\" dir=\"ltr\">Fun announcement coming this afternoon πŸ™ˆ what could it be?</p>&mdash; Ghost (@TryGhost) <a href=\"https://twitter.com/TryGhost/status/761119175192420352?ref_src=twsrc%5Etfw\">August 4, 2016</a></blockquote>\n<script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>\n","type":"rich"}],["image",{"src":"https://casper.ghost.org/v1.25.0/images/koenig-demo-1.jpg","alt":"","caption":"A regular size image"}],["image",{"src":"https://casper.ghost.org/v1.25.0/images/koenig-demo-2.jpg","alt":"","cardWidth":"full","caption":"It''s wide"}],["image",{"src":"https://casper.ghost.org/v1.25.0/images/koenig-demo-3.jpg","alt":"","cardWidth":"wide","caption":"It''s wider, but not widest"}],["markdown",{"markdown":"Markdown content works just the way it always did, **simply** and *beautifully*."}],["code",{"code":".new-editor {\n\tdisplay: bock;\n}"}],["embed",{"url":"https://www.youtube.com/watch?v=CfeQTuGyiqU","html":"<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/CfeQTuGyiqU?feature=oembed\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen></iframe>","type":"video"}],["html",{"html":"<div style=\"background:#fafafa;margin-bottom:1.5em;padding:20px 50px;\">\n <blink>hello world</blink>\n</div>"}]],"markups":[["strong"],["code"],["em"],["a",["href","https://forum.ghost.org/t/ghost-2-0-theme-compatibility-help-support/2103"]]],"sections":[[1,"p",[[0,[],0,"Hey there! Welcome to the new Ghost editor - affectionately known as "],[0,[0],1,"Koenig"],[0,[],0,"."]]],[1,"p",[[0,[],0,"Koenig is a brand new writing experience within Ghost, and follows more of a rich writing experience which you''ve come to expect from the best publishing platforms. Don''t worry though! You can still use Markdown too, if that''s what you prefer."]]],[1,"p",[[0,[],0,"Because there are some changes to how Ghost outputs content using its new editor, we dropped this draft post into your latest update to tell you a bit about it – and simultaneously give you a chance to preview how well your theme handles these changes. So after reading this post you should both understand how everything works, and also be able to see if there are any changes you need to make to your theme in order to upgrade to Ghost 2.0."]]],[10,0],[1,"h1",[[0,[],0,"What''s new"]]],[1,"p",[[0,[],0,"The new editor is designed to allow you have a more rich editing experience, so it''s no longer limited to just text and formatting options – but it can also handle rich media objects, called cards. You can insert a card either by clicking on the "],[0,[1],1,"+"],[0,[],0," button on a new line, or typing "],[0,[1],1,"/"],[0,[],0," on a new line to search for a particular card. "]]],[1,"p",[[0,[],0,"Here''s one now:"]]],[10,1],[1,"p",[[0,[],0,"Cards are rich objects which contain content which is more than just text. To start with there are cards for things like images, markdown, html and embeds β€” but over time we''ll introduce more cards and integrations, as well as allowing you to create your own!"]]],[1,"h2",[[0,[],0,"Some examples of possible future cards"]]],[3,"ul",[[[0,[],0,"A chart card to display dynamic data visualisations"]],[[0,[],0,"A recipe card to show a pre-formatted list of ingredients and instructions"]],[[0,[],0,"A Mailchimp card to capture new subscribers with a web form"]],[[0,[],0,"A recommended reading card to display a dynamic suggested story based on the current user''s reading history"]]]],[1,"p",[[0,[],0,"For now, though, we''re just getting started with the basics."]]],[1,"h1",[[0,[],0,"New ways to work with images"]]],[1,"p",[[0,[],0,"Perhaps the most notable change to how you''re used to interacting with Ghost is in the images. In Koenig, they''re both more powerful and easier to work with in the editor itself - and in the theme, they''re output slightly differently with different size options."]]],[1,"p",[[0,[],0,"For instance, here''s your plain ol'' regular image:"]]],[10,2],[1,"p",[[0,[],0,"But perhaps you''ve got a striking panorama that you really want to stand out as your readers scroll down the page. In that case, you could use the new full-bleed image size which stretches right out to the edges of the screen:"]]],[10,3],[1,"p",[[0,[],0,"Or maybe you''re looking for something in between, which will give you just a little more size to break up the vertical rhythm of the post without dominating the entire screen. If that''s the case, you might like the breakout size:"]]],[10,4],[1,"p",[[0,[],0,"Each of these sizes can be selected from within the editor, and each will output a number of HTML classes for the theme to do styling with. "]]],[1,"p",[[0,[],0,"Chances are your theme will need a few small updates to take advantage of the new editor functionality. Some people might also find they need to tweak their theme layout, as the editor canvas previously output a wrapper div around its content – but no longer does. If you rely on that div for styling, you can always add it back again in your theme."]]],[1,"p",[[0,[],0,"Oh, we have some nice new image captions, too :)"]]],[1,"h1",[[0,[],0,"What else?"]]],[1,"p",[[0,[],0,"Well, you can still write Markdown, as mentioned. In fact you''ll find the entire previous Ghost editor "],[0,[2],1,"inside"],[0,[],0," this editor. If you want to use it then just go ahead and add a Markdown card and start writing like nothing changed at all:"]]],[10,5],[1,"p",[[0,[],0,"of course you can embed code blocks"]]],[10,6],[1,"p",[[0,[],0,"or embed things from external services like YouTube..."]]],[10,7],[1,"p",[[0,[],0,"and yeah you can do full HTML if you need to, as well!"]]],[10,8],[1,"p",[[0,[],0,"So everything works, hopefully, just about how you would expect. It''s like the old editor, but faster, cleaner, prettier, and a whole lot more powerful."]]],[1,"h1",[[0,[],0,"What do I do with this information?"]]],[1,"p",[[0,[],0,"Preview this post on your site to see if it causes any issues with your theme. Click on the settings cog in the top right πŸ‘‰πŸΌ corner of the editor, then click on ''"],[0,[0],1,"Preview"],[0,[],0,"'' next to the ''Post URL'' input."]]],[1,"p",[[0,[],0,"If everything looks good to you then there''s nothing you need to do, you''re all set! If you spot any issues with your design, or there are some funky display issues, then you might need to make some updates to your theme based on the new editor classes being output."]]],[1,"p",[[0,[],0,"Head over to the "],[0,[3],1,"Ghost 2.0 Theme Compatibility"],[0,[],0," forum topic to discuss any changes and get help if needed."]]],[1,"p",[[0,[],0,"That''s it!"]]],[1,"p",[[0,[],0,"We''re looking forward to sharing more about the new editor soon"]]]]}', false, 'Hey there! Welcome to the new Ghost editor - affectionately known as Koenig.
Koenig is a brand new writing experience within Ghost, and follows more of a
rich writing experience which you''ve come to expect from the best publishing
platforms. Don''t worry though! You can still use Markdown too, if that''s what
you prefer.
Because there are some changes to how Ghost outputs content using its new
editor, we dropped this draft post into your latest update to tell you a bit
about it – and simultaneously give you a chance to preview how well your theme
handles these changes. So after reading this post you should both understand how
everything works, and also be able to see if there are any changes you need to
make to your theme in order to upgrade to Ghost 2.0.
--------------------------------------------------------------------------------
What''s new
The new editor is designed to allow you have a more rich editing experience, so
it''s no longer limited to just text and formatting options – but it can also
handle rich media objects, called cards. You can insert a card either by
clicking on the + button on a new line, or typing / on a new line to search
for a particular card.
Here''s one now:
Fun announcement coming this afternoon πŸ™ˆ what could it be?
β€” Ghost (@TryGhost) August 4, 2016
[https://twitter.com/TryGhost/status/761119175192420352?ref_src=twsrc%5Etfw]
Cards are rich objects which contain content which is more than just text. To
start with there are cards for things like images, markdown, html and embeds β€”
but over time we''ll introduce more cards and integrations, as well as allowing
you to create your own!
Some examples of possible future cards
* A chart card to display dynamic data visualisations
* A recipe card to show a pre-formatted list of ingredients and instructions
* A Mailchimp card to capture new subscribers with a web form
* A recommended reading card to display a dynamic suggested story based on the
current user''s reading history
For now, though, we''re just getting started with the basics.
New ways to work with images
Perhaps the most notable change to how you''re used to interacting with Ghost is
in the images. In Koenig, they''re both more powerful and easier to work with in
the editor itself - and in the theme, they''re output slightly differently with
different size options.
For instance, here''s your plain ol'' regular image:
A regular size imageBut perhaps you''ve got a striking panorama that you really
want to stand out as your readers scroll down the page. In that case, you could
use the new full-bleed image size which stretches right out to the edges of the
screen:
It''s wideOr maybe you''re looking for something in between, which will give you
just a little more size to break up the vertical rhythm of the post without
dominating the entire screen. If that''s the case, you might like the breakout
size:
It''s wider, but not widestEach of these sizes can be selected from within the
editor, and each will output a number of HTML classes for the theme to do
styling with.
Chances are your theme will need a few small updates to take advantage of the
new editor functionality. Some people might also find they need to tweak their
theme layout, as the editor canvas previously output a wrapper div around its
content – but no longer does. If you rely on that div for styling, you can
always add it back again in your theme.
Oh, we have some nice new image captions, too :)
What else?
Well, you can still write Markdown, as mentioned. In fact you''ll find the entire
previous Ghost editor inside this editor. If you want to use it then just go
ahead and add a Markdown card and start writing like nothing changed at all:
Markdown content works just the way it always did, simply and beautifully.
of course you can embed code blocks
.new-editor {
display: bock;
}
or embed things from external services like YouTube...
and yeah you can do full HTML if you need to, as well!
hello worldSo everything works, hopefully, just about how you would expect. It''s
like the old editor, but faster, cleaner, prettier, and a whole lot more
powerful.
What do I do with this information?
Preview this post on your site to see if it causes any issues with your theme.
Click on the settings cog in the top right πŸ‘‰πŸΌ corner of the editor, then click
on ''Preview'' next to the ''Post URL'' input.
If everything looks good to you then there''s nothing you need to do, you''re all
set! If you spot any issues with your design, or there are some funky display
issues, then you might need to make some updates to your theme based on the new
editor classes being output.
Head over to the Ghost 2.0 Theme Compatibility
[https://forum.ghost.org/t/ghost-2-0-theme-compatibility-help-support/2103]
forum topic to discuss any changes and get help if needed.
That''s it!
We''re looking forward to sharing more about the new editor soon', NULL, 'v2-demo-post', 'draft', 'Koenig Demo Post', '2018-09-21 21:21:27', 1, '38b5415c-66cc-42d0-9fcb-3a112719c1f2', 'public') - SQLITE_ERROR: table posts has no column named comment_id
at RollbackError.KnexMigrateError (/var/lib/ghost/versions/2.1.1/node_modules/knex-migrator/lib/errors.js:7:26)
at new RollbackError (/var/lib/ghost/versions/2.1.1/node_modules/knex-migrator/lib/errors.js:32:26)
at /var/lib/ghost/versions/2.1.1/node_modules/knex-migrator/lib/index.js:496:23
at tryCatcher (/var/lib/ghost/versions/2.1.1/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/var/lib/ghost/versions/2.1.1/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/var/lib/ghost/versions/2.1.1/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/var/lib/ghost/versions/2.1.1/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/var/lib/ghost/versions/2.1.1/node_modules/bluebird/js/release/promise.js:689:18)
at Async._drainQueue (/var/lib/ghost/versions/2.1.1/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/var/lib/ghost/versions/2.1.1/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/var/lib/ghost/versions/2.1.1/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
Error: SQLITE_ERROR: table posts has no column named comment_id
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment