ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Ghost Snippets

by matthojo ST2/ST3

A Ghost Sublime Text plugin

Details

  • 2014.01.16.22.17.27
  • github.​com
  • github.​com
  • 4 years ago
  • 1 hour ago
  • 5 years ago

Installs

  • Total 998
  • Win 381
  • OS X 471
  • Linux 146
Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6
Windows 0 1 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

 Ghost Snippets

A Sublime plugin for Ghost snippets.

Install

Using Package Control:

  • Bring up the Command Palette (Command+Shift+P on OS X, Control+Shift+P on Linux/Windows).
  • Select Package Control: Install Package.
  • Search for “Ghost”
  • Select “Ghost Snippets” to install.

Not using Package Control:

  • Save files to the Packages/Ghost Snippets directory, then relaunch Sublime:
  • Linux: ~/.config/sublime-text-3/Packages/Ghost Snippets
  • Mac: ~/Library/Application Support/Sublime Text 3/Packages/Ghost Snippets
  • Windows: %APPDATA%/Sublime Text 3/Packages/Ghost Snippets
  • Available Snippets

    Theming

  • author → {{author}}

  • author.b → {{author.bio}}

  • author.c → {{author.cover}}

  • author.e → {{author.email}}

  • author.i → {{author.image}}

  • author.n → {{author.name}}

  • author.w → {{author.website}}

  • body → {{body}}

  • asset → {{asset ""}}

  • foot → {{ghost_foot}}

  • head → {{ghost_head}}

  • meta_desc → {{meta_description}}

  • meta_t → {{meta_title}}

  • blog_desc → {{@blog.description}}

  • blog_logo → {{@blog.logo}}

  • blog_title → {{@blog.title}}

  • blog_url → {{@blog.url}}

  • bodyclass → {{body_class}}

  • postclass → {{post_class}}

  • encode → {{encode }}

  • foreach → {{#foreach }}{{/foreach}}

  • @odd{{#if @odd}} {{/if}}

  • @even{{#if @even}} {{/if}}

  • @first{{#if @first}} {{/if}}

  • @last{{#if @last}} {{/if}}

  • @rowStart{{#if @rowStart}} {{/if}}

  • @rowEnd{{#if @rowEnd}} {{/if}}

  • content → {{content}}

  • date → {{date format=""}}

  • excerpt → {{excerpt [words=""] [content=""]}}

  • pagin → {{pagination}}

  • tag.n → {{tag.name}}

  • tags → {{tags seperator="" [prefix=""] [suffix=""]}}

  • title → {{{title}}}

  • url → {{url [absolute="true"]}}

Copyright & License

Copyright © 2013 The Ghost Foundation - Released under the MIT License.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.