Hugo Snippets
Hugo Snippets for Sublime Text 3!
Details
Installs
- Total 1K
- Win 376
- Mac 553
- Linux 306
Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
Mac | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
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 git@github.com:regisphilibert/Sublime-Hugo-Snippets.git
Linux (Ubuntu like distros)
$ cd ~/.config/sublime-text-3/Packages/User
$ git clone git@github.com: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 | {{/* */}} |