Skip to content

holehan/atom-hugo-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Atom text snippets for Hugo

Snippets for Hugo's Go templates.

Heavily inspired by regisphilibert/Sublime-Hugo-Snippets

Installation

  • Either copy the content of snippets/hugo-snippets.cson and paste it into your Atom snippets file (See the Atom flight manual for further information).
  • Or clone this repository, cd into it and link it to your local Atom packages folder with apm link.

Usage

Use "HTML (Go)" as a language type.

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 }}
Comment comment {{/* */}}
Variable var {{ $var := what }}
Debug debug {{ printf "%#v" }}

About

Hugo snippets for Atom

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published