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

Ghost Snippets

by matthojo ALL

A Ghost Sublime Text plugin

Details

  • 2014.01.16.22.17.27
  • github.​com
  • github.​com
  • 10 years ago
  • 57 minutes ago
  • 10 years ago

Installs

  • Total 2K
  • Win 796
  • Mac 589
  • Linux 230
May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 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 1 0 0 0 0 0 0 0 0 0 0 0 0 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 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.