2017-08-10 11:18:22 -04:00
{
2018-04-16 01:43:59 -04:00
"chroma" : {
"lexers" : [
{
"Name" : "ABNF" ,
"Aliases" : [
"abnf"
]
} ,
{
"Name" : "ANTLR" ,
"Aliases" : [
"antlr"
]
} ,
{
"Name" : "APL" ,
"Aliases" : [
"apl"
]
} ,
{
"Name" : "ActionScript" ,
"Aliases" : [
"actionscript" ,
"as"
]
} ,
{
"Name" : "ActionScript 3" ,
"Aliases" : [
"actionscript3" ,
"as" ,
"as3"
]
} ,
{
"Name" : "Ada" ,
"Aliases" : [
"ada" ,
"ada2005" ,
"ada95" ,
"adb" ,
"ads"
]
} ,
{
"Name" : "Angular2" ,
"Aliases" : [
"ng2"
]
} ,
{
"Name" : "ApacheConf" ,
"Aliases" : [
"aconf" ,
"apache" ,
"apacheconf" ,
"conf" ,
"htaccess"
]
} ,
{
"Name" : "AppleScript" ,
"Aliases" : [
"applescript"
]
} ,
{
"Name" : "Awk" ,
"Aliases" : [
"awk" ,
"gawk" ,
"mawk" ,
"nawk"
]
} ,
{
"Name" : "BNF" ,
"Aliases" : [
"bnf"
]
} ,
{
"Name" : "Base Makefile" ,
"Aliases" : [
"bsdmake" ,
"mak" ,
"make" ,
"makefile" ,
"mf" ,
"mk"
]
} ,
{
"Name" : "Bash" ,
"Aliases" : [
"bash" ,
"bashrc" ,
"ebuild" ,
"eclass" ,
"exheres-0" ,
"exlib" ,
"ksh" ,
"sh" ,
"shell" ,
"zsh" ,
"zshrc"
]
} ,
{
"Name" : "Batchfile" ,
"Aliases" : [
"bat" ,
"batch" ,
"cmd" ,
"dosbatch" ,
"winbatch"
]
} ,
{
"Name" : "BlitzBasic" ,
"Aliases" : [
"b3d" ,
"bb" ,
"blitzbasic" ,
"bplus" ,
"decls"
]
} ,
{
"Name" : "Brainfuck" ,
"Aliases" : [
"b" ,
"bf" ,
"brainfuck"
]
} ,
{
"Name" : "C" ,
"Aliases" : [
"c" ,
"h" ,
"idc"
]
} ,
{
"Name" : "C#" ,
"Aliases" : [
"c#" ,
"cs" ,
"csharp"
]
} ,
{
"Name" : "C++" ,
"Aliases" : [
"C" ,
"CPP" ,
"H" ,
"c++" ,
"cc" ,
"cp" ,
"cpp" ,
"cxx" ,
"h++" ,
"hh" ,
"hpp" ,
"hxx"
]
} ,
{
"Name" : "CFEngine3" ,
"Aliases" : [
"cf" ,
"cf3" ,
"cfengine3"
]
} ,
{
"Name" : "CMake" ,
"Aliases" : [
"cmake" ,
"txt"
]
} ,
{
"Name" : "COBOL" ,
"Aliases" : [
"COB" ,
"CPY" ,
"cob" ,
"cobol" ,
"cpy"
]
} ,
{
"Name" : "CSS" ,
"Aliases" : [
"css"
]
} ,
{
"Name" : "Cap'n Proto" ,
"Aliases" : [
"capnp"
]
} ,
{
"Name" : "Ceylon" ,
"Aliases" : [
"ceylon"
]
} ,
{
"Name" : "ChaiScript" ,
"Aliases" : [
"chai" ,
"chaiscript"
]
} ,
{
"Name" : "Cheetah" ,
"Aliases" : [
"cheetah" ,
"spitfire" ,
"spt" ,
"tmpl"
]
} ,
{
"Name" : "Clojure" ,
"Aliases" : [
"clj" ,
"clojure"
]
} ,
{
"Name" : "CoffeeScript" ,
"Aliases" : [
"coffee" ,
"coffee-script" ,
"coffeescript"
]
} ,
{
"Name" : "Common Lisp" ,
"Aliases" : [
"cl" ,
"common-lisp" ,
"lisp"
]
} ,
{
"Name" : "Coq" ,
"Aliases" : [
"coq" ,
"v"
]
} ,
{
"Name" : "Crystal" ,
"Aliases" : [
"cr" ,
"crystal"
]
} ,
{
"Name" : "Cython" ,
"Aliases" : [
"cython" ,
"pxd" ,
"pxi" ,
"pyrex" ,
"pyx"
]
} ,
{
"Name" : "DTD" ,
"Aliases" : [
"dtd"
]
} ,
{
"Name" : "Dart" ,
"Aliases" : [
"dart"
]
} ,
{
"Name" : "Diff" ,
"Aliases" : [
"diff" ,
"patch" ,
"udiff"
]
} ,
{
"Name" : "Django/Jinja" ,
"Aliases" : [
"django" ,
"jinja"
]
} ,
{
"Name" : "Docker" ,
"Aliases" : [
"docker" ,
"dockerfile"
]
} ,
{
"Name" : "EBNF" ,
"Aliases" : [
"ebnf"
]
} ,
{
"Name" : "Elixir" ,
"Aliases" : [
"elixir" ,
"ex" ,
"exs"
]
} ,
{
"Name" : "Elm" ,
"Aliases" : [
"elm"
]
} ,
{
"Name" : "EmacsLisp" ,
"Aliases" : [
"el" ,
"elisp" ,
"emacs" ,
"emacs-lisp"
]
} ,
{
"Name" : "Erlang" ,
"Aliases" : [
"erl" ,
"erlang" ,
"es" ,
"escript" ,
"hrl"
]
} ,
{
"Name" : "FSharp" ,
"Aliases" : [
"fs" ,
"fsharp" ,
"fsi"
]
} ,
{
"Name" : "Factor" ,
"Aliases" : [
"factor"
]
} ,
{
"Name" : "Fish" ,
"Aliases" : [
"fish" ,
"fishshell" ,
"load"
]
} ,
{
"Name" : "Forth" ,
"Aliases" : [
"forth" ,
"frt" ,
"fs"
]
} ,
{
"Name" : "Fortran" ,
"Aliases" : [
"F03" ,
"F90" ,
"f03" ,
"f90" ,
"fortran"
]
} ,
{
"Name" : "GAS" ,
"Aliases" : [
"S" ,
"asm" ,
"gas" ,
"s"
]
} ,
{
"Name" : "GDScript" ,
"Aliases" : [
"gd" ,
"gdscript"
]
} ,
{
"Name" : "GLSL" ,
"Aliases" : [
"frag" ,
"geo" ,
"glsl" ,
"vert"
]
} ,
{
"Name" : "Genshi" ,
"Aliases" : [
"genshi" ,
"kid" ,
"xml+genshi" ,
"xml+kid"
]
} ,
{
"Name" : "Genshi HTML" ,
"Aliases" : [
"html+genshi" ,
"html+kid"
]
} ,
{
"Name" : "Genshi Text" ,
"Aliases" : [
"genshitext"
]
} ,
{
"Name" : "Gnuplot" ,
"Aliases" : [
"gnuplot" ,
"plot" ,
"plt"
]
} ,
{
"Name" : "Go" ,
"Aliases" : [
"go" ,
"golang"
]
} ,
{
"Name" : "Go HTML Template" ,
"Aliases" : [
"go-html-template"
]
} ,
{
"Name" : "Go Text Template" ,
"Aliases" : [
"go-text-template"
]
} ,
{
"Name" : "Groovy" ,
"Aliases" : [
"gradle" ,
"groovy"
]
} ,
{
"Name" : "HTML" ,
"Aliases" : [
"htm" ,
"html" ,
"xhtml" ,
"xslt"
]
} ,
{
"Name" : "HTTP" ,
"Aliases" : [
"http"
]
} ,
{
"Name" : "Handlebars" ,
"Aliases" : [
"handlebars"
]
} ,
{
"Name" : "Haskell" ,
"Aliases" : [
"haskell" ,
"hs"
]
} ,
{
"Name" : "Haxe" ,
"Aliases" : [
"haxe" ,
"hx" ,
"hxsl"
]
} ,
{
"Name" : "Hexdump" ,
"Aliases" : [
"hexdump"
]
} ,
{
"Name" : "Hy" ,
"Aliases" : [
"hy" ,
"hylang"
]
} ,
{
"Name" : "INI" ,
"Aliases" : [
"cfg" ,
"dosini" ,
"inf" ,
"ini"
]
} ,
{
"Name" : "Idris" ,
"Aliases" : [
"idr" ,
"idris"
]
} ,
{
"Name" : "Io" ,
"Aliases" : [
"io"
]
} ,
{
"Name" : "JSON" ,
"Aliases" : [
"json"
]
} ,
{
"Name" : "JSX" ,
"Aliases" : [
"jsx" ,
"react"
]
} ,
{
"Name" : "Java" ,
"Aliases" : [
"java"
]
} ,
{
"Name" : "JavaScript" ,
"Aliases" : [
"javascript" ,
"js" ,
"jsm"
]
} ,
{
"Name" : "Julia" ,
"Aliases" : [
"jl" ,
"julia"
]
} ,
{
"Name" : "Kotlin" ,
"Aliases" : [
"kotlin" ,
"kt"
]
} ,
{
"Name" : "LLVM" ,
"Aliases" : [
"ll" ,
"llvm"
]
} ,
{
"Name" : "Lighttpd configuration file" ,
"Aliases" : [
"lighttpd" ,
"lighty"
]
} ,
{
"Name" : "Lua" ,
"Aliases" : [
"lua" ,
"wlua"
]
} ,
{
"Name" : "Mako" ,
"Aliases" : [
"mako" ,
"mao"
]
} ,
{
"Name" : "Mason" ,
"Aliases" : [
"m" ,
"mason" ,
"mc" ,
"mhtml" ,
"mi"
]
} ,
{
"Name" : "Mathematica" ,
"Aliases" : [
"cdf" ,
"ma" ,
"mathematica" ,
"mma" ,
"nb" ,
"nbp"
]
} ,
{
"Name" : "MiniZinc" ,
"Aliases" : [
"MZN" ,
"dzn" ,
"fzn" ,
"minizinc" ,
"mzn"
]
} ,
{
"Name" : "Modula-2" ,
"Aliases" : [
"def" ,
"m2" ,
"mod" ,
"modula2"
]
} ,
{
"Name" : "MorrowindScript" ,
"Aliases" : [
"morrowind" ,
"mwscript"
]
} ,
{
"Name" : "MySQL" ,
"Aliases" : [
"mysql" ,
"sql"
]
} ,
{
"Name" : "Myghty" ,
"Aliases" : [
"myghty" ,
"myt"
]
} ,
{
"Name" : "NASM" ,
"Aliases" : [
"ASM" ,
"asm" ,
"nasm"
]
} ,
{
"Name" : "Newspeak" ,
"Aliases" : [
"newspeak" ,
"ns2"
]
} ,
{
"Name" : "Nginx configuration file" ,
"Aliases" : [
"conf" ,
"nginx"
]
} ,
{
"Name" : "Nim" ,
"Aliases" : [
"nim" ,
"nimrod"
]
} ,
{
"Name" : "Nix" ,
"Aliases" : [
"nix" ,
"nixos"
]
} ,
{
"Name" : "OCaml" ,
"Aliases" : [
"ml" ,
"mli" ,
"mll" ,
"mly" ,
"ocaml"
]
} ,
{
"Name" : "Objective-C" ,
"Aliases" : [
"h" ,
"m" ,
"obj-c" ,
"objc" ,
"objective-c" ,
"objectivec"
]
} ,
{
"Name" : "Octave" ,
"Aliases" : [
"m" ,
"octave"
]
} ,
{
"Name" : "PHP" ,
"Aliases" : [
"inc" ,
"php" ,
"php3" ,
"php4" ,
"php5" ,
"php[345]"
]
} ,
{
"Name" : "PL/pgSQL" ,
"Aliases" : [
"plpgsql"
]
} ,
{
"Name" : "POVRay" ,
"Aliases" : [
"inc" ,
"pov"
]
} ,
{
"Name" : "PacmanConf" ,
"Aliases" : [
"conf" ,
"pacmanconf"
]
} ,
{
"Name" : "Perl" ,
"Aliases" : [
"perl" ,
"pl" ,
"pm" ,
"t"
]
} ,
{
"Name" : "Pig" ,
"Aliases" : [
"pig"
]
} ,
{
"Name" : "PkgConfig" ,
"Aliases" : [
"pc" ,
"pkgconfig"
]
} ,
{
"Name" : "PostScript" ,
"Aliases" : [
"eps" ,
"postscr" ,
"postscript" ,
"ps"
]
} ,
{
"Name" : "PostgreSQL SQL dialect" ,
"Aliases" : [
"postgres" ,
"postgresql"
]
} ,
{
"Name" : "PowerShell" ,
"Aliases" : [
"posh" ,
"powershell" ,
"ps1" ,
"psm1"
]
} ,
{
"Name" : "Prolog" ,
"Aliases" : [
"ecl" ,
"pl" ,
"pro" ,
"prolog"
]
} ,
{
"Name" : "Protocol Buffer" ,
"Aliases" : [
"proto" ,
"protobuf"
]
} ,
{
"Name" : "Puppet" ,
"Aliases" : [
"pp" ,
"puppet"
]
} ,
{
"Name" : "Python" ,
"Aliases" : [
"py" ,
"python" ,
"pyw" ,
"sage" ,
"sc" ,
"tac"
]
} ,
{
"Name" : "Python 3" ,
"Aliases" : [
"py3" ,
"python3"
]
} ,
{
"Name" : "QBasic" ,
"Aliases" : [
"BAS" ,
"bas" ,
"basic" ,
"qbasic"
]
} ,
{
"Name" : "R" ,
"Aliases" : [
"R" ,
"Renviron" ,
"Rhistory" ,
"Rprofile" ,
"S" ,
"r" ,
"s" ,
"splus"
]
} ,
{
"Name" : "Racket" ,
"Aliases" : [
"racket" ,
"rkt" ,
"rktd" ,
"rktl"
]
} ,
{
"Name" : "Ragel" ,
"Aliases" : [
"ragel"
]
} ,
{
"Name" : "Rexx" ,
"Aliases" : [
"arexx" ,
"rex" ,
"rexx" ,
"rx"
]
} ,
{
"Name" : "Ruby" ,
"Aliases" : [
"duby" ,
"gemspec" ,
"rake" ,
"rb" ,
"rbw" ,
"rbx" ,
"ruby"
]
} ,
{
"Name" : "Rust" ,
"Aliases" : [
"in" ,
"rs" ,
"rust"
]
} ,
{
"Name" : "SCSS" ,
"Aliases" : [
"scss"
]
} ,
{
"Name" : "SPARQL" ,
"Aliases" : [
"rq" ,
"sparql"
]
} ,
{
"Name" : "SQL" ,
"Aliases" : [
"sql"
]
} ,
{
"Name" : "Sass" ,
"Aliases" : [
"sass"
]
} ,
{
"Name" : "Scala" ,
"Aliases" : [
"scala"
]
} ,
{
"Name" : "Scheme" ,
"Aliases" : [
"scheme" ,
"scm" ,
"ss"
]
} ,
{
"Name" : "Scilab" ,
"Aliases" : [
"sce" ,
"sci" ,
"scilab" ,
"tst"
]
} ,
{
"Name" : "Smalltalk" ,
"Aliases" : [
"smalltalk" ,
"squeak" ,
"st"
]
} ,
{
"Name" : "Smarty" ,
"Aliases" : [
"smarty" ,
"tpl"
]
} ,
{
"Name" : "Snobol" ,
"Aliases" : [
"snobol"
]
} ,
{
"Name" : "Solidity" ,
"Aliases" : [
"sol" ,
"solidity"
]
} ,
{
"Name" : "SquidConf" ,
"Aliases" : [
"conf" ,
"squid" ,
"squid.conf" ,
"squidconf"
]
} ,
{
"Name" : "Swift" ,
"Aliases" : [
"swift"
]
} ,
{
"Name" : "TASM" ,
"Aliases" : [
"ASM" ,
"asm" ,
"tasm"
]
} ,
{
"Name" : "TOML" ,
"Aliases" : [
"toml"
]
} ,
{
"Name" : "Tcl" ,
"Aliases" : [
"rvt" ,
"tcl"
]
} ,
{
"Name" : "Tcsh" ,
"Aliases" : [
"csh" ,
"tcsh"
]
} ,
{
"Name" : "TeX" ,
"Aliases" : [
"aux" ,
"latex" ,
"tex" ,
"toc"
]
} ,
{
"Name" : "Termcap" ,
"Aliases" : [
"src" ,
"termcap"
]
} ,
{
"Name" : "Terminfo" ,
"Aliases" : [
"src" ,
"terminfo"
]
} ,
{
"Name" : "Terraform" ,
"Aliases" : [
"terraform" ,
"tf"
]
} ,
{
"Name" : "Thrift" ,
"Aliases" : [
"thrift"
]
} ,
{
"Name" : "Transact-SQL" ,
"Aliases" : [
"t-sql" ,
"tsql"
]
} ,
{
"Name" : "Turtle" ,
"Aliases" : [
"ttl" ,
"turtle"
]
} ,
{
"Name" : "Twig" ,
"Aliases" : [
"twig"
]
} ,
{
"Name" : "TypeScript" ,
"Aliases" : [
"ts" ,
"tsx" ,
"typescript"
]
} ,
{
"Name" : "TypoScript" ,
"Aliases" : [
"ts" ,
"txt" ,
"typoscript"
]
} ,
{
"Name" : "TypoScriptCssData" ,
"Aliases" : [
"typoscriptcssdata"
]
} ,
{
"Name" : "TypoScriptHtmlData" ,
"Aliases" : [
"typoscripthtmldata"
]
} ,
{
"Name" : "VHDL" ,
"Aliases" : [
"vhd" ,
"vhdl"
]
} ,
{
"Name" : "VimL" ,
"Aliases" : [
"exrc" ,
"gvimrc" ,
"vim" ,
"vimrc"
]
} ,
{
"Name" : "WDTE" ,
"Aliases" : [
"wdte"
]
} ,
{
"Name" : "XML" ,
"Aliases" : [
"rss" ,
"svg" ,
"wsdl" ,
"wsf" ,
"xml" ,
"xsd" ,
"xsl" ,
"xslt"
]
} ,
{
"Name" : "Xorg" ,
"Aliases" : [
"conf" ,
"xorg.conf"
]
} ,
{
"Name" : "YAML" ,
"Aliases" : [
"yaml" ,
"yml"
]
} ,
{
"Name" : "cfstatement" ,
"Aliases" : [
"cfs"
]
} ,
{
"Name" : "markdown" ,
"Aliases" : [
"markdown" ,
"md" ,
"mkd"
]
} ,
{
"Name" : "reStructuredText" ,
"Aliases" : [
"rest" ,
"restructuredtext" ,
"rst"
]
} ,
{
"Name" : "reg" ,
"Aliases" : [
"reg" ,
"registry"
]
} ,
{
"Name" : "systemverilog" ,
"Aliases" : [
"sv" ,
"svh" ,
"systemverilog"
]
} ,
{
"Name" : "verilog" ,
"Aliases" : [
"v" ,
"verilog"
]
}
]
} ,
2017-08-10 11:18:22 -04:00
"media" : {
"types" : [
{
"type" : "application/javascript" ,
"string" : "application/javascript+js" ,
"mainType" : "application" ,
"subType" : "javascript" ,
"suffix" : "js" ,
"delimiter" : "."
} ,
{
"type" : "application/json" ,
"string" : "application/json+json" ,
"mainType" : "application" ,
"subType" : "json" ,
"suffix" : "json" ,
"delimiter" : "."
} ,
{
"type" : "application/rss" ,
"string" : "application/rss+xml" ,
"mainType" : "application" ,
"subType" : "rss" ,
"suffix" : "xml" ,
"delimiter" : "."
} ,
{
"type" : "application/xml" ,
"string" : "application/xml+xml" ,
"mainType" : "application" ,
"subType" : "xml" ,
"suffix" : "xml" ,
"delimiter" : "."
} ,
{
"type" : "text/calendar" ,
"string" : "text/calendar+ics" ,
"mainType" : "text" ,
"subType" : "calendar" ,
"suffix" : "ics" ,
"delimiter" : "."
} ,
{
"type" : "text/css" ,
"string" : "text/css+css" ,
"mainType" : "text" ,
"subType" : "css" ,
"suffix" : "css" ,
"delimiter" : "."
} ,
{
"type" : "text/csv" ,
"string" : "text/csv+csv" ,
"mainType" : "text" ,
"subType" : "csv" ,
"suffix" : "csv" ,
"delimiter" : "."
} ,
{
"type" : "text/html" ,
"string" : "text/html+html" ,
"mainType" : "text" ,
"subType" : "html" ,
"suffix" : "html" ,
"delimiter" : "."
} ,
{
"type" : "text/plain" ,
"string" : "text/plain+txt" ,
"mainType" : "text" ,
"subType" : "plain" ,
"suffix" : "txt" ,
"delimiter" : "."
}
]
} ,
"output" : {
"formats" : [
{
"MediaType" : "text/html+html" ,
"name" : "AMP" ,
"mediaType" : {
"type" : "text/html" ,
"string" : "text/html+html" ,
"mainType" : "text" ,
"subType" : "html" ,
"suffix" : "html" ,
"delimiter" : "."
} ,
"path" : "amp" ,
"baseName" : "index" ,
"rel" : "amphtml" ,
"protocol" : "" ,
"isPlainText" : false ,
"isHTML" : true ,
"noUgly" : false ,
"notAlternative" : false
} ,
{
"MediaType" : "text/css+css" ,
"name" : "CSS" ,
"mediaType" : {
"type" : "text/css" ,
"string" : "text/css+css" ,
"mainType" : "text" ,
"subType" : "css" ,
"suffix" : "css" ,
"delimiter" : "."
} ,
"path" : "" ,
"baseName" : "styles" ,
"rel" : "stylesheet" ,
"protocol" : "" ,
"isPlainText" : true ,
"isHTML" : false ,
"noUgly" : false ,
"notAlternative" : true
} ,
{
"MediaType" : "text/csv+csv" ,
"name" : "CSV" ,
"mediaType" : {
"type" : "text/csv" ,
"string" : "text/csv+csv" ,
"mainType" : "text" ,
"subType" : "csv" ,
"suffix" : "csv" ,
"delimiter" : "."
} ,
"path" : "" ,
"baseName" : "index" ,
"rel" : "alternate" ,
"protocol" : "" ,
"isPlainText" : true ,
"isHTML" : false ,
"noUgly" : false ,
"notAlternative" : false
} ,
{
"MediaType" : "text/calendar+ics" ,
"name" : "Calendar" ,
"mediaType" : {
"type" : "text/calendar" ,
"string" : "text/calendar+ics" ,
"mainType" : "text" ,
"subType" : "calendar" ,
"suffix" : "ics" ,
"delimiter" : "."
} ,
"path" : "" ,
"baseName" : "index" ,
"rel" : "alternate" ,
"protocol" : "webcal://" ,
"isPlainText" : true ,
"isHTML" : false ,
"noUgly" : false ,
"notAlternative" : false
} ,
{
"MediaType" : "text/html+html" ,
"name" : "HTML" ,
"mediaType" : {
"type" : "text/html" ,
"string" : "text/html+html" ,
"mainType" : "text" ,
"subType" : "html" ,
"suffix" : "html" ,
"delimiter" : "."
} ,
"path" : "" ,
"baseName" : "index" ,
"rel" : "canonical" ,
"protocol" : "" ,
"isPlainText" : false ,
"isHTML" : true ,
"noUgly" : false ,
"notAlternative" : false
} ,
{
"MediaType" : "application/json+json" ,
"name" : "JSON" ,
"mediaType" : {
"type" : "application/json" ,
"string" : "application/json+json" ,
"mainType" : "application" ,
"subType" : "json" ,
"suffix" : "json" ,
"delimiter" : "."
} ,
"path" : "" ,
"baseName" : "index" ,
"rel" : "alternate" ,
"protocol" : "" ,
"isPlainText" : true ,
"isHTML" : false ,
"noUgly" : false ,
"notAlternative" : false
} ,
2018-04-16 01:43:59 -04:00
{
"MediaType" : "text/plain+txt" ,
"name" : "ROBOTS" ,
"mediaType" : {
"type" : "text/plain" ,
"string" : "text/plain+txt" ,
"mainType" : "text" ,
"subType" : "plain" ,
"suffix" : "txt" ,
"delimiter" : "."
} ,
"path" : "" ,
"baseName" : "robots" ,
"rel" : "alternate" ,
"protocol" : "" ,
"isPlainText" : true ,
"isHTML" : false ,
"noUgly" : false ,
"notAlternative" : false
} ,
2017-08-10 11:18:22 -04:00
{
"MediaType" : "application/rss+xml" ,
"name" : "RSS" ,
"mediaType" : {
"type" : "application/rss" ,
"string" : "application/rss+xml" ,
"mainType" : "application" ,
"subType" : "rss" ,
"suffix" : "xml" ,
"delimiter" : "."
} ,
"path" : "" ,
"baseName" : "index" ,
"rel" : "alternate" ,
"protocol" : "" ,
"isPlainText" : false ,
"isHTML" : false ,
"noUgly" : true ,
"notAlternative" : false
2018-04-16 01:43:59 -04:00
} ,
{
"MediaType" : "application/xml+xml" ,
"name" : "Sitemap" ,
"mediaType" : {
"type" : "application/xml" ,
"string" : "application/xml+xml" ,
"mainType" : "application" ,
"subType" : "xml" ,
"suffix" : "xml" ,
"delimiter" : "."
} ,
"path" : "" ,
"baseName" : "sitemap" ,
"rel" : "sitemap" ,
"protocol" : "" ,
"isPlainText" : false ,
"isHTML" : false ,
"noUgly" : true ,
"notAlternative" : false
2017-08-10 11:18:22 -04:00
}
] ,
"layouts" : [
{
2018-01-31 05:07:47 -05:00
"Example" : "Single page in \"posts\" section" ,
"Kind" : "page" ,
"OutputFormat" : "HTML" ,
"Suffix" : "html" ,
"Template Lookup Order" : [
"layouts/posts/single.html.html" ,
"layouts/posts/single.html" ,
"layouts/_default/single.html.html" ,
"layouts/_default/single.html"
]
} ,
{
"Example" : "Single page in \"posts\" section with layout set" ,
"Kind" : "page" ,
"OutputFormat" : "HTML" ,
"Suffix" : "html" ,
"Template Lookup Order" : [
"layouts/posts/demolayout.html.html" ,
"layouts/posts/single.html.html" ,
"layouts/posts/demolayout.html" ,
"layouts/posts/single.html" ,
"layouts/_default/demolayout.html.html" ,
"layouts/_default/single.html.html" ,
"layouts/_default/demolayout.html" ,
"layouts/_default/single.html"
]
} ,
{
"Example" : "Single page in \"posts\" section with theme" ,
"Kind" : "page" ,
"OutputFormat" : "HTML" ,
"Suffix" : "html" ,
"Template Lookup Order" : [
"layouts/posts/single.html.html" ,
"demoTheme/layouts/posts/single.html.html" ,
"layouts/posts/single.html" ,
"demoTheme/layouts/posts/single.html" ,
"layouts/_default/single.html.html" ,
"demoTheme/layouts/_default/single.html.html" ,
"layouts/_default/single.html" ,
"demoTheme/layouts/_default/single.html"
]
} ,
{
"Example" : "AMP single page" ,
"Kind" : "page" ,
2017-08-10 11:18:22 -04:00
"OutputFormat" : "AMP" ,
"Suffix" : "html" ,
"Template Lookup Order" : [
2018-01-31 05:07:47 -05:00
"layouts/posts/single.amp.html" ,
"layouts/posts/single.html" ,
"layouts/_default/single.amp.html" ,
"layouts/_default/single.html"
]
} ,
{
"Example" : "AMP single page, French language" ,
"Kind" : "page" ,
"OutputFormat" : "AMP" ,
"Suffix" : "html" ,
"Template Lookup Order" : [
"layouts/posts/single.fr.amp.html" ,
"layouts/posts/single.amp.html" ,
"layouts/posts/single.fr.html" ,
"layouts/posts/single.html" ,
"layouts/_default/single.fr.amp.html" ,
"layouts/_default/single.amp.html" ,
"layouts/_default/single.fr.html" ,
"layouts/_default/single.html"
]
} ,
{
"Example" : "Home page" ,
"Kind" : "home" ,
"OutputFormat" : "HTML" ,
"Suffix" : "html" ,
"Template Lookup Order" : [
"layouts/index.html.html" ,
"layouts/home.html.html" ,
"layouts/list.html.html" ,
"layouts/index.html" ,
"layouts/home.html" ,
"layouts/list.html" ,
"layouts/_default/index.html.html" ,
"layouts/_default/home.html.html" ,
"layouts/_default/list.html.html" ,
"layouts/_default/index.html" ,
"layouts/_default/home.html" ,
"layouts/_default/list.html"
]
} ,
{
"Example" : "Home page with type set" ,
"Kind" : "home" ,
"OutputFormat" : "HTML" ,
"Suffix" : "html" ,
"Template Lookup Order" : [
"layouts/demotype/index.html.html" ,
"layouts/demotype/home.html.html" ,
"layouts/demotype/list.html.html" ,
"layouts/demotype/index.html" ,
"layouts/demotype/home.html" ,
"layouts/demotype/list.html" ,
"layouts/index.html.html" ,
"layouts/home.html.html" ,
"layouts/list.html.html" ,
"layouts/index.html" ,
"layouts/home.html" ,
"layouts/list.html" ,
"layouts/_default/index.html.html" ,
"layouts/_default/home.html.html" ,
"layouts/_default/list.html.html" ,
"layouts/_default/index.html" ,
"layouts/_default/home.html" ,
"layouts/_default/list.html"
]
} ,
{
"Example" : "Home page with layout set" ,
"Kind" : "home" ,
"OutputFormat" : "HTML" ,
"Suffix" : "html" ,
"Template Lookup Order" : [
"layouts/demolayout.html.html" ,
"layouts/index.html.html" ,
"layouts/home.html.html" ,
"layouts/list.html.html" ,
"layouts/demolayout.html" ,
"layouts/index.html" ,
"layouts/home.html" ,
"layouts/list.html" ,
"layouts/_default/demolayout.html.html" ,
"layouts/_default/index.html.html" ,
"layouts/_default/home.html.html" ,
"layouts/_default/list.html.html" ,
"layouts/_default/demolayout.html" ,
"layouts/_default/index.html" ,
"layouts/_default/home.html" ,
"layouts/_default/list.html"
]
} ,
{
"Example" : "Home page with theme" ,
"Kind" : "home" ,
"OutputFormat" : "HTML" ,
"Suffix" : "html" ,
"Template Lookup Order" : [
"layouts/index.html.html" ,
"demoTheme/layouts/index.html.html" ,
"layouts/home.html.html" ,
"demoTheme/layouts/home.html.html" ,
"layouts/list.html.html" ,
"demoTheme/layouts/list.html.html" ,
2017-08-10 11:18:22 -04:00
"layouts/index.html" ,
"demoTheme/layouts/index.html" ,
2018-01-31 05:07:47 -05:00
"layouts/home.html" ,
"demoTheme/layouts/home.html" ,
"layouts/list.html" ,
"demoTheme/layouts/list.html" ,
"layouts/_default/index.html.html" ,
"demoTheme/layouts/_default/index.html.html" ,
"layouts/_default/home.html.html" ,
"demoTheme/layouts/_default/home.html.html" ,
"layouts/_default/list.html.html" ,
"demoTheme/layouts/_default/list.html.html" ,
"layouts/_default/index.html" ,
"demoTheme/layouts/_default/index.html" ,
"layouts/_default/home.html" ,
"demoTheme/layouts/_default/home.html" ,
"layouts/_default/list.html" ,
2017-08-10 11:18:22 -04:00
"demoTheme/layouts/_default/list.html"
]
} ,
{
2018-01-31 05:07:47 -05:00
"Example" : "AMP home, French language\"" ,
"Kind" : "home" ,
2017-08-10 11:18:22 -04:00
"OutputFormat" : "AMP" ,
"Suffix" : "html" ,
"Template Lookup Order" : [
"layouts/index.fr.amp.html" ,
2018-01-31 05:07:47 -05:00
"layouts/home.fr.amp.html" ,
"layouts/list.fr.amp.html" ,
2017-08-10 11:18:22 -04:00
"layouts/index.amp.html" ,
2018-01-31 05:07:47 -05:00
"layouts/home.amp.html" ,
"layouts/list.amp.html" ,
2017-08-10 11:18:22 -04:00
"layouts/index.fr.html" ,
2018-01-31 05:07:47 -05:00
"layouts/home.fr.html" ,
"layouts/list.fr.html" ,
2017-08-10 11:18:22 -04:00
"layouts/index.html" ,
2018-01-31 05:07:47 -05:00
"layouts/home.html" ,
"layouts/list.html" ,
"layouts/_default/index.fr.amp.html" ,
"layouts/_default/home.fr.amp.html" ,
2017-08-10 11:18:22 -04:00
"layouts/_default/list.fr.amp.html" ,
2018-01-31 05:07:47 -05:00
"layouts/_default/index.amp.html" ,
"layouts/_default/home.amp.html" ,
2017-08-10 11:18:22 -04:00
"layouts/_default/list.amp.html" ,
2018-01-31 05:07:47 -05:00
"layouts/_default/index.fr.html" ,
"layouts/_default/home.fr.html" ,
2017-08-10 11:18:22 -04:00
"layouts/_default/list.fr.html" ,
2018-01-31 05:07:47 -05:00
"layouts/_default/index.html" ,
"layouts/_default/home.html" ,
2017-08-10 11:18:22 -04:00
"layouts/_default/list.html"
]
} ,
{
2018-01-31 05:07:47 -05:00
"Example" : "JSON home" ,
"Kind" : "home" ,
2017-08-10 11:18:22 -04:00
"OutputFormat" : "JSON" ,
"Suffix" : "json" ,
"Template Lookup Order" : [
"layouts/index.json.json" ,
2018-01-31 05:07:47 -05:00
"layouts/home.json.json" ,
"layouts/list.json.json" ,
2017-08-10 11:18:22 -04:00
"layouts/index.json" ,
2018-01-31 05:07:47 -05:00
"layouts/home.json" ,
"layouts/list.json" ,
"layouts/_default/index.json.json" ,
"layouts/_default/home.json.json" ,
2017-08-10 11:18:22 -04:00
"layouts/_default/list.json.json" ,
2018-01-31 05:07:47 -05:00
"layouts/_default/index.json" ,
"layouts/_default/home.json" ,
2017-08-10 11:18:22 -04:00
"layouts/_default/list.json"
]
} ,
{
2018-03-11 15:39:20 -04:00
"Example" : "RSS home with theme" ,
2018-01-31 05:07:47 -05:00
"Kind" : "home" ,
"OutputFormat" : "RSS" ,
"Suffix" : "xml" ,
2017-08-10 11:18:22 -04:00
"Template Lookup Order" : [
2018-01-31 05:07:47 -05:00
"layouts/index.rss.xml" ,
2018-03-11 15:39:20 -04:00
"demoTheme/layouts/index.rss.xml" ,
2018-01-31 05:07:47 -05:00
"layouts/home.rss.xml" ,
2018-03-11 15:39:20 -04:00
"demoTheme/layouts/home.rss.xml" ,
2018-01-31 05:07:47 -05:00
"layouts/rss.xml" ,
2018-03-11 15:39:20 -04:00
"demoTheme/layouts/rss.xml" ,
2018-01-31 05:07:47 -05:00
"layouts/list.rss.xml" ,
2018-03-11 15:39:20 -04:00
"demoTheme/layouts/list.rss.xml" ,
2018-01-31 05:07:47 -05:00
"layouts/index.xml" ,
2018-03-11 15:39:20 -04:00
"demoTheme/layouts/index.xml" ,
2018-01-31 05:07:47 -05:00
"layouts/home.xml" ,
2018-03-11 15:39:20 -04:00
"demoTheme/layouts/home.xml" ,
2018-01-31 05:07:47 -05:00
"layouts/list.xml" ,
2018-03-11 15:39:20 -04:00
"demoTheme/layouts/list.xml" ,
2018-01-31 05:07:47 -05:00
"layouts/_default/index.rss.xml" ,
2018-03-11 15:39:20 -04:00
"demoTheme/layouts/_default/index.rss.xml" ,
2018-01-31 05:07:47 -05:00
"layouts/_default/home.rss.xml" ,
2018-03-11 15:39:20 -04:00
"demoTheme/layouts/_default/home.rss.xml" ,
2018-01-31 05:07:47 -05:00
"layouts/_default/rss.xml" ,
2018-03-11 15:39:20 -04:00
"demoTheme/layouts/_default/rss.xml" ,
2018-01-31 05:07:47 -05:00
"layouts/_default/list.rss.xml" ,
2018-03-11 15:39:20 -04:00
"demoTheme/layouts/_default/list.rss.xml" ,
2018-01-31 05:07:47 -05:00
"layouts/_default/index.xml" ,
2018-03-11 15:39:20 -04:00
"demoTheme/layouts/_default/index.xml" ,
2018-01-31 05:07:47 -05:00
"layouts/_default/home.xml" ,
2018-03-11 15:39:20 -04:00
"demoTheme/layouts/_default/home.xml" ,
"layouts/_default/list.xml" ,
"demoTheme/layouts/_default/list.xml" ,
"layouts/_internal/_default/rss.xml"
]
} ,
{
"Example" : "RSS section posts" ,
"Kind" : "section" ,
"OutputFormat" : "RSS" ,
"Suffix" : "xml" ,
"Template Lookup Order" : [
"layouts/posts/section.rss.xml" ,
"layouts/posts/rss.xml" ,
"layouts/posts/list.rss.xml" ,
"layouts/posts/section.xml" ,
"layouts/posts/list.xml" ,
"layouts/section/section.rss.xml" ,
"layouts/section/rss.xml" ,
"layouts/section/list.rss.xml" ,
"layouts/section/section.xml" ,
"layouts/section/list.xml" ,
"layouts/_default/section.rss.xml" ,
"layouts/_default/rss.xml" ,
"layouts/_default/list.rss.xml" ,
"layouts/_default/section.xml" ,
"layouts/_default/list.xml" ,
"layouts/_internal/_default/rss.xml"
]
} ,
{
"Example" : "Taxonomy list in categories" ,
"Kind" : "taxonomy" ,
"OutputFormat" : "RSS" ,
"Suffix" : "xml" ,
"Template Lookup Order" : [
"layouts/categories/category.rss.xml" ,
"layouts/categories/taxonomy.rss.xml" ,
"layouts/categories/rss.xml" ,
"layouts/categories/list.rss.xml" ,
"layouts/categories/category.xml" ,
"layouts/categories/taxonomy.xml" ,
"layouts/categories/list.xml" ,
"layouts/taxonomy/category.rss.xml" ,
"layouts/taxonomy/taxonomy.rss.xml" ,
"layouts/taxonomy/rss.xml" ,
"layouts/taxonomy/list.rss.xml" ,
"layouts/taxonomy/category.xml" ,
"layouts/taxonomy/taxonomy.xml" ,
"layouts/taxonomy/list.xml" ,
"layouts/category/category.rss.xml" ,
"layouts/category/taxonomy.rss.xml" ,
"layouts/category/rss.xml" ,
"layouts/category/list.rss.xml" ,
"layouts/category/category.xml" ,
"layouts/category/taxonomy.xml" ,
"layouts/category/list.xml" ,
"layouts/_default/category.rss.xml" ,
"layouts/_default/taxonomy.rss.xml" ,
"layouts/_default/rss.xml" ,
"layouts/_default/list.rss.xml" ,
"layouts/_default/category.xml" ,
"layouts/_default/taxonomy.xml" ,
"layouts/_default/list.xml" ,
"layouts/_internal/_default/rss.xml"
]
} ,
{
"Example" : "Taxonomy terms in categories" ,
"Kind" : "taxonomyTerm" ,
"OutputFormat" : "RSS" ,
"Suffix" : "xml" ,
"Template Lookup Order" : [
"layouts/categories/category.terms.rss.xml" ,
"layouts/categories/terms.rss.xml" ,
"layouts/categories/rss.xml" ,
"layouts/categories/list.rss.xml" ,
"layouts/categories/category.terms.xml" ,
"layouts/categories/terms.xml" ,
"layouts/categories/list.xml" ,
"layouts/taxonomy/category.terms.rss.xml" ,
"layouts/taxonomy/terms.rss.xml" ,
"layouts/taxonomy/rss.xml" ,
"layouts/taxonomy/list.rss.xml" ,
"layouts/taxonomy/category.terms.xml" ,
"layouts/taxonomy/terms.xml" ,
"layouts/taxonomy/list.xml" ,
"layouts/category/category.terms.rss.xml" ,
"layouts/category/terms.rss.xml" ,
"layouts/category/rss.xml" ,
"layouts/category/list.rss.xml" ,
"layouts/category/category.terms.xml" ,
"layouts/category/terms.xml" ,
"layouts/category/list.xml" ,
"layouts/_default/category.terms.rss.xml" ,
"layouts/_default/terms.rss.xml" ,
"layouts/_default/rss.xml" ,
"layouts/_default/list.rss.xml" ,
"layouts/_default/category.terms.xml" ,
"layouts/_default/terms.xml" ,
2018-01-31 05:07:47 -05:00
"layouts/_default/list.xml" ,
"layouts/_internal/_default/rss.xml"
2017-08-10 11:18:22 -04:00
]
} ,
{
2018-01-31 05:07:47 -05:00
"Example" : "Section list for \"posts\" section" ,
"Kind" : "section" ,
2017-08-10 11:18:22 -04:00
"OutputFormat" : "HTML" ,
"Suffix" : "html" ,
"Template Lookup Order" : [
2018-01-31 05:07:47 -05:00
"layouts/posts/posts.html.html" ,
"layouts/posts/section.html.html" ,
"layouts/posts/list.html.html" ,
"layouts/posts/posts.html" ,
"layouts/posts/section.html" ,
"layouts/posts/list.html" ,
"layouts/section/posts.html.html" ,
"layouts/section/section.html.html" ,
"layouts/section/list.html.html" ,
"layouts/section/posts.html" ,
"layouts/section/section.html" ,
"layouts/section/list.html" ,
"layouts/_default/posts.html.html" ,
"layouts/_default/section.html.html" ,
"layouts/_default/list.html.html" ,
"layouts/_default/posts.html" ,
"layouts/_default/section.html" ,
"layouts/_default/list.html"
2017-08-10 11:18:22 -04:00
]
} ,
{
2018-01-31 05:07:47 -05:00
"Example" : "Section list for \"posts\" section with type set to \"blog\"" ,
"Kind" : "section" ,
"OutputFormat" : "HTML" ,
2017-08-10 11:18:22 -04:00
"Suffix" : "html" ,
"Template Lookup Order" : [
2018-01-31 05:07:47 -05:00
"layouts/blog/posts.html.html" ,
"layouts/blog/section.html.html" ,
"layouts/blog/list.html.html" ,
"layouts/blog/posts.html" ,
"layouts/blog/section.html" ,
"layouts/blog/list.html" ,
"layouts/posts/posts.html.html" ,
"layouts/posts/section.html.html" ,
"layouts/posts/list.html.html" ,
"layouts/posts/posts.html" ,
"layouts/posts/section.html" ,
"layouts/posts/list.html" ,
"layouts/section/posts.html.html" ,
"layouts/section/section.html.html" ,
"layouts/section/list.html.html" ,
"layouts/section/posts.html" ,
"layouts/section/section.html" ,
"layouts/section/list.html" ,
"layouts/_default/posts.html.html" ,
"layouts/_default/section.html.html" ,
"layouts/_default/list.html.html" ,
"layouts/_default/posts.html" ,
"layouts/_default/section.html" ,
"layouts/_default/list.html"
2017-08-10 11:18:22 -04:00
]
} ,
{
2018-01-31 05:07:47 -05:00
"Example" : "Section list for \"posts\" section with layout set to \"demoLayout\"" ,
"Kind" : "section" ,
"OutputFormat" : "HTML" ,
"Suffix" : "html" ,
2017-08-10 11:18:22 -04:00
"Template Lookup Order" : [
2018-01-31 05:07:47 -05:00
"layouts/posts/demolayout.html.html" ,
"layouts/posts/posts.html.html" ,
"layouts/posts/section.html.html" ,
"layouts/posts/list.html.html" ,
"layouts/posts/demolayout.html" ,
"layouts/posts/posts.html" ,
"layouts/posts/section.html" ,
"layouts/posts/list.html" ,
"layouts/section/demolayout.html.html" ,
"layouts/section/posts.html.html" ,
"layouts/section/section.html.html" ,
"layouts/section/list.html.html" ,
"layouts/section/demolayout.html" ,
"layouts/section/posts.html" ,
"layouts/section/section.html" ,
"layouts/section/list.html" ,
"layouts/_default/demolayout.html.html" ,
"layouts/_default/posts.html.html" ,
"layouts/_default/section.html.html" ,
"layouts/_default/list.html.html" ,
"layouts/_default/demolayout.html" ,
"layouts/_default/posts.html" ,
"layouts/_default/section.html" ,
"layouts/_default/list.html"
2017-08-10 11:18:22 -04:00
]
} ,
{
2018-01-31 05:07:47 -05:00
"Example" : "Taxonomy list in categories" ,
"Kind" : "taxonomy" ,
"OutputFormat" : "HTML" ,
"Suffix" : "html" ,
2017-08-10 11:18:22 -04:00
"Template Lookup Order" : [
2018-01-31 05:07:47 -05:00
"layouts/categories/category.html.html" ,
"layouts/categories/taxonomy.html.html" ,
"layouts/categories/list.html.html" ,
"layouts/categories/category.html" ,
"layouts/categories/taxonomy.html" ,
"layouts/categories/list.html" ,
"layouts/taxonomy/category.html.html" ,
"layouts/taxonomy/taxonomy.html.html" ,
"layouts/taxonomy/list.html.html" ,
"layouts/taxonomy/category.html" ,
"layouts/taxonomy/taxonomy.html" ,
"layouts/taxonomy/list.html" ,
"layouts/category/category.html.html" ,
"layouts/category/taxonomy.html.html" ,
"layouts/category/list.html.html" ,
"layouts/category/category.html" ,
"layouts/category/taxonomy.html" ,
"layouts/category/list.html" ,
"layouts/_default/category.html.html" ,
"layouts/_default/taxonomy.html.html" ,
"layouts/_default/list.html.html" ,
"layouts/_default/category.html" ,
"layouts/_default/taxonomy.html" ,
"layouts/_default/list.html"
2017-08-10 11:18:22 -04:00
]
} ,
{
2018-01-31 05:07:47 -05:00
"Example" : "Taxonomy term in categories" ,
"Kind" : "taxonomyTerm" ,
"OutputFormat" : "HTML" ,
"Suffix" : "html" ,
2017-08-10 11:18:22 -04:00
"Template Lookup Order" : [
2018-01-31 05:07:47 -05:00
"layouts/categories/category.terms.html.html" ,
"layouts/categories/terms.html.html" ,
"layouts/categories/list.html.html" ,
"layouts/categories/category.terms.html" ,
"layouts/categories/terms.html" ,
"layouts/categories/list.html" ,
"layouts/taxonomy/category.terms.html.html" ,
"layouts/taxonomy/terms.html.html" ,
"layouts/taxonomy/list.html.html" ,
"layouts/taxonomy/category.terms.html" ,
"layouts/taxonomy/terms.html" ,
"layouts/taxonomy/list.html" ,
"layouts/category/category.terms.html.html" ,
"layouts/category/terms.html.html" ,
"layouts/category/list.html.html" ,
"layouts/category/category.terms.html" ,
"layouts/category/terms.html" ,
"layouts/category/list.html" ,
"layouts/_default/category.terms.html.html" ,
"layouts/_default/terms.html.html" ,
"layouts/_default/list.html.html" ,
"layouts/_default/category.terms.html" ,
"layouts/_default/terms.html" ,
"layouts/_default/list.html"
2017-08-10 11:18:22 -04:00
]
}
]
} ,
"tpl" : {
"funcs" : {
"cast" : {
2017-10-15 04:20:55 -04:00
"ToFloat" : {
"Description" : "ToFloat converts the given value to a float." ,
"Args" : [
"v"
] ,
"Aliases" : [
"float"
] ,
"Examples" : [
[
"{{ \"1234\" | float | printf \"%T\" }}" ,
"float64"
]
]
} ,
2017-08-10 11:18:22 -04:00
"ToInt" : {
"Description" : "ToInt converts the given value to an int." ,
"Args" : [
"v"
] ,
"Aliases" : [
"int"
] ,
"Examples" : [
[
"{{ \"1234\" | int | printf \"%T\" }}" ,
"int"
]
]
} ,
"ToString" : {
"Description" : "ToString converts the given value to a string." ,
"Args" : [
"v"
] ,
"Aliases" : [
"string"
] ,
"Examples" : [
[
"{{ 1234 | string | printf \"%T\" }}" ,
"string"
]
]
}
} ,
"compare" : {
2017-09-25 03:02:42 -04:00
"Conditional" : {
"Description" : "Conditional can be used as a ternary operator.\nIt returns a if condition, else b." ,
"Args" : [
"condition" ,
"a" ,
"b"
] ,
"Aliases" : [
"cond"
] ,
"Examples" : [
[
"{{ cond (eq (add 2 2) 4) \"2+2 is 4\" \"what?\" | safeHTML }}" ,
"2+2 is 4"
]
]
} ,
2017-08-10 11:18:22 -04:00
"Default" : {
"Description" : "Default checks whether a given value is set and returns a default value if it\nis not. \"Set\" in this context means non-zero for numeric types and times;\nnon-zero length for strings, arrays, slices, and maps;\nany boolean or struct value; or non-nil for any other types." ,
"Args" : [
"dflt" ,
"given"
] ,
"Aliases" : [
"default"
] ,
"Examples" : [
[
"{{ \"Hugo Rocks!\" | default \"Hugo Rules!\" }}" ,
"Hugo Rocks!"
] ,
[
"{{ \"\" | default \"Hugo Rules!\" }}" ,
"Hugo Rules!"
]
]
} ,
"Eq" : {
"Description" : "Eq returns the boolean truth of arg1 == arg2." ,
"Args" : [
"x" ,
"y"
] ,
"Aliases" : [
"eq"
] ,
"Examples" : [
[
"{{ if eq .Section \"blog\" }}current{{ end }}" ,
"current"
]
]
} ,
"Ge" : {
"Description" : "Ge returns the boolean truth of arg1 \u003e= arg2." ,
"Args" : [
"a" ,
"b"
] ,
"Aliases" : [
"ge"
] ,
2018-03-11 15:39:20 -04:00
"Examples" : [
[
"{{ if ge .Hugo.Version \"0.36\" }}Reasonable new Hugo version!{{ end }}" ,
"Reasonable new Hugo version!"
]
]
2017-08-10 11:18:22 -04:00
} ,
"Gt" : {
"Description" : "Gt returns the boolean truth of arg1 \u003e arg2." ,
"Args" : [
"a" ,
"b"
] ,
"Aliases" : [
"gt"
] ,
"Examples" : [ ]
} ,
"Le" : {
"Description" : "Le returns the boolean truth of arg1 \u003c= arg2." ,
"Args" : [
"a" ,
"b"
] ,
"Aliases" : [
"le"
] ,
"Examples" : [ ]
} ,
"Lt" : {
"Description" : "Lt returns the boolean truth of arg1 \u003c arg2." ,
"Args" : [
"a" ,
"b"
] ,
"Aliases" : [
"lt"
] ,
"Examples" : [ ]
} ,
"Ne" : {
"Description" : "Ne returns the boolean truth of arg1 != arg2." ,
"Args" : [
"x" ,
"y"
] ,
"Aliases" : [
"ne"
] ,
"Examples" : [ ]
}
} ,
"collections" : {
"After" : {
"Description" : "After returns all the items after the first N in a rangeable list." ,
"Args" : [
"index" ,
"seq"
] ,
"Aliases" : [
"after"
] ,
"Examples" : [ ]
} ,
"Apply" : {
"Description" : "Apply takes a map, array, or slice and returns a new slice with the function fname applied over it." ,
"Args" : [
"seq" ,
"fname" ,
"args"
] ,
"Aliases" : [
"apply"
] ,
"Examples" : [ ]
} ,
"Delimit" : {
"Description" : "Delimit takes a given sequence and returns a delimited HTML string.\nIf last is passed to the function, it will be used as the final delimiter." ,
"Args" : [
"seq" ,
"delimiter" ,
"last"
] ,
"Aliases" : [
"delimit"
] ,
"Examples" : [
[
"{{ delimit (slice \"A\" \"B\" \"C\") \", \" \" and \" }}" ,
"A, B and C"
]
]
} ,
"Dictionary" : {
"Description" : "Dictionary creates a map[string]interface{} from the given parameters by\nwalking the parameters and treating them as key-value pairs. The number\nof parameters must be even." ,
"Args" : [
"values"
] ,
"Aliases" : [
"dict"
] ,
"Examples" : [ ]
} ,
"EchoParam" : {
"Description" : "EchoParam returns a given value if it is set; otherwise, it returns an\nempty string." ,
"Args" : [
"a" ,
"key"
] ,
"Aliases" : [
"echoParam"
] ,
"Examples" : [
[
"{{ echoParam .Params \"langCode\" }}" ,
"en"
]
]
} ,
"First" : {
"Description" : "First returns the first N items in a rangeable list." ,
"Args" : [
"limit" ,
"seq"
] ,
"Aliases" : [
"first"
] ,
"Examples" : [ ]
} ,
"In" : {
"Description" : "In returns whether v is in the set l. l may be an array or slice." ,
"Args" : [
"l" ,
"v"
] ,
"Aliases" : [
"in"
] ,
"Examples" : [
[
"{{ if in \"this string contains a substring\" \"substring\" }}Substring found!{{ end }}" ,
"Substring found!"
]
]
} ,
"Index" : {
"Description" : "Index returns the result of indexing its first argument by the following\narguments. Thus \"index x 1 2 3\" is, in Go syntax, x[1][2][3]. Each\nindexed item must be a map, slice, or array.\n\nCopied from Go stdlib src/text/template/funcs.go.\n\nWe deviate from the stdlib due to https://github.com/golang/go/issues/14751.\n\nTODO(moorereason): merge upstream changes." ,
"Args" : [
"item" ,
"indices"
] ,
"Aliases" : [
"index"
] ,
"Examples" : [ ]
} ,
"Intersect" : {
"Description" : "Intersect returns the common elements in the given sets, l1 and l2. l1 and\nl2 must be of the same type and may be either arrays or slices." ,
"Args" : [
"l1" ,
"l2"
] ,
"Aliases" : [
"intersect"
] ,
"Examples" : [ ]
} ,
"IsSet" : {
"Description" : "IsSet returns whether a given array, channel, slice, or map has a key\ndefined." ,
"Args" : [
"a" ,
"key"
] ,
"Aliases" : [
"isSet" ,
"isset"
] ,
"Examples" : [ ]
} ,
2017-09-25 03:02:42 -04:00
"KeyVals" : {
"Description" : "KeyVals creates a key and values wrapper." ,
"Args" : [
"key" ,
"vals"
] ,
"Aliases" : [
"keyVals"
] ,
"Examples" : [
[
"{{ keyVals \"key\" \"a\" \"b\" }}" ,
"key: [a b]"
]
]
} ,
2017-08-10 11:18:22 -04:00
"Last" : {
"Description" : "Last returns the last N items in a rangeable list." ,
"Args" : [
"limit" ,
"seq"
] ,
"Aliases" : [
"last"
] ,
"Examples" : [ ]
} ,
"Querify" : {
"Description" : "Querify encodes the given parameters in URL-encoded form (\"bar=baz\u0026foo=quux\") sorted by key." ,
"Args" : [
"params"
] ,
"Aliases" : [
"querify"
] ,
"Examples" : [
[
"{{ (querify \"foo\" 1 \"bar\" 2 \"baz\" \"with spaces\" \"qux\" \"this\u0026that=those\") | safeHTML }}" ,
"bar=2\u0026baz=with+spaces\u0026foo=1\u0026qux=this%26that%3Dthose"
] ,
[
"\u003ca href=\"https://www.google.com?{{ (querify \"q\" \"test\" \"page\" 3) | safeURL }}\"\u003eSearch\u003c/a\u003e" ,
"\u003ca href=\"https://www.google.com?page=3\u0026amp;q=test\"\u003eSearch\u003c/a\u003e"
]
]
} ,
"Seq" : {
"Description" : "Seq creates a sequence of integers. It's named and used as GNU's seq.\n\nExamples:\n 3 =\u003e 1, 2, 3\n 1 2 4 =\u003e 1, 3\n -3 =\u003e -1, -2, -3\n 1 4 =\u003e 1, 2, 3, 4\n 1 -2 =\u003e 1, 0, -1, -2" ,
"Args" : [
"args"
] ,
"Aliases" : [
"seq"
] ,
"Examples" : [
[
"{{ seq 3 }}" ,
"[1 2 3]"
]
]
} ,
"Shuffle" : {
"Description" : "Shuffle returns the given rangeable list in a randomised order." ,
"Args" : [
"seq"
] ,
"Aliases" : [
"shuffle"
] ,
"Examples" : [ ]
} ,
"Slice" : {
"Description" : "Slice returns a slice of all passed arguments." ,
"Args" : [
"args"
] ,
"Aliases" : [
"slice"
] ,
"Examples" : [
[
"{{ slice \"B\" \"C\" \"A\" | sort }}" ,
"[A B C]"
]
]
} ,
"Sort" : {
"Description" : "Sort returns a sorted sequence." ,
"Args" : [
"seq" ,
"args"
] ,
"Aliases" : [
"sort"
] ,
"Examples" : [ ]
} ,
"Union" : {
"Description" : "Union returns the union of the given sets, l1 and l2. l1 and\nl2 must be of the same type and may be either arrays or slices.\nIf l1 and l2 aren't of the same type then l1 will be returned.\nIf either l1 or l2 is nil then the non-nil list will be returned." ,
"Args" : [
"l1" ,
"l2"
] ,
"Aliases" : [
"union"
] ,
"Examples" : [
[
"{{ union (slice 1 2 3) (slice 3 4 5) }}" ,
"[1 2 3 4 5]"
]
]
} ,
"Uniq" : {
"Description" : "Uniq takes in a slice or array and returns a slice with subsequent\nduplicate elements removed." ,
"Args" : [
"l"
] ,
"Aliases" : [
"uniq"
] ,
"Examples" : [
[
"{{ slice 1 2 3 2 | uniq }}" ,
"[1 2 3]"
]
]
} ,
"Where" : {
"Description" : "Where returns a filtered subset of a given data type." ,
"Args" : [
"seq" ,
"key" ,
"args"
] ,
"Aliases" : [
"where"
] ,
"Examples" : [ ]
}
} ,
"crypto" : {
"MD5" : {
"Description" : "MD5 hashes the given input and returns its MD5 checksum." ,
"Args" : [
"in"
] ,
"Aliases" : [
"md5"
] ,
"Examples" : [
[
"{{ md5 \"Hello world, gophers!\" }}" ,
"b3029f756f98f79e7f1b7f1d1f0dd53b"
] ,
[
"{{ crypto.MD5 \"Hello world, gophers!\" }}" ,
"b3029f756f98f79e7f1b7f1d1f0dd53b"
]
]
} ,
"SHA1" : {
"Description" : "SHA1 hashes the given input and returns its SHA1 checksum." ,
"Args" : [
"in"
] ,
"Aliases" : [
"sha1"
] ,
"Examples" : [
[
"{{ sha1 \"Hello world, gophers!\" }}" ,
"c8b5b0e33d408246e30f53e32b8f7627a7a649d4"
]
]
} ,
"SHA256" : {
"Description" : "SHA256 hashes the given input and returns its SHA256 checksum." ,
"Args" : [
"in"
] ,
"Aliases" : [
"sha256"
] ,
"Examples" : [
[
"{{ sha256 \"Hello world, gophers!\" }}" ,
"6ec43b78da9669f50e4e422575c54bf87536954ccd58280219c393f2ce352b46"
]
]
}
} ,
"data" : {
"GetCSV" : {
"Description" : "GetCSV expects a data separator and one or n-parts of a URL to a resource which\ncan either be a local or a remote one.\nThe data separator can be a comma, semi-colon, pipe, etc, but only one character.\nIf you provide multiple parts for the URL they will be joined together to the final URL.\nGetCSV returns nil or a slice slice to use in a short code." ,
"Args" : [
"sep" ,
"urlParts"
] ,
"Aliases" : [
"getCSV"
] ,
"Examples" : [ ]
} ,
"GetJSON" : {
"Description" : "GetJSON expects one or n-parts of a URL to a resource which can either be a local or a remote one.\nIf you provide multiple parts they will be joined together to the final URL.\nGetJSON returns nil or parsed JSON to use in a short code." ,
"Args" : [
"urlParts"
] ,
"Aliases" : [
"getJSON"
] ,
"Examples" : [ ]
}
} ,
"encoding" : {
"Base64Decode" : {
"Description" : "Base64Decode returns the base64 decoding of the given content." ,
"Args" : [
"content"
] ,
"Aliases" : [
"base64Decode"
] ,
"Examples" : [
[
"{{ \"SGVsbG8gd29ybGQ=\" | base64Decode }}" ,
"Hello world"
] ,
[
"{{ 42 | base64Encode | base64Decode }}" ,
"42"
]
]
} ,
"Base64Encode" : {
"Description" : "Base64Encode returns the base64 encoding of the given content." ,
"Args" : [
"content"
] ,
"Aliases" : [
"base64Encode"
] ,
"Examples" : [
[
"{{ \"Hello world\" | base64Encode }}" ,
"SGVsbG8gd29ybGQ="
]
]
} ,
"Jsonify" : {
"Description" : "Jsonify encodes a given object to JSON." ,
"Args" : [
"v"
] ,
"Aliases" : [
"jsonify"
] ,
"Examples" : [
[
"{{ (slice \"A\" \"B\" \"C\") | jsonify }}" ,
"[\"A\",\"B\",\"C\"]"
]
]
}
} ,
"fmt" : {
2017-10-15 04:20:55 -04:00
"Errorf" : {
"Description" : "" ,
"Args" : [
"format" ,
"a"
] ,
"Aliases" : [
"errorf"
] ,
"Examples" : [
[
"{{ errorf \"%s.\" \"failed\" }}" ,
"failed."
]
]
} ,
2017-08-10 11:18:22 -04:00
"Print" : {
2017-09-25 03:02:42 -04:00
"Description" : "Print returns string representation of the passed arguments." ,
2017-08-10 11:18:22 -04:00
"Args" : [
"a"
] ,
"Aliases" : [
"print"
] ,
"Examples" : [
[
"{{ print \"works!\" }}" ,
"works!"
]
]
} ,
"Printf" : {
2017-09-25 03:02:42 -04:00
"Description" : "Printf returns a formatted string representation of the passed arguments." ,
2017-08-10 11:18:22 -04:00
"Args" : [
"format" ,
"a"
] ,
"Aliases" : [
"printf"
] ,
"Examples" : [
[
"{{ printf \"%s!\" \"works\" }}" ,
"works!"
]
]
} ,
"Println" : {
2017-10-15 04:20:55 -04:00
"Description" : "Println returns string representation of the passed arguments ending with a newline." ,
2017-08-10 11:18:22 -04:00
"Args" : [
"a"
] ,
"Aliases" : [
"println"
] ,
"Examples" : [
[
"{{ println \"works!\" }}" ,
"works!\n"
]
]
}
} ,
"images" : {
"Config" : {
"Description" : "Config returns the image.Config for the specified path relative to the\nworking directory." ,
"Args" : [
"path"
] ,
"Aliases" : [
"imageConfig"
] ,
"Examples" : [ ]
}
} ,
"inflect" : {
"Humanize" : {
"Description" : "Humanize returns the humanized form of a single parameter.\n\nIf the parameter is either an integer or a string containing an integer\nvalue, the behavior is to add the appropriate ordinal.\n\n Example: \"my-first-post\" -\u003e \"My first post\"\n Example: \"103\" -\u003e \"103rd\"\n Example: 52 -\u003e \"52nd\"" ,
"Args" : [
"in"
] ,
"Aliases" : [
"humanize"
] ,
"Examples" : [
[
"{{ humanize \"my-first-post\" }}" ,
"My first post"
] ,
[
"{{ humanize \"myCamelPost\" }}" ,
"My camel post"
] ,
[
"{{ humanize \"52\" }}" ,
"52nd"
] ,
[
"{{ humanize 103 }}" ,
"103rd"
]
]
} ,
"Pluralize" : {
"Description" : "Pluralize returns the plural form of a single word." ,
"Args" : [
"in"
] ,
"Aliases" : [
"pluralize"
] ,
"Examples" : [
[
"{{ \"cat\" | pluralize }}" ,
"cats"
]
]
} ,
"Singularize" : {
"Description" : "Singularize returns the singular form of a single word." ,
"Args" : [
"in"
] ,
"Aliases" : [
"singularize"
] ,
"Examples" : [
[
"{{ \"cats\" | singularize }}" ,
"cat"
]
]
}
} ,
"lang" : {
2018-04-16 01:43:59 -04:00
"Merge" : {
"Description" : "" ,
"Args" : null ,
"Aliases" : null ,
"Examples" : null
} ,
2017-08-10 11:18:22 -04:00
"NumFmt" : {
"Description" : "NumFmt formats a number with the given precision using the\nnegative, decimal, and grouping options. The `options`\nparameter is a string consisting of `\u003cnegative\u003e \u003cdecimal\u003e \u003cgrouping\u003e`. The\ndefault `options` value is `- . ,`.\n\nNote that numbers are rounded up at 5 or greater.\nSo, with precision set to 0, 1.5 becomes `2`, and 1.4 becomes `1`." ,
"Args" : [
"precision" ,
"number" ,
"options"
] ,
"Aliases" : null ,
"Examples" : [
[
"{{ lang.NumFmt 2 12345.6789 }}" ,
"12,345.68"
] ,
[
"{{ lang.NumFmt 2 12345.6789 \"- , .\" }}" ,
"12.345,68"
] ,
[
"{{ lang.NumFmt 6 -12345.6789 \"- .\" }}" ,
"-12345.678900"
] ,
[
"{{ lang.NumFmt 0 -12345.6789 \"- . ,\" }}" ,
"-12,346"
] ,
[
"{{ -98765.4321 | lang.NumFmt 2 }}" ,
"-98,765.43"
]
]
} ,
"Translate" : {
"Description" : "Translate ..." ,
"Args" : [
"id" ,
"args"
] ,
"Aliases" : [
"i18n" ,
"T"
] ,
"Examples" : [ ]
}
} ,
"math" : {
"Add" : {
2017-09-25 03:02:42 -04:00
"Description" : "Add adds two numbers." ,
2017-08-10 11:18:22 -04:00
"Args" : [
"a" ,
"b"
] ,
"Aliases" : [
"add"
] ,
"Examples" : [
[
"{{add 1 2}}" ,
"3"
]
]
} ,
2017-10-15 04:20:55 -04:00
"Ceil" : {
"Description" : "Ceil returns the least integer value greater than or equal to x." ,
"Args" : [
"x"
] ,
"Aliases" : null ,
"Examples" : [
[
"{{math.Ceil 2.1}}" ,
"3"
]
]
} ,
2017-08-10 11:18:22 -04:00
"Div" : {
2017-09-25 03:02:42 -04:00
"Description" : "Div divides two numbers." ,
2017-08-10 11:18:22 -04:00
"Args" : [
"a" ,
"b"
] ,
"Aliases" : [
"div"
] ,
"Examples" : [
[
"{{div 6 3}}" ,
"2"
]
]
} ,
2017-10-15 04:20:55 -04:00
"Floor" : {
"Description" : "Floor returns the greatest integer value less than or equal to x." ,
"Args" : [
"x"
] ,
"Aliases" : null ,
"Examples" : [
[
"{{math.Floor 1.9}}" ,
"1"
]
]
} ,
2017-08-10 11:18:22 -04:00
"Log" : {
2017-09-25 03:02:42 -04:00
"Description" : "Log returns the natural logarithm of a number." ,
2017-08-10 11:18:22 -04:00
"Args" : [
"a"
] ,
"Aliases" : null ,
"Examples" : [
[
"{{math.Log 1}}" ,
"0"
]
]
} ,
"Mod" : {
"Description" : "Mod returns a % b." ,
"Args" : [
"a" ,
"b"
] ,
"Aliases" : [
"mod"
] ,
"Examples" : [
[
"{{mod 15 3}}" ,
"0"
]
]
} ,
"ModBool" : {
"Description" : "ModBool returns the boolean of a % b. If a % b == 0, return true." ,
"Args" : [
"a" ,
"b"
] ,
"Aliases" : [
"modBool"
] ,
"Examples" : [
[
"{{modBool 15 3}}" ,
"true"
]
]
} ,
"Mul" : {
2017-09-25 03:02:42 -04:00
"Description" : "Mul multiplies two numbers." ,
2017-08-10 11:18:22 -04:00
"Args" : [
"a" ,
"b"
] ,
"Aliases" : [
"mul"
] ,
"Examples" : [
[
"{{mul 2 3}}" ,
"6"
]
]
} ,
2017-10-15 04:20:55 -04:00
"Round" : {
"Description" : "Round returns the nearest integer, rounding half away from zero." ,
"Args" : [
"x"
] ,
"Aliases" : null ,
"Examples" : [
[
"{{math.Round 1.5}}" ,
"2"
]
]
} ,
2017-08-10 11:18:22 -04:00
"Sub" : {
2017-09-25 03:02:42 -04:00
"Description" : "Sub subtracts two numbers." ,
2017-08-10 11:18:22 -04:00
"Args" : [
"a" ,
"b"
] ,
"Aliases" : [
"sub"
] ,
"Examples" : [
[
"{{sub 3 2}}" ,
"1"
]
]
}
} ,
"os" : {
2017-10-15 04:20:55 -04:00
"FileExists" : {
"Description" : "FileExists checks whether a file exists under the given path." ,
"Args" : [
"i"
] ,
"Aliases" : [
"fileExists"
] ,
"Examples" : [
[
"{{ fileExists \"foo.txt\" }}" ,
"false"
]
]
} ,
2017-08-10 11:18:22 -04:00
"Getenv" : {
"Description" : "Getenv retrieves the value of the environment variable named by the key.\nIt returns the value, which will be empty if the variable is not present." ,
"Args" : [
"key"
] ,
"Aliases" : [
"getenv"
] ,
"Examples" : [ ]
} ,
"ReadDir" : {
"Description" : "ReadDir lists the directory contents relative to the configured WorkingDir." ,
"Args" : [
"i"
] ,
"Aliases" : [
"readDir"
] ,
"Examples" : [
[
"{{ range (readDir \".\") }}{{ .Name }}{{ end }}" ,
"README.txt"
]
]
} ,
"ReadFile" : {
2017-09-25 03:02:42 -04:00
"Description" : "ReadFile reads the file named by filename relative to the configured WorkingDir.\nIt returns the contents as a string.\nThere is an upper size limit set at 1 megabytes." ,
2017-08-10 11:18:22 -04:00
"Args" : [
"i"
] ,
"Aliases" : [
"readFile"
] ,
"Examples" : [
[
"{{ readFile \"README.txt\" }}" ,
"Hugo Rocks!"
]
]
}
} ,
"partials" : {
"Include" : {
"Description" : "Include executes the named partial and returns either a string,\nwhen the partial is a text/template, or template.HTML when html/template." ,
"Args" : [
"name" ,
"contextList"
] ,
"Aliases" : [
"partial"
] ,
"Examples" : [
[
"{{ partial \"header.html\" . }}" ,
"\u003ctitle\u003eHugo Rocks!\u003c/title\u003e"
]
]
2017-10-15 04:20:55 -04:00
} ,
"IncludeCached" : {
"Description" : "IncludeCached executes and caches partial templates. An optional variant\nstring parameter (a string slice actually, but be only use a variadic\nargument to make it optional) can be passed so that a given partial can have\nmultiple uses. The cache is created with name+variant as the key." ,
"Args" : [
"name" ,
"context" ,
"variant"
] ,
"Aliases" : [
"partialCached"
] ,
"Examples" : [ ]
2017-08-10 11:18:22 -04:00
}
} ,
"safe" : {
"CSS" : {
"Description" : "CSS returns a given string as html/template CSS content." ,
"Args" : [
"a"
] ,
"Aliases" : [
"safeCSS"
] ,
"Examples" : [
[
"{{ \"Bat\u0026Man\" | safeCSS | safeCSS }}" ,
"Bat\u0026amp;Man"
]
]
} ,
"HTML" : {
"Description" : "HTML returns a given string as html/template HTML content." ,
"Args" : [
"a"
] ,
"Aliases" : [
"safeHTML"
] ,
"Examples" : [
[
"{{ \"Bat\u0026Man\" | safeHTML | safeHTML }}" ,
"Bat\u0026Man"
] ,
[
"{{ \"Bat\u0026Man\" | safeHTML }}" ,
"Bat\u0026Man"
]
]
} ,
"HTMLAttr" : {
"Description" : "HTMLAttr returns a given string as html/template HTMLAttr content." ,
"Args" : [
"a"
] ,
"Aliases" : [
"safeHTMLAttr"
] ,
"Examples" : [ ]
} ,
"JS" : {
"Description" : "JS returns the given string as a html/template JS content." ,
"Args" : [
"a"
] ,
"Aliases" : [
"safeJS"
] ,
"Examples" : [
[
"{{ \"(1*2)\" | safeJS | safeJS }}" ,
"(1*2)"
]
]
} ,
"JSStr" : {
"Description" : "JSStr returns the given string as a html/template JSStr content." ,
"Args" : [
"a"
] ,
"Aliases" : [
"safeJSStr"
] ,
"Examples" : [ ]
} ,
"SanitizeURL" : {
"Description" : "SanitizeURL returns a given string as html/template URL content." ,
"Args" : [
"a"
] ,
"Aliases" : [
"sanitizeURL" ,
"sanitizeurl"
] ,
"Examples" : [ ]
} ,
"URL" : {
"Description" : "URL returns a given string as html/template URL content." ,
"Args" : [
"a"
] ,
"Aliases" : [
"safeURL"
] ,
"Examples" : [
[
"{{ \"http://gohugo.io\" | safeURL | safeURL }}" ,
"http://gohugo.io"
]
]
}
} ,
"strings" : {
"Chomp" : {
"Description" : "Chomp returns a copy of s with all trailing newline characters removed." ,
"Args" : [
"s"
] ,
"Aliases" : [
"chomp"
] ,
"Examples" : [
[
2018-01-31 05:07:47 -05:00
"{{chomp \"\u003cp\u003eBlockhead\u003c/p\u003e\\n\" | safeHTML }}" ,
2017-08-10 11:18:22 -04:00
"\u003cp\u003eBlockhead\u003c/p\u003e"
]
]
} ,
"Contains" : {
"Description" : "" ,
"Args" : null ,
"Aliases" : null ,
"Examples" : null
} ,
"ContainsAny" : {
"Description" : "" ,
"Args" : null ,
"Aliases" : null ,
"Examples" : null
} ,
"CountRunes" : {
"Description" : "CountRunes returns the number of runes in s, excluding whitepace." ,
"Args" : [
"s"
] ,
"Aliases" : [
"countrunes"
] ,
"Examples" : [ ]
} ,
"CountWords" : {
"Description" : "CountWords returns the approximate word count in s." ,
"Args" : [
"s"
] ,
"Aliases" : [
"countwords"
] ,
"Examples" : [ ]
} ,
"FindRE" : {
"Description" : "FindRE returns a list of strings that match the regular expression. By default all matches\nwill be included. The number of matches can be limited with an optional third parameter." ,
"Args" : [
"expr" ,
"content" ,
"limit"
] ,
"Aliases" : [
"findRE"
] ,
"Examples" : [
[
"{{ findRE \"[G|g]o\" \"Hugo is a static side generator written in Go.\" \"1\" }}" ,
"[go]"
]
]
} ,
"HasPrefix" : {
"Description" : "HasPrefix tests whether the input s begins with prefix." ,
"Args" : [
"s" ,
"prefix"
] ,
"Aliases" : [
"hasPrefix"
] ,
"Examples" : [
[
"{{ hasPrefix \"Hugo\" \"Hu\" }}" ,
"true"
] ,
[
"{{ hasPrefix \"Hugo\" \"Fu\" }}" ,
"false"
]
]
} ,
"HasSuffix" : {
"Description" : "" ,
"Args" : null ,
"Aliases" : null ,
"Examples" : null
} ,
"Replace" : {
"Description" : "Replace returns a copy of the string s with all occurrences of old replaced\nwith new." ,
"Args" : [
"s" ,
"old" ,
"new"
] ,
"Aliases" : [
"replace"
] ,
"Examples" : [
[
"{{ replace \"Batman and Robin\" \"Robin\" \"Catwoman\" }}" ,
"Batman and Catwoman"
]
]
} ,
"ReplaceRE" : {
"Description" : "ReplaceRE returns a copy of s, replacing all matches of the regular\nexpression pattern with the replacement text repl." ,
"Args" : [
"pattern" ,
"repl" ,
"s"
] ,
"Aliases" : [
"replaceRE"
] ,
"Examples" : [ ]
} ,
"SliceString" : {
"Description" : "SliceString slices a string by specifying a half-open range with\ntwo indices, start and end. 1 and 4 creates a slice including elements 1 through 3.\nThe end index can be omitted, it defaults to the string's length." ,
"Args" : [
"a" ,
"startEnd"
] ,
"Aliases" : [
"slicestr"
] ,
"Examples" : [
[
"{{slicestr \"BatMan\" 0 3}}" ,
"Bat"
] ,
[
"{{slicestr \"BatMan\" 3}}" ,
"Man"
]
]
} ,
"Split" : {
"Description" : "Split slices an input string into all substrings separated by delimiter." ,
"Args" : [
"a" ,
"delimiter"
] ,
"Aliases" : [
"split"
] ,
"Examples" : [ ]
} ,
"Substr" : {
"Description" : "Substr extracts parts of a string, beginning at the character at the specified\nposition, and returns the specified number of characters.\n\nIt normally takes two parameters: start and length.\nIt can also take one parameter: start, i.e. length is omitted, in which case\nthe substring starting from start until the end of the string will be returned.\n\nTo extract characters from the end of the string, use a negative start number.\n\nIn addition, borrowing from the extended behavior described at http://php.net/substr,\nif length is given and is negative, then that many characters will be omitted from\nthe end of string." ,
"Args" : [
"a" ,
"nums"
] ,
"Aliases" : [
"substr"
] ,
"Examples" : [
[
"{{substr \"BatMan\" 0 -3}}" ,
"Bat"
] ,
[
"{{substr \"BatMan\" 3 3}}" ,
"Man"
]
]
} ,
"Title" : {
"Description" : "Title returns a copy of the input s with all Unicode letters that begin words\nmapped to their title case." ,
"Args" : [
"s"
] ,
"Aliases" : [
"title"
] ,
"Examples" : [
[
"{{title \"Bat man\"}}" ,
"Bat Man"
2017-09-25 03:02:42 -04:00
] ,
[
"{{title \"somewhere over the rainbow\"}}" ,
"Somewhere Over the Rainbow"
2017-08-10 11:18:22 -04:00
]
]
} ,
"ToLower" : {
"Description" : "ToLower returns a copy of the input s with all Unicode letters mapped to their\nlower case." ,
"Args" : [
"s"
] ,
"Aliases" : [
"lower"
] ,
"Examples" : [
[
"{{lower \"BatMan\"}}" ,
"batman"
]
]
} ,
"ToUpper" : {
"Description" : "ToUpper returns a copy of the input s with all Unicode letters mapped to their\nupper case." ,
"Args" : [
"s"
] ,
"Aliases" : [
"upper"
] ,
"Examples" : [
[
"{{upper \"BatMan\"}}" ,
"BATMAN"
]
]
} ,
"Trim" : {
"Description" : "Trim returns a string with all leading and trailing characters defined\ncontained in cutset removed." ,
"Args" : [
"s" ,
"cutset"
] ,
"Aliases" : [
"trim"
] ,
"Examples" : [
[
"{{ trim \"++Batman--\" \"+-\" }}" ,
"Batman"
]
]
} ,
2017-09-25 03:02:42 -04:00
"TrimLeft" : {
"Description" : "TrimLeft returns a slice of the string s with all leading characters\ncontained in cutset removed." ,
"Args" : [
"cutset" ,
"s"
] ,
"Aliases" : null ,
"Examples" : [
[
"{{ \"aabbaa\" | strings.TrimLeft \"a\" }}" ,
"bbaa"
]
]
} ,
2017-08-10 11:18:22 -04:00
"TrimPrefix" : {
2017-09-25 03:02:42 -04:00
"Description" : "TrimPrefix returns s without the provided leading prefix string. If s doesn't\nstart with prefix, s is returned unchanged." ,
"Args" : [
"prefix" ,
"s"
] ,
2017-08-10 11:18:22 -04:00
"Aliases" : null ,
2017-09-25 03:02:42 -04:00
"Examples" : [
[
"{{ \"aabbaa\" | strings.TrimPrefix \"a\" }}" ,
"abbaa"
] ,
[
"{{ \"aabbaa\" | strings.TrimPrefix \"aa\" }}" ,
"bbaa"
]
]
} ,
"TrimRight" : {
"Description" : "TrimRight returns a slice of the string s with all trailing characters\ncontained in cutset removed." ,
"Args" : [
"cutset" ,
"s"
] ,
"Aliases" : null ,
"Examples" : [
[
"{{ \"aabbaa\" | strings.TrimRight \"a\" }}" ,
"aabb"
]
]
2017-08-10 11:18:22 -04:00
} ,
"TrimSuffix" : {
2017-09-25 03:02:42 -04:00
"Description" : "TrimSuffix returns s without the provided trailing suffix string. If s\ndoesn't end with suffix, s is returned unchanged." ,
"Args" : [
"suffix" ,
"s"
] ,
2017-08-10 11:18:22 -04:00
"Aliases" : null ,
2017-09-25 03:02:42 -04:00
"Examples" : [
[
"{{ \"aabbaa\" | strings.TrimSuffix \"a\" }}" ,
"aabba"
] ,
[
"{{ \"aabbaa\" | strings.TrimSuffix \"aa\" }}" ,
"aabb"
]
]
2017-08-10 11:18:22 -04:00
} ,
"Truncate" : {
2017-09-25 03:02:42 -04:00
"Description" : "Truncate truncates a given string to the specified length." ,
2017-08-10 11:18:22 -04:00
"Args" : [
"a" ,
"options"
] ,
"Aliases" : [
"truncate"
] ,
"Examples" : [
[
"{{ \"this is a very long text\" | truncate 10 \" ...\" }}" ,
"this is a ..."
] ,
[
"{{ \"With [Markdown](/markdown) inside.\" | markdownify | truncate 14 }}" ,
"With \u003ca href=\"/markdown\"\u003eMarkdown …\u003c/a\u003e"
]
]
}
} ,
"time" : {
"AsTime" : {
"Description" : "AsTime converts the textual representation of the datetime string into\na time.Time interface." ,
"Args" : [
"v"
] ,
"Aliases" : null ,
"Examples" : [
[
"{{ (time \"2015-01-21\").Year }}" ,
"2015"
]
]
} ,
2017-09-25 03:02:42 -04:00
"Duration" : {
"Description" : "Duration converts the given number to a time.Duration.\nUnit is one of nanosecond/ns, microsecond/us/µs, millisecond/ms, second/s, minute/m or hour/h." ,
"Args" : [
"unit" ,
"number"
] ,
"Aliases" : [
"duration"
] ,
"Examples" : [
[
"{{ mul 60 60 | duration \"second\" }}" ,
"1h0m0s"
]
]
} ,
2017-08-10 11:18:22 -04:00
"Format" : {
"Description" : "Format converts the textual representation of the datetime string into\nthe other form or returns it of the time.Time value. These are formatted\nwith the layout string" ,
"Args" : [
"layout" ,
"v"
] ,
"Aliases" : [
"dateFormat"
] ,
"Examples" : [
[
"dateFormat: {{ dateFormat \"Monday, Jan 2, 2006\" \"2015-01-21\" }}" ,
"dateFormat: Wednesday, Jan 21, 2015"
]
]
} ,
"Now" : {
"Description" : "Now returns the current local time." ,
"Args" : null ,
"Aliases" : [
"now"
] ,
"Examples" : [ ]
2017-09-25 03:02:42 -04:00
} ,
"ParseDuration" : {
"Description" : "ParseDuration parses a duration string.\nA duration string is a possibly signed sequence of\ndecimal numbers, each with optional fraction and a unit suffix,\nsuch as \"300ms\", \"-1.5h\" or \"2h45m\".\nValid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\".\nSee https://golang.org/pkg/time/#ParseDuration" ,
"Args" : [
"in"
] ,
"Aliases" : null ,
"Examples" : [
[
"{{ \"1h12m10s\" | time.ParseDuration }}" ,
"1h12m10s"
]
]
2017-08-10 11:18:22 -04:00
}
} ,
"transform" : {
"Emojify" : {
"Description" : "Emojify returns a copy of s with all emoji codes replaced with actual emojis.\n\nSee http://www.emoji-cheat-sheet.com/" ,
"Args" : [
"s"
] ,
"Aliases" : [
"emojify"
] ,
"Examples" : [
[
"{{ \"I :heart: Hugo\" | emojify }}" ,
"I ❤️ Hugo"
]
]
} ,
"HTMLEscape" : {
"Description" : "HTMLEscape returns a copy of s with reserved HTML characters escaped." ,
"Args" : [
"s"
] ,
"Aliases" : [
"htmlEscape"
] ,
"Examples" : [
[
"{{ htmlEscape \"Cathal Garvey \u0026 The Sunshine Band \u003ccathal@foo.bar\u003e\" | safeHTML}}" ,
"Cathal Garvey \u0026amp; The Sunshine Band \u0026lt;cathal@foo.bar\u0026gt;"
] ,
[
"{{ htmlEscape \"Cathal Garvey \u0026 The Sunshine Band \u003ccathal@foo.bar\u003e\"}}" ,
"Cathal Garvey \u0026amp;amp; The Sunshine Band \u0026amp;lt;cathal@foo.bar\u0026amp;gt;"
] ,
[
"{{ htmlEscape \"Cathal Garvey \u0026 The Sunshine Band \u003ccathal@foo.bar\u003e\" | htmlUnescape | safeHTML }}" ,
"Cathal Garvey \u0026 The Sunshine Band \u003ccathal@foo.bar\u003e"
]
]
} ,
"HTMLUnescape" : {
"Description" : "HTMLUnescape returns a copy of with HTML escape requences converted to plain\ntext." ,
"Args" : [
"s"
] ,
"Aliases" : [
"htmlUnescape"
] ,
"Examples" : [
[
"{{ htmlUnescape \"Cathal Garvey \u0026amp; The Sunshine Band \u0026lt;cathal@foo.bar\u0026gt;\" | safeHTML}}" ,
"Cathal Garvey \u0026 The Sunshine Band \u003ccathal@foo.bar\u003e"
] ,
[
"{{\"Cathal Garvey \u0026amp;amp; The Sunshine Band \u0026amp;lt;cathal@foo.bar\u0026amp;gt;\" | htmlUnescape | htmlUnescape | safeHTML}}" ,
"Cathal Garvey \u0026 The Sunshine Band \u003ccathal@foo.bar\u003e"
] ,
[
"{{\"Cathal Garvey \u0026amp;amp; The Sunshine Band \u0026amp;lt;cathal@foo.bar\u0026amp;gt;\" | htmlUnescape | htmlUnescape }}" ,
"Cathal Garvey \u0026amp; The Sunshine Band \u0026lt;cathal@foo.bar\u0026gt;"
] ,
[
"{{ htmlUnescape \"Cathal Garvey \u0026amp; The Sunshine Band \u0026lt;cathal@foo.bar\u0026gt;\" | htmlEscape | safeHTML }}" ,
"Cathal Garvey \u0026amp; The Sunshine Band \u0026lt;cathal@foo.bar\u0026gt;"
]
]
} ,
"Highlight" : {
"Description" : "Highlight returns a copy of s as an HTML string with syntax\nhighlighting applied." ,
"Args" : [
"s" ,
"lang" ,
"opts"
] ,
"Aliases" : [
"highlight"
] ,
"Examples" : [ ]
} ,
"Markdownify" : {
"Description" : "Markdownify renders a given input from Markdown to HTML." ,
"Args" : [
"s"
] ,
"Aliases" : [
"markdownify"
] ,
"Examples" : [
[
"{{ .Title | markdownify}}" ,
"\u003cstrong\u003eBatMan\u003c/strong\u003e"
]
]
} ,
"Plainify" : {
"Description" : "Plainify returns a copy of s with all HTML tags removed." ,
"Args" : [
"s"
] ,
"Aliases" : [
"plainify"
] ,
"Examples" : [
[
"{{ plainify \"Hello \u003cstrong\u003eworld\u003c/strong\u003e, gophers!\" }}" ,
"Hello world, gophers!"
]
]
2018-03-11 15:39:20 -04:00
} ,
"Remarshal" : {
"Description" : "Remarshal is used in the Hugo documentation to convert configuration\nexamples from YAML to JSON, TOML (and possibly the other way around).\nThe is primarily a helper for the Hugo docs site.\nIt is not a general purpose YAML to TOML converter etc., and may\nchange without notice if it serves a purpose in the docs.\nFormat is one of json, yaml or toml." ,
"Args" : [
"format" ,
"data"
] ,
"Aliases" : null ,
"Examples" : [
[
"{{ \"title = \\\"Hello World\\\"\" | transform.Remarshal \"json\" | safeHTML }}" ,
"{\n \"title\": \"Hello World\"\n}\n"
]
]
2017-08-10 11:18:22 -04:00
}
} ,
"urls" : {
"AbsLangURL" : {
"Description" : "AbsLangURL takes a given string and converts it to an absolute URL according\nto a page's position in the project directory structure and the current\nlanguage." ,
"Args" : [
"a"
] ,
"Aliases" : [
"absLangURL"
] ,
"Examples" : [ ]
} ,
"AbsURL" : {
"Description" : "AbsURL takes a given string and converts it to an absolute URL." ,
"Args" : [
"a"
] ,
"Aliases" : [
"absURL"
] ,
"Examples" : [ ]
} ,
2017-10-15 04:20:55 -04:00
"Parse" : {
"Description" : "" ,
"Args" : null ,
"Aliases" : null ,
"Examples" : null
} ,
2017-08-10 11:18:22 -04:00
"Ref" : {
"Description" : "Ref returns the absolute URL path to a given content item." ,
"Args" : [
"in" ,
"refs"
] ,
"Aliases" : [
"ref"
] ,
"Examples" : [ ]
} ,
"RelLangURL" : {
"Description" : "RelLangURL takes a given string and prepends the relative path according to a\npage's position in the project directory structure and the current language." ,
"Args" : [
"a"
] ,
"Aliases" : [
"relLangURL"
] ,
"Examples" : [ ]
} ,
"RelRef" : {
"Description" : "RelRef returns the relative URL path to a given content item." ,
"Args" : [
"in" ,
"refs"
] ,
"Aliases" : [
"relref"
] ,
"Examples" : [ ]
} ,
"RelURL" : {
"Description" : "RelURL takes a given string and prepends the relative path according to a\npage's position in the project directory structure." ,
"Args" : [
"a"
] ,
"Aliases" : [
"relURL"
] ,
"Examples" : [ ]
} ,
"URLize" : {
2017-09-25 03:02:42 -04:00
"Description" : "URLize returns the given argument formatted as URL." ,
2017-08-10 11:18:22 -04:00
"Args" : [
"a"
] ,
"Aliases" : [
"urlize"
] ,
"Examples" : [ ]
}
}
}
}
}