Hugo Snippets
Hugo Snippets for Sublime Text 3!
Details
Installs
- Total 1K
- Win 374
- Mac 550
- Linux 306
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 | Jul 15 | Jul 14 | Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 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 | {{/* */}} |