# API 索引

你可以把 Hugo 開發理解成 Hugo 語言，他封裝了 Go 語言的功能提供給模板使用，並且自行解析模板、reflect 變數，可以說是自成一家的語言了。Go 語言的功能僅有有限的提供，因此即使你熟悉 Go/Go template，使用 Hugo 還是得看文檔才會使用。

Hugo 的 API 分為兩種：Methods and Functions。Methods 是 stateful，綁定在物件上，如 `.IsPage` 是綁定在 `.Page` 物件上，functions 則為 stateless 可以直接呼叫，也能用於 [archetype](https://gohugo.io/content-management/archetypes/#article) 中。

以下索引整理自 [Hugo 官方文檔](https://gohugo.io)，本站不重複撰寫這些內容，直接連回官方頁面查閱即可。

## Hugo Pipes

- [Introduction](https://gohugo.io/hugo-pipes/introduction/)
- [Bundling](https://gohugo.io/hugo-pipes/bundling/)
- [Fingerprinting](https://gohugo.io/hugo-pipes/fingerprint/)
- [JavaScript building](https://gohugo.io/hugo-pipes/js/)
- [Minification](https://gohugo.io/hugo-pipes/minification/)
- [PostCSS](https://gohugo.io/hugo-pipes/postcss/)
- [Resource from string](https://gohugo.io/hugo-pipes/resource-from-string/)
- [Resource from template](https://gohugo.io/hugo-pipes/resource-from-template/)
- [Transpile Sass to CSS](https://gohugo.io/hugo-pipes/transpile-sass-to-css/)

## Methods

### [Duration](https://gohugo.io/methods/duration/)

- [Abs](https://gohugo.io/methods/duration/abs/)
- [Hours](https://gohugo.io/methods/duration/hours/)
- [Microseconds](https://gohugo.io/methods/duration/microseconds/)
- [Milliseconds](https://gohugo.io/methods/duration/milliseconds/)
- [Minutes](https://gohugo.io/methods/duration/minutes/)
- [Nanoseconds](https://gohugo.io/methods/duration/nanoseconds/)
- [Round](https://gohugo.io/methods/duration/round/)
- [Seconds](https://gohugo.io/methods/duration/seconds/)
- [Truncate](https://gohugo.io/methods/duration/truncate/)

### [Menu](https://gohugo.io/methods/menu/)

- [ByName](https://gohugo.io/methods/menu/byname/)
- [ByWeight](https://gohugo.io/methods/menu/byweight/)
- [Limit](https://gohugo.io/methods/menu/limit/)
- [Reverse](https://gohugo.io/methods/menu/reverse/)

### [Menu entry](https://gohugo.io/methods/menu-entry/)

- [Children](https://gohugo.io/methods/menu-entry/children/)
- [HasChildren](https://gohugo.io/methods/menu-entry/haschildren/)
- [Identifier](https://gohugo.io/methods/menu-entry/identifier/)
- [KeyName](https://gohugo.io/methods/menu-entry/keyname/)
- [Menu](https://gohugo.io/methods/menu-entry/menu/)
- [Name](https://gohugo.io/methods/menu-entry/name/)
- [Page](https://gohugo.io/methods/menu-entry/page/)
- [PageRef](https://gohugo.io/methods/menu-entry/pageref/)
- [Params](https://gohugo.io/methods/menu-entry/params/)
- [Parent](https://gohugo.io/methods/menu-entry/parent/)
- [Post](https://gohugo.io/methods/menu-entry/post/)
- [Pre](https://gohugo.io/methods/menu-entry/pre/)
- [Title](https://gohugo.io/methods/menu-entry/title/)
- [URL](https://gohugo.io/methods/menu-entry/url/)
- [Weight](https://gohugo.io/methods/menu-entry/weight/)

### [Output format](https://gohugo.io/methods/output-format/)

- [MediaType](https://gohugo.io/methods/output-format/mediatype/)
- [Name](https://gohugo.io/methods/output-format/name/)
- [Permalink](https://gohugo.io/methods/output-format/permalink/)
- [Rel](https://gohugo.io/methods/output-format/rel/)
- [RelPermalink](https://gohugo.io/methods/output-format/relpermalink/)

### [Page](https://gohugo.io/methods/page/)

- [Aliases](https://gohugo.io/methods/page/aliases/)
- [AllTranslations](https://gohugo.io/methods/page/alltranslations/)
- [AlternativeOutputFormats](https://gohugo.io/methods/page/alternativeoutputformats/)
- [Ancestors](https://gohugo.io/methods/page/ancestors/)
- [BundleType](https://gohugo.io/methods/page/bundletype/)
- [CodeOwners](https://gohugo.io/methods/page/codeowners/)
- [Content](https://gohugo.io/methods/page/content/)
- [ContentWithoutSummary](https://gohugo.io/methods/page/contentwithoutsummary/)
- [CurrentSection](https://gohugo.io/methods/page/currentsection/)
- [Data](https://gohugo.io/methods/page/data/)
- [Date](https://gohugo.io/methods/page/date/)
- [Description](https://gohugo.io/methods/page/description/)
- [Draft](https://gohugo.io/methods/page/draft/)
- [Eq](https://gohugo.io/methods/page/eq/)
- [ExpiryDate](https://gohugo.io/methods/page/expirydate/)
- [File](https://gohugo.io/methods/page/file/)
- [FirstSection](https://gohugo.io/methods/page/firstsection/)
- [Fragments](https://gohugo.io/methods/page/fragments/)
- [FuzzyWordCount](https://gohugo.io/methods/page/fuzzywordcount/)
- [GetPage](https://gohugo.io/methods/page/getpage/)
- [GetTerms](https://gohugo.io/methods/page/getterms/)
- [GitInfo](https://gohugo.io/methods/page/gitinfo/)
- [HasMenuCurrent](https://gohugo.io/methods/page/hasmenucurrent/)
- [HasShortcode](https://gohugo.io/methods/page/hasshortcode/)
- [HeadingsFiltered](https://gohugo.io/methods/page/headingsfiltered/)
- [InSection](https://gohugo.io/methods/page/insection/)
- [IsAncestor](https://gohugo.io/methods/page/isancestor/)
- [IsBranch](https://gohugo.io/methods/page/isbranch/)
- [IsDescendant](https://gohugo.io/methods/page/isdescendant/)
- [IsHome](https://gohugo.io/methods/page/ishome/)
- [IsMenuCurrent](https://gohugo.io/methods/page/ismenucurrent/)
- [IsNode](https://gohugo.io/methods/page/isnode/)
- [IsPage](https://gohugo.io/methods/page/ispage/)
- [IsSection](https://gohugo.io/methods/page/issection/)
- [IsTranslated](https://gohugo.io/methods/page/istranslated/)
- [Keywords](https://gohugo.io/methods/page/keywords/)
- [Kind](https://gohugo.io/methods/page/kind/)
- [Language](https://gohugo.io/methods/page/language/)
- [Lastmod](https://gohugo.io/methods/page/lastmod/)
- [Layout](https://gohugo.io/methods/page/layout/)
- [Len](https://gohugo.io/methods/page/len/)
- [LinkTitle](https://gohugo.io/methods/page/linktitle/)
- [Next](https://gohugo.io/methods/page/next/)
- [NextInSection](https://gohugo.io/methods/page/nextinsection/)
- [OutputFormats](https://gohugo.io/methods/page/outputformats/)
- [Page](https://gohugo.io/methods/page/page/)
- [Pages](https://gohugo.io/methods/page/pages/)
- [Paginate](https://gohugo.io/methods/page/paginate/)
- [Paginator](https://gohugo.io/methods/page/paginator/)
- [Param](https://gohugo.io/methods/page/param/)
- [Params](https://gohugo.io/methods/page/params/)
- [Parent](https://gohugo.io/methods/page/parent/)
- [Path](https://gohugo.io/methods/page/path/)
- [Permalink](https://gohugo.io/methods/page/permalink/)
- [Plain](https://gohugo.io/methods/page/plain/)
- [PlainWords](https://gohugo.io/methods/page/plainwords/)
- [Prev](https://gohugo.io/methods/page/prev/)
- [PrevInSection](https://gohugo.io/methods/page/previnsection/)
- [PublishDate](https://gohugo.io/methods/page/publishdate/)
- [RawContent](https://gohugo.io/methods/page/rawcontent/)
- [ReadingTime](https://gohugo.io/methods/page/readingtime/)
- [Ref](https://gohugo.io/methods/page/ref/)
- [RegularPages](https://gohugo.io/methods/page/regularpages/)
- [RegularPagesRecursive](https://gohugo.io/methods/page/regularpagesrecursive/)
- [RelPermalink](https://gohugo.io/methods/page/relpermalink/)
- [RelRef](https://gohugo.io/methods/page/relref/)
- [Render](https://gohugo.io/methods/page/render/)
- [RenderShortcodes](https://gohugo.io/methods/page/rendershortcodes/)
- [RenderString](https://gohugo.io/methods/page/renderstring/)
- [Resources](https://gohugo.io/methods/page/resources/)
- [Rotate](https://gohugo.io/methods/page/rotate/)
- [Scratch](https://gohugo.io/methods/page/scratch/)
- [Section](https://gohugo.io/methods/page/section/)
- [Sections](https://gohugo.io/methods/page/sections/)
- [Site](https://gohugo.io/methods/page/site/)
- [Sitemap](https://gohugo.io/methods/page/sitemap/)
- [Sites](https://gohugo.io/methods/page/sites/)
- [Slug](https://gohugo.io/methods/page/slug/)
- [Store](https://gohugo.io/methods/page/store/)
- [Summary](https://gohugo.io/methods/page/summary/)
- [TableOfContents](https://gohugo.io/methods/page/tableofcontents/)
- [Title](https://gohugo.io/methods/page/title/)
- [TranslationKey](https://gohugo.io/methods/page/translationkey/)
- [Translations](https://gohugo.io/methods/page/translations/)
- [Truncated](https://gohugo.io/methods/page/truncated/)
- [Type](https://gohugo.io/methods/page/type/)
- [Weight](https://gohugo.io/methods/page/weight/)
- [WordCount](https://gohugo.io/methods/page/wordcount/)

### [Pager](https://gohugo.io/methods/pager/)

- [First](https://gohugo.io/methods/pager/first/)
- [HasNext](https://gohugo.io/methods/pager/hasnext/)
- [HasPrev](https://gohugo.io/methods/pager/hasprev/)
- [Last](https://gohugo.io/methods/pager/last/)
- [Next](https://gohugo.io/methods/pager/next/)
- [NumberOfElements](https://gohugo.io/methods/pager/numberofelements/)
- [PageGroups](https://gohugo.io/methods/pager/pagegroups/)
- [PageNumber](https://gohugo.io/methods/pager/pagenumber/)
- [PagerSize](https://gohugo.io/methods/pager/pagersize/)
- [Pagers](https://gohugo.io/methods/pager/pagers/)
- [Pages](https://gohugo.io/methods/pager/pages/)
- [Prev](https://gohugo.io/methods/pager/prev/)
- [TotalNumberOfElements](https://gohugo.io/methods/pager/totalnumberofelements/)
- [TotalPages](https://gohugo.io/methods/pager/totalpages/)
- [URL](https://gohugo.io/methods/pager/url/)

### [Pages](https://gohugo.io/methods/pages/)

- [ByDate](https://gohugo.io/methods/pages/bydate/)
- [ByExpiryDate](https://gohugo.io/methods/pages/byexpirydate/)
- [ByLanguage](https://gohugo.io/methods/pages/bylanguage/)
- [ByLastmod](https://gohugo.io/methods/pages/bylastmod/)
- [ByLength](https://gohugo.io/methods/pages/bylength/)
- [ByLinkTitle](https://gohugo.io/methods/pages/bylinktitle/)
- [ByParam](https://gohugo.io/methods/pages/byparam/)
- [ByPublishDate](https://gohugo.io/methods/pages/bypublishdate/)
- [ByTitle](https://gohugo.io/methods/pages/bytitle/)
- [ByWeight](https://gohugo.io/methods/pages/byweight/)
- [GroupBy](https://gohugo.io/methods/pages/groupby/)
- [GroupByDate](https://gohugo.io/methods/pages/groupbydate/)
- [GroupByExpiryDate](https://gohugo.io/methods/pages/groupbyexpirydate/)
- [GroupByLastmod](https://gohugo.io/methods/pages/groupbylastmod/)
- [GroupByParam](https://gohugo.io/methods/pages/groupbyparam/)
- [GroupByParamDate](https://gohugo.io/methods/pages/groupbyparamdate/)
- [GroupByPublishDate](https://gohugo.io/methods/pages/groupbypublishdate/)
- [Len](https://gohugo.io/methods/pages/len/)
- [Limit](https://gohugo.io/methods/pages/limit/)
- [Next](https://gohugo.io/methods/pages/next/)
- [Prev](https://gohugo.io/methods/pages/prev/)
- [Related](https://gohugo.io/methods/pages/related/)
- [Reverse](https://gohugo.io/methods/pages/reverse/)

### [Resource](https://gohugo.io/methods/resource/)

- [Colors](https://gohugo.io/methods/resource/colors/)
- [Content](https://gohugo.io/methods/resource/content/)
- [Crop](https://gohugo.io/methods/resource/crop/)
- [Data](https://gohugo.io/methods/resource/data/)
- [Err](https://gohugo.io/methods/resource/err/)
- [Exif](https://gohugo.io/methods/resource/exif/)
- [Fill](https://gohugo.io/methods/resource/fill/)
- [Filter](https://gohugo.io/methods/resource/filter/)
- [Fit](https://gohugo.io/methods/resource/fit/)
- [Height](https://gohugo.io/methods/resource/height/)
- [MediaType](https://gohugo.io/methods/resource/mediatype/)
- [Meta](https://gohugo.io/methods/resource/meta/)
- [Name](https://gohugo.io/methods/resource/name/)
- [Params](https://gohugo.io/methods/resource/params/)
- [Permalink](https://gohugo.io/methods/resource/permalink/)
- [Process](https://gohugo.io/methods/resource/process/)
- [Publish](https://gohugo.io/methods/resource/publish/)
- [RelPermalink](https://gohugo.io/methods/resource/relpermalink/)
- [Resize](https://gohugo.io/methods/resource/resize/)
- [ResourceType](https://gohugo.io/methods/resource/resourcetype/)
- [Title](https://gohugo.io/methods/resource/title/)
- [Width](https://gohugo.io/methods/resource/width/)

### [Shortcode](https://gohugo.io/methods/shortcode/)

- [Get](https://gohugo.io/methods/shortcode/get/)
- [Inner](https://gohugo.io/methods/shortcode/inner/)
- [InnerDeindent](https://gohugo.io/methods/shortcode/innerdeindent/)
- [IsNamedParams](https://gohugo.io/methods/shortcode/isnamedparams/)
- [Name](https://gohugo.io/methods/shortcode/name/)
- [Ordinal](https://gohugo.io/methods/shortcode/ordinal/)
- [Page](https://gohugo.io/methods/shortcode/page/)
- [Params](https://gohugo.io/methods/shortcode/params/)
- [Parent](https://gohugo.io/methods/shortcode/parent/)
- [Position](https://gohugo.io/methods/shortcode/position/)
- [Ref](https://gohugo.io/methods/shortcode/ref/)
- [RelRef](https://gohugo.io/methods/shortcode/relref/)
- [Scratch](https://gohugo.io/methods/shortcode/scratch/)
- [Site](https://gohugo.io/methods/shortcode/site/)
- [Store](https://gohugo.io/methods/shortcode/store/)

### [Site](https://gohugo.io/methods/site/)

- [AllPages](https://gohugo.io/methods/site/allpages/)
- [BaseURL](https://gohugo.io/methods/site/baseurl/)
- [BuildDrafts](https://gohugo.io/methods/site/builddrafts/)
- [Config](https://gohugo.io/methods/site/config/)
- [Copyright](https://gohugo.io/methods/site/copyright/)
- [Data](https://gohugo.io/methods/site/data/)
- [Dimension](https://gohugo.io/methods/site/dimension/)
- [GetPage](https://gohugo.io/methods/site/getpage/)
- [Home](https://gohugo.io/methods/site/home/)
- [IsDefault](https://gohugo.io/methods/site/isdefault/)
- [Language](https://gohugo.io/methods/site/language/)
- [LanguagePrefix](https://gohugo.io/methods/site/languageprefix/)
- [Languages](https://gohugo.io/methods/site/languages/)
- [Lastmod](https://gohugo.io/methods/site/lastmod/)
- [MainSections](https://gohugo.io/methods/site/mainsections/)
- [Menus](https://gohugo.io/methods/site/menus/)
- [Pages](https://gohugo.io/methods/site/pages/)
- [Param](https://gohugo.io/methods/site/param/)
- [Params](https://gohugo.io/methods/site/params/)
- [RegularPages](https://gohugo.io/methods/site/regularpages/)
- [Role](https://gohugo.io/methods/site/role/)
- [Sections](https://gohugo.io/methods/site/sections/)
- [Sites](https://gohugo.io/methods/site/sites/)
- [Store](https://gohugo.io/methods/site/store/)
- [Taxonomies](https://gohugo.io/methods/site/taxonomies/)
- [Title](https://gohugo.io/methods/site/title/)
- [Version](https://gohugo.io/methods/site/version/)

### [Taxonomy](https://gohugo.io/methods/taxonomy/)

- [Alphabetical](https://gohugo.io/methods/taxonomy/alphabetical/)
- [ByCount](https://gohugo.io/methods/taxonomy/bycount/)
- [Count](https://gohugo.io/methods/taxonomy/count/)
- [Get](https://gohugo.io/methods/taxonomy/get/)
- [Page](https://gohugo.io/methods/taxonomy/page/)

### [Time](https://gohugo.io/methods/time/)

- [Add](https://gohugo.io/methods/time/add/)
- [AddDate](https://gohugo.io/methods/time/adddate/)
- [After](https://gohugo.io/methods/time/after/)
- [Before](https://gohugo.io/methods/time/before/)
- [Day](https://gohugo.io/methods/time/day/)
- [Equal](https://gohugo.io/methods/time/equal/)
- [Format](https://gohugo.io/methods/time/format/)
- [Hour](https://gohugo.io/methods/time/hour/)
- [IsDST](https://gohugo.io/methods/time/isdst/)
- [IsZero](https://gohugo.io/methods/time/iszero/)
- [Local](https://gohugo.io/methods/time/local/)
- [Minute](https://gohugo.io/methods/time/minute/)
- [Month](https://gohugo.io/methods/time/month/)
- [Nanosecond](https://gohugo.io/methods/time/nanosecond/)
- [Round](https://gohugo.io/methods/time/round/)
- [Second](https://gohugo.io/methods/time/second/)
- [Sub](https://gohugo.io/methods/time/sub/)
- [Truncate](https://gohugo.io/methods/time/truncate/)
- [UTC](https://gohugo.io/methods/time/utc/)
- [Unix](https://gohugo.io/methods/time/unix/)
- [UnixMicro](https://gohugo.io/methods/time/unixmicro/)
- [UnixMilli](https://gohugo.io/methods/time/unixmilli/)
- [UnixNano](https://gohugo.io/methods/time/unixnano/)
- [Weekday](https://gohugo.io/methods/time/weekday/)
- [Year](https://gohugo.io/methods/time/year/)
- [YearDay](https://gohugo.io/methods/time/yearday/)

## Functions

### [cast](https://gohugo.io/functions/cast/)

- [cast.ToFloat](https://gohugo.io/functions/cast/tofloat/)
- [cast.ToInt](https://gohugo.io/functions/cast/toint/)
- [cast.ToString](https://gohugo.io/functions/cast/tostring/)

### [collections](https://gohugo.io/functions/collections/)

- [collections.After](https://gohugo.io/functions/collections/after/)
- [collections.Append](https://gohugo.io/functions/collections/append/)
- [collections.Apply](https://gohugo.io/functions/collections/apply/)
- [collections.Complement](https://gohugo.io/functions/collections/complement/)
- [collections.D](https://gohugo.io/functions/collections/d/)
- [collections.Delimit](https://gohugo.io/functions/collections/delimit/)
- [collections.Dictionary](https://gohugo.io/functions/collections/dictionary/)
- [collections.First](https://gohugo.io/functions/collections/first/)
- [collections.Group](https://gohugo.io/functions/collections/group/)
- [collections.In](https://gohugo.io/functions/collections/in/)
- [collections.Index](https://gohugo.io/functions/collections/indexfunction/)
- [collections.Intersect](https://gohugo.io/functions/collections/intersect/)
- [collections.IsSet](https://gohugo.io/functions/collections/isset/)
- [collections.KeyVals](https://gohugo.io/functions/collections/keyvals/)
- [collections.Last](https://gohugo.io/functions/collections/last/)
- [collections.Merge](https://gohugo.io/functions/collections/merge/)
- [collections.NewScratch](https://gohugo.io/functions/collections/newscratch/)
- [collections.Querify](https://gohugo.io/functions/collections/querify/)
- [collections.Reverse](https://gohugo.io/functions/collections/reverse/)
- [collections.Seq](https://gohugo.io/functions/collections/seq/)
- [collections.Shuffle](https://gohugo.io/functions/collections/shuffle/)
- [collections.Slice](https://gohugo.io/functions/collections/slice/)
- [collections.Sort](https://gohugo.io/functions/collections/sort/)
- [collections.SymDiff](https://gohugo.io/functions/collections/symdiff/)
- [collections.Union](https://gohugo.io/functions/collections/union/)
- [collections.Uniq](https://gohugo.io/functions/collections/uniq/)
- [collections.Where](https://gohugo.io/functions/collections/where/)

### [compare](https://gohugo.io/functions/compare/)

- [compare.Conditional](https://gohugo.io/functions/compare/conditional/)
- [compare.Default](https://gohugo.io/functions/compare/default/)
- [compare.Eq](https://gohugo.io/functions/compare/eq/)
- [compare.Ge](https://gohugo.io/functions/compare/ge/)
- [compare.Gt](https://gohugo.io/functions/compare/gt/)
- [compare.Le](https://gohugo.io/functions/compare/le/)
- [compare.Lt](https://gohugo.io/functions/compare/lt/)
- [compare.Ne](https://gohugo.io/functions/compare/ne/)

### [crypto](https://gohugo.io/functions/crypto/)

- [crypto.HMAC](https://gohugo.io/functions/crypto/hmac/)
- [crypto.Hash](https://gohugo.io/functions/crypto/hash/)
- [crypto.MD5](https://gohugo.io/functions/crypto/md5/)
- [crypto.SHA1](https://gohugo.io/functions/crypto/sha1/)
- [crypto.SHA256](https://gohugo.io/functions/crypto/sha256/)

### [css](https://gohugo.io/functions/css/)

- [css.Build](https://gohugo.io/functions/css/build/)
- [css.PostCSS](https://gohugo.io/functions/css/postcss/)
- [css.Quoted](https://gohugo.io/functions/css/quoted/)
- [css.Sass](https://gohugo.io/functions/css/sass/)
- [css.TailwindCSS](https://gohugo.io/functions/css/tailwindcss/)
- [css.Unquoted](https://gohugo.io/functions/css/unquoted/)

### [debug](https://gohugo.io/functions/debug/)

- [debug.Dump](https://gohugo.io/functions/debug/dump/)
- [debug.Timer](https://gohugo.io/functions/debug/timer/)
- [debug.VisualizeSpaces](https://gohugo.io/functions/debug/visualizespaces/)

### [diagrams](https://gohugo.io/functions/diagrams/)

- [diagrams.Goat](https://gohugo.io/functions/diagrams/goat/)

### [encoding](https://gohugo.io/functions/encoding/)

- [encoding.Base64Decode](https://gohugo.io/functions/encoding/base64decode/)
- [encoding.Base64Encode](https://gohugo.io/functions/encoding/base64encode/)
- [encoding.HexDecode](https://gohugo.io/functions/encoding/hexdecode/)
- [encoding.HexEncode](https://gohugo.io/functions/encoding/hexencode/)
- [encoding.Jsonify](https://gohugo.io/functions/encoding/jsonify/)

### [fmt](https://gohugo.io/functions/fmt/)

- [fmt.Errorf](https://gohugo.io/functions/fmt/errorf/)
- [fmt.Erroridf](https://gohugo.io/functions/fmt/erroridf/)
- [fmt.Print](https://gohugo.io/functions/fmt/print/)
- [fmt.Printf](https://gohugo.io/functions/fmt/printf/)
- [fmt.Println](https://gohugo.io/functions/fmt/println/)
- [fmt.Warnf](https://gohugo.io/functions/fmt/warnf/)
- [fmt.Warnidf](https://gohugo.io/functions/fmt/warnidf/)

### [global](https://gohugo.io/functions/global/)

- [page](https://gohugo.io/functions/global/page/)
- [site](https://gohugo.io/functions/global/site/)

### [go template](https://gohugo.io/functions/go-template/)

- [and](https://gohugo.io/functions/go-template/and/)
- [block](https://gohugo.io/functions/go-template/block/)
- [break](https://gohugo.io/functions/go-template/break/)
- [continue](https://gohugo.io/functions/go-template/continue/)
- [define](https://gohugo.io/functions/go-template/define/)
- [else](https://gohugo.io/functions/go-template/else/)
- [end](https://gohugo.io/functions/go-template/end/)
- [if](https://gohugo.io/functions/go-template/if/)
- [len](https://gohugo.io/functions/go-template/len/)
- [not](https://gohugo.io/functions/go-template/not/)
- [or](https://gohugo.io/functions/go-template/or/)
- [range](https://gohugo.io/functions/go-template/range/)
- [return](https://gohugo.io/functions/go-template/return/)
- [template](https://gohugo.io/functions/go-template/template/)
- [try](https://gohugo.io/functions/go-template/try/)
- [urlquery](https://gohugo.io/functions/go-template/urlquery/)
- [with](https://gohugo.io/functions/go-template/with/)

### [hash](https://gohugo.io/functions/hash/)

- [hash.FNV32a](https://gohugo.io/functions/hash/fnv32a/)
- [hash.XxHash](https://gohugo.io/functions/hash/xxhash/)

### [hugo](https://gohugo.io/functions/hugo/)

- [hugo.BuildDate](https://gohugo.io/functions/hugo/builddate/)
- [hugo.CommitHash](https://gohugo.io/functions/hugo/commithash/)
- [hugo.Data](https://gohugo.io/functions/hugo/data/)
- [hugo.Deps](https://gohugo.io/functions/hugo/deps/)
- [hugo.Environment](https://gohugo.io/functions/hugo/environment/)
- [hugo.Generator](https://gohugo.io/functions/hugo/generator/)
- [hugo.GoVersion](https://gohugo.io/functions/hugo/goversion/)
- [hugo.IsDevelopment](https://gohugo.io/functions/hugo/isdevelopment/)
- [hugo.IsExtended](https://gohugo.io/functions/hugo/isextended/)
- [hugo.IsMultihost](https://gohugo.io/functions/hugo/ismultihost/)
- [hugo.IsMultilingual](https://gohugo.io/functions/hugo/ismultilingual/)
- [hugo.IsProduction](https://gohugo.io/functions/hugo/isproduction/)
- [hugo.IsServer](https://gohugo.io/functions/hugo/isserver/)
- [hugo.Sites](https://gohugo.io/functions/hugo/sites/)
- [hugo.Store](https://gohugo.io/functions/hugo/store/)
- [hugo.Version](https://gohugo.io/functions/hugo/version/)
- [hugo.WorkingDir](https://gohugo.io/functions/hugo/workingdir/)

### [images](https://gohugo.io/functions/images/)

- [images.AutoOrient](https://gohugo.io/functions/images/autoorient/)
- [images.Brightness](https://gohugo.io/functions/images/brightness/)
- [images.ColorBalance](https://gohugo.io/functions/images/colorbalance/)
- [images.Colorize](https://gohugo.io/functions/images/colorize/)
- [images.Config](https://gohugo.io/functions/images/config/)
- [images.Contrast](https://gohugo.io/functions/images/contrast/)
- [images.Dither](https://gohugo.io/functions/images/dither/)
- [images.Filter](https://gohugo.io/functions/images/filter/)
- [images.Gamma](https://gohugo.io/functions/images/gamma/)
- [images.GaussianBlur](https://gohugo.io/functions/images/gaussianblur/)
- [images.Grayscale](https://gohugo.io/functions/images/grayscale/)
- [images.Hue](https://gohugo.io/functions/images/hue/)
- [images.Invert](https://gohugo.io/functions/images/invert/)
- [images.Mask](https://gohugo.io/functions/images/mask/)
- [images.Opacity](https://gohugo.io/functions/images/opacity/)
- [images.Overlay](https://gohugo.io/functions/images/overlay/)
- [images.Padding](https://gohugo.io/functions/images/padding/)
- [images.Pixelate](https://gohugo.io/functions/images/pixelate/)
- [images.Process](https://gohugo.io/functions/images/process/)
- [images.QR](https://gohugo.io/functions/images/qr/)
- [images.Saturation](https://gohugo.io/functions/images/saturation/)
- [images.Sepia](https://gohugo.io/functions/images/sepia/)
- [images.Sigmoid](https://gohugo.io/functions/images/sigmoid/)
- [images.Text](https://gohugo.io/functions/images/text/)
- [images.UnsharpMask](https://gohugo.io/functions/images/unsharpmask/)

### [inflect](https://gohugo.io/functions/inflect/)

- [inflect.Humanize](https://gohugo.io/functions/inflect/humanize/)
- [inflect.Pluralize](https://gohugo.io/functions/inflect/pluralize/)
- [inflect.Singularize](https://gohugo.io/functions/inflect/singularize/)

### [js](https://gohugo.io/functions/js/)

- [js.Babel](https://gohugo.io/functions/js/babel/)
- [js.Batch](https://gohugo.io/functions/js/batch/)
- [js.Build](https://gohugo.io/functions/js/build/)

### [lang](https://gohugo.io/functions/lang/)

- [lang.FormatAccounting](https://gohugo.io/functions/lang/formataccounting/)
- [lang.FormatCurrency](https://gohugo.io/functions/lang/formatcurrency/)
- [lang.FormatNumber](https://gohugo.io/functions/lang/formatnumber/)
- [lang.FormatNumberCustom](https://gohugo.io/functions/lang/formatnumbercustom/)
- [lang.FormatPercent](https://gohugo.io/functions/lang/formatpercent/)
- [lang.Merge](https://gohugo.io/functions/lang/merge/)
- [lang.Translate](https://gohugo.io/functions/lang/translate/)

### [math](https://gohugo.io/functions/math/)

- [math.Abs](https://gohugo.io/functions/math/abs/)
- [math.Acos](https://gohugo.io/functions/math/acos/)
- [math.Add](https://gohugo.io/functions/math/add/)
- [math.Asin](https://gohugo.io/functions/math/asin/)
- [math.Atan](https://gohugo.io/functions/math/atan/)
- [math.Atan2](https://gohugo.io/functions/math/atan2/)
- [math.Ceil](https://gohugo.io/functions/math/ceil/)
- [math.Cos](https://gohugo.io/functions/math/cos/)
- [math.Counter](https://gohugo.io/functions/math/counter/)
- [math.Div](https://gohugo.io/functions/math/div/)
- [math.Floor](https://gohugo.io/functions/math/floor/)
- [math.Log](https://gohugo.io/functions/math/log/)
- [math.Max](https://gohugo.io/functions/math/max/)
- [math.MaxInt64](https://gohugo.io/functions/math/maxint64/)
- [math.Min](https://gohugo.io/functions/math/min/)
- [math.Mod](https://gohugo.io/functions/math/mod/)
- [math.ModBool](https://gohugo.io/functions/math/modbool/)
- [math.Mul](https://gohugo.io/functions/math/mul/)
- [math.Pi](https://gohugo.io/functions/math/pi/)
- [math.Pow](https://gohugo.io/functions/math/pow/)
- [math.Product](https://gohugo.io/functions/math/product/)
- [math.Rand](https://gohugo.io/functions/math/rand/)
- [math.Round](https://gohugo.io/functions/math/round/)
- [math.Sin](https://gohugo.io/functions/math/sin/)
- [math.Sqrt](https://gohugo.io/functions/math/sqrt/)
- [math.Sub](https://gohugo.io/functions/math/sub/)
- [math.Sum](https://gohugo.io/functions/math/sum/)
- [math.Tan](https://gohugo.io/functions/math/tan/)
- [math.ToDegrees](https://gohugo.io/functions/math/todegrees/)
- [math.ToRadians](https://gohugo.io/functions/math/toradians/)

### [openapi3](https://gohugo.io/functions/openapi3/)

- [openapi3.Unmarshal](https://gohugo.io/functions/openapi3/unmarshal/)

### [os](https://gohugo.io/functions/os/)

- [os.FileExists](https://gohugo.io/functions/os/fileexists/)
- [os.Getenv](https://gohugo.io/functions/os/getenv/)
- [os.ReadDir](https://gohugo.io/functions/os/readdir/)
- [os.ReadFile](https://gohugo.io/functions/os/readfile/)
- [os.Stat](https://gohugo.io/functions/os/stat/)

### [partials](https://gohugo.io/functions/partials/)

- [partials.Include](https://gohugo.io/functions/partials/include/)
- [partials.IncludeCached](https://gohugo.io/functions/partials/includecached/)

### [path](https://gohugo.io/functions/path/)

- [path.Base](https://gohugo.io/functions/path/base/)
- [path.BaseName](https://gohugo.io/functions/path/basename/)
- [path.Clean](https://gohugo.io/functions/path/clean/)
- [path.Dir](https://gohugo.io/functions/path/dir/)
- [path.Ext](https://gohugo.io/functions/path/ext/)
- [path.Join](https://gohugo.io/functions/path/join/)
- [path.Split](https://gohugo.io/functions/path/split/)

### [reflect](https://gohugo.io/functions/reflect/)

- [reflect.IsImageResource](https://gohugo.io/functions/reflect/isimageresource/)
- [reflect.IsImageResourceProcessable](https://gohugo.io/functions/reflect/isimageresourceprocessable/)
- [reflect.IsImageResourceWithMeta](https://gohugo.io/functions/reflect/isimageresourcewithmeta/)
- [reflect.IsMap](https://gohugo.io/functions/reflect/ismap/)
- [reflect.IsPage](https://gohugo.io/functions/reflect/ispage/)
- [reflect.IsResource](https://gohugo.io/functions/reflect/isresource/)
- [reflect.IsSite](https://gohugo.io/functions/reflect/issite/)
- [reflect.IsSlice](https://gohugo.io/functions/reflect/isslice/)

### [resources](https://gohugo.io/functions/resources/)

- [resources.ByType](https://gohugo.io/functions/resources/bytype/)
- [resources.Concat](https://gohugo.io/functions/resources/concat/)
- [resources.Copy](https://gohugo.io/functions/resources/copy/)
- [resources.ExecuteAsTemplate](https://gohugo.io/functions/resources/executeastemplate/)
- [resources.Fingerprint](https://gohugo.io/functions/resources/fingerprint/)
- [resources.FromString](https://gohugo.io/functions/resources/fromstring/)
- [resources.Get](https://gohugo.io/functions/resources/get/)
- [resources.GetMatch](https://gohugo.io/functions/resources/getmatch/)
- [resources.GetRemote](https://gohugo.io/functions/resources/getremote/)
- [resources.Match](https://gohugo.io/functions/resources/match/)
- [resources.Minify](https://gohugo.io/functions/resources/minify/)
- [resources.PostProcess](https://gohugo.io/functions/resources/postprocess/)

### [safe](https://gohugo.io/functions/safe/)

- [safe.CSS](https://gohugo.io/functions/safe/css/)
- [safe.HTML](https://gohugo.io/functions/safe/html/)
- [safe.HTMLAttr](https://gohugo.io/functions/safe/htmlattr/)
- [safe.JS](https://gohugo.io/functions/safe/js/)
- [safe.JSStr](https://gohugo.io/functions/safe/jsstr/)
- [safe.URL](https://gohugo.io/functions/safe/url/)

### [strings](https://gohugo.io/functions/strings/)

- [strings.Chomp](https://gohugo.io/functions/strings/chomp/)
- [strings.Contains](https://gohugo.io/functions/strings/contains/)
- [strings.ContainsAny](https://gohugo.io/functions/strings/containsany/)
- [strings.ContainsNonSpace](https://gohugo.io/functions/strings/containsnonspace/)
- [strings.Count](https://gohugo.io/functions/strings/count/)
- [strings.CountRunes](https://gohugo.io/functions/strings/countrunes/)
- [strings.CountWords](https://gohugo.io/functions/strings/countwords/)
- [strings.FindRESubmatch](https://gohugo.io/functions/strings/findresubmatch/)
- [strings.FindRE](https://gohugo.io/functions/strings/findre/)
- [strings.FirstUpper](https://gohugo.io/functions/strings/firstupper/)
- [strings.HasPrefix](https://gohugo.io/functions/strings/hasprefix/)
- [strings.HasSuffix](https://gohugo.io/functions/strings/hassuffix/)
- [strings.Repeat](https://gohugo.io/functions/strings/repeat/)
- [strings.Replace](https://gohugo.io/functions/strings/replace/)
- [strings.ReplacePairs](https://gohugo.io/functions/strings/replacepairs/)
- [strings.ReplaceRE](https://gohugo.io/functions/strings/replacere/)
- [strings.RuneCount](https://gohugo.io/functions/strings/runecount/)
- [strings.SliceString](https://gohugo.io/functions/strings/slicestring/)
- [strings.Split](https://gohugo.io/functions/strings/split/)
- [strings.Substr](https://gohugo.io/functions/strings/substr/)
- [strings.Title](https://gohugo.io/functions/strings/title/)
- [strings.ToLower](https://gohugo.io/functions/strings/tolower/)
- [strings.ToUpper](https://gohugo.io/functions/strings/toupper/)
- [strings.Trim](https://gohugo.io/functions/strings/trim/)
- [strings.TrimLeft](https://gohugo.io/functions/strings/trimleft/)
- [strings.TrimPrefix](https://gohugo.io/functions/strings/trimprefix/)
- [strings.TrimRight](https://gohugo.io/functions/strings/trimright/)
- [strings.TrimSpace](https://gohugo.io/functions/strings/trimspace/)
- [strings.TrimSuffix](https://gohugo.io/functions/strings/trimsuffix/)
- [strings.Truncate](https://gohugo.io/functions/strings/truncate/)

### [templates](https://gohugo.io/functions/templates/)

- [templates.Current](https://gohugo.io/functions/templates/current/)
- [templates.Defer](https://gohugo.io/functions/templates/defer/)
- [templates.Exists](https://gohugo.io/functions/templates/exists/)
- [templates.Inner](https://gohugo.io/functions/templates/inner/)

### [time](https://gohugo.io/functions/time/)

- [time.AsTime](https://gohugo.io/functions/time/astime/)
- [time.Duration](https://gohugo.io/functions/time/duration/)
- [time.Format](https://gohugo.io/functions/time/format/)
- [time.In](https://gohugo.io/functions/time/in/)
- [time.Now](https://gohugo.io/functions/time/now/)
- [time.ParseDuration](https://gohugo.io/functions/time/parseduration/)

### [transform](https://gohugo.io/functions/transform/)

- [transform.CanHighlight](https://gohugo.io/functions/transform/canhighlight/)
- [transform.Emojify](https://gohugo.io/functions/transform/emojify/)
- [transform.HTMLEscape](https://gohugo.io/functions/transform/htmlescape/)
- [transform.HTMLUnescape](https://gohugo.io/functions/transform/htmlunescape/)
- [transform.HTMLToMarkdown](https://gohugo.io/functions/transform/htmltomarkdown/)
- [transform.Highlight](https://gohugo.io/functions/transform/highlight/)
- [transform.HighlightCodeBlock](https://gohugo.io/functions/transform/highlightcodeblock/)
- [transform.Markdownify](https://gohugo.io/functions/transform/markdownify/)
- [transform.Plainify](https://gohugo.io/functions/transform/plainify/)
- [transform.PortableText](https://gohugo.io/functions/transform/portabletext/)
- [transform.Remarshal](https://gohugo.io/functions/transform/remarshal/)
- [transform.ToMath](https://gohugo.io/functions/transform/tomath/)
- [transform.Unmarshal](https://gohugo.io/functions/transform/unmarshal/)
- [transform.XMLEscape](https://gohugo.io/functions/transform/xmlescape/)

### [urls](https://gohugo.io/functions/urls/)

- [urls.AbsLangURL](https://gohugo.io/functions/urls/abslangurl/)
- [urls.AbsURL](https://gohugo.io/functions/urls/absurl/)
- [urls.Anchorize](https://gohugo.io/functions/urls/anchorize/)
- [urls.JoinPath](https://gohugo.io/functions/urls/joinpath/)
- [urls.Parse](https://gohugo.io/functions/urls/parse/)
- [urls.PathEscape](https://gohugo.io/functions/urls/pathescape/)
- [urls.PathUnescape](https://gohugo.io/functions/urls/pathunescape/)
- [urls.Ref](https://gohugo.io/functions/urls/ref/)
- [urls.RelLangURL](https://gohugo.io/functions/urls/rellangurl/)
- [urls.RelRef](https://gohugo.io/functions/urls/relref/)
- [urls.RelURL](https://gohugo.io/functions/urls/relurl/)
- [urls.URLize](https://gohugo.io/functions/urls/urlize/)




## Ancestors of This Page (Auto Generated)



- https://hugo-community-docs.github.io/zh-tw/reference/index.md
