Skip to content

regisphilibert/Sublime-Hugo-Snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sublime Text Snippets for Hugo

Installation

With Package Control

Package Control: Install Package and look for Hugo Snippets

With Git

OSX

$ cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
$ git clone [email protected]:regisphilibert/Sublime-Hugo-Snippets.git

Linux (Ubuntu like distros)

$ cd ~/.config/sublime-text-3/Packages/User
$ git clone [email protected]:regisphilibert/Sublime-Hugo-Snippets.git

Available Snippets

Snippet Tab Trigger Output
Curlies x {{ }}
Dot dot {{ . }}
If if {{ if }} {{ end }}
If/Else ife {{ if }} {{ else }} {{ end }}
If/Else if ifei {{ if }} {{ else if }} {{ end }}
With with {{ with }} {{ end }}
With/Else withe {{ with }} {{ else }} {{ end }}
Range range {{ range }} {{ end }}
Partial partial {{ partial "" . }}
Block block {{ block "main" . }} {{ end }}
Block define define {{ define "block" }} {{ end }}
Variable  vars {{ $var := what }}
Debug  debug {{ printf "%#v" }}
Comment  comm {{/* */}}