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
  • 5 years ago
  • 25 minutes ago
  • 5 years ago

Installs

  • Total 1K
  • Win 426
  • OS X 486
  • Linux 154
Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2
Windows 0 1 2 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 2 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
Linux 0 0 0 0 0 0 0 0 0 0 0 0 1 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 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.