mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
e509cac533
cb18a5183 Fix broken link 07a0198bf Config: Place Google Analytics tag ID under the services key 4bf0c719f Fix typo 50d8ad1af Fix muiltilingual menu definition instructions 1a32519a9 Fix typos 6f34ca8e0 Explain usage of front matter to target a template 5bd977257 Improve goldmark config docs 447632938 Remove Docker notes from installation instructions 84741d173 Update reference to hugo.work 0338d7c71 Fix menu template f5d2f5ed4 Fix typos in content/en/functions/fmt a3a40ff99 Add return type to functions 85ac3e779 Remove outdated feature image d47d889e4 Fix signatures 7551ba28f Document safe.JSStr function e77993be0 Document keyVals function 4dba20db3 Update theme babf91544 Update echoparam 8c8203efa Adjust related functions 4cb1b30fc Fix example ba95eca64 Improve showcase prose 5d3dcf366 Add Overmind Studios showcase 8d634ac70 Change code blocks from indented to fenced cfab978e6 Add missing code fences 407dd5c47 Limit related pages for functions to other functions 9fa67d981 Fix .Site.LastChange doc 393aa16d0 netlify: Hugo 0.119.0 f864af97a docs: Even more about images.Process 9d772d5f0 docs: More about images.Process bc655f869 docs: Regen docshelper 41c3536d1 Merge commit '9aec42c5452b3eb224888c50ba1c3f3b68a447e9' 918ed53f4 Add images.Process filter 573645883 Add $image.Process a1151b0fd Add images.Opacity filter git-subtree-dir: docs git-subtree-split: cb18a5183fc62f301ffde50b8c39f03e4b897aec
270 lines
11 KiB
Markdown
270 lines
11 KiB
Markdown
---
|
|
title: Glossary of terms
|
|
description: Terms commonly used throughout the documentation.
|
|
keywords: [glossary]
|
|
menu:
|
|
docs:
|
|
parent: getting-started
|
|
weight: 60
|
|
weight: 60
|
|
type: glossary
|
|
---
|
|
|
|
<!-- Use level 3 headings for each term in the glossary. -->
|
|
|
|
### action
|
|
|
|
See [template action](#template-action).
|
|
|
|
### archetype
|
|
|
|
A template for new content. See [details](/content-management/archetypes/).
|
|
|
|
### argument
|
|
|
|
A [scalar](#scalar), [array](#array), [slice](#slice), [map](#map), or [object](#object) passed to a [function](#function), [method](#method), or [shortcode](#shortcode).
|
|
|
|
### array
|
|
|
|
A numbered sequence of elements. Unlike Go's [slice](#slice) data type, an array has a fixed length. See the [Go documentation](https://go.dev/ref/spec#Array_types) for details.
|
|
|
|
### bool
|
|
|
|
See [boolean](#boolean).
|
|
|
|
### boolean
|
|
|
|
A data type with two possible values, either `true` or `false`.
|
|
|
|
### branch bundle
|
|
|
|
A [page bundle](#page-bundle) with an _index.md file and zero or more [resources](#resource). Analogous to a physical branch, a branch bundle may have descendants including regular pages, [leaf bundles](/getting-started/glossary/#leaf-bundle), and other branch bundles. See [details](/content-management/page-bundles/).
|
|
|
|
### build
|
|
|
|
To generate a static site that includes HTML files and assets such as images, CSS, and JavaScript. The build process includes rendering and resource transformations.
|
|
|
|
### bundle
|
|
|
|
See [page bundle](#page-bundle).
|
|
|
|
### cache
|
|
|
|
A software component that stores data so that future requests for the same data are faster.
|
|
|
|
### collection
|
|
|
|
Typically, a collection of pages, but may also refer to an [array](#array), [slice](#slice), or [map](#map). For example, the pages within a site's "articles" section are a page collection.
|
|
|
|
### content format
|
|
|
|
A markup language for creating content. Typically markdown, but may also be HTML, AsciiDoc, Org, Pandoc, or reStructuredText. See [details](/content-management/formats/).
|
|
|
|
### content type
|
|
|
|
A classification of content inferred from the top-level directory name or the `type` set in [front matter](#front-matter). Pages in the root of the content directory, including the home page, are of type "page". Accessed via `.Page.Type` in [templates](#template). See [details](/content-management/types/).
|
|
|
|
### content view
|
|
|
|
A template called with the `.Page.Render` method. See [details](/templates/views/).
|
|
|
|
### context
|
|
|
|
Represented by a period "." within a [template action](#template-action), context is the current location in a data structure. For example, while iterating over a [collection](#collection) of pages, the context within each iteration is the page's data structure. The context received by each template depends on template type and/or how it was called. See [details](/templates/introduction/#the-dot).
|
|
|
|
### flag
|
|
|
|
An option passed to a command-line program, beginning with one or two hyphens. See [details](/commands/hugo/).
|
|
|
|
### float
|
|
|
|
See [floating point](#floating-point).
|
|
|
|
### floating point
|
|
|
|
A numeric data type with a fractional component. For example, `3.14159`.
|
|
|
|
### function
|
|
|
|
Used within a [template action](#template-action), a function takes one or more [arguments](#argument) and returns a value. Unlike [methods](#method), functions are not associated with an [object](#object). See [details](/functions/).
|
|
|
|
### front matter
|
|
|
|
Metadata at the beginning of each content page, separated from the content by format-specific delimiters. See [details](/content-management/front-matter/).
|
|
|
|
### int
|
|
|
|
See [integer](#integer).
|
|
|
|
### integer
|
|
|
|
A numeric data type without a fractional component. For example, `42`.
|
|
|
|
### internationalization
|
|
|
|
Software design and development efforts that enable [localization](#localization). See the [W3C definition](https://www.w3.org/International/questions/qa-i18n). Abbreviated i18n.
|
|
|
|
### kind
|
|
|
|
See [page kind](#page-kind).
|
|
|
|
### layout
|
|
|
|
See [template](#template).
|
|
|
|
### leaf bundle
|
|
|
|
A [page bundle](#page-bundle) with an index.md file and zero or more [resources](#resource). Analogous to a physical leaf, a leaf bundle is at the end of a branch. Hugo ignores content (but not resources) beneath the leaf bundle. See [details](/content-management/page-bundles/).
|
|
|
|
### list page
|
|
|
|
Any [page kind](#page-kind) that receives a page [collection](#collection) in [context](#context). This includes the home page, [section pages](#section-page), [taxonomy pages](#taxonomy-page), and [term pages](#term-page).
|
|
|
|
### localization
|
|
|
|
Adaptation of a site to meet language and regional requirements. This includes translations, language-specific media, date and currency formats, etc. See [details](/content-management/multilingual/) and the [W3C definition](https://www.w3.org/International/questions/qa-i18n). Abbreviated l10n.
|
|
|
|
### map
|
|
|
|
An unordered group of elements, each indexed by a unique key. See the [Go documentation](https://go.dev/ref/spec#Map_types) for details.
|
|
|
|
### method
|
|
|
|
Used within a [template action](#template-action) and associated with an [object](#object), a method takes zero or more [arguments](#argument) and either returns a value or performs an action. For example, `.IsHome` is a method on the `.Page` object which returns `true` if the current page is the home page. See also [function](#function).
|
|
|
|
### module
|
|
|
|
Like a [theme](#theme), a module is a packaged combination of [archetypes](#archetype), assets, content, data, [templates](#template), translation tables, static files, or configuration settings. A module may serve as the basis for a new site, or to augment an existing site. See [details](/hugo-modules/).
|
|
|
|
### object
|
|
|
|
A data structure with or without associated [methods](#method).
|
|
|
|
### page bundle
|
|
|
|
A directory that encapsulates both content and associated [resources](#resource). There are two types of page bundles: [leaf bundles](/getting-started/glossary/#leaf-bundle) and [branch bundles](/getting-started/glossary/#branch-bundle). See [details](/content-management/page-bundles/).
|
|
|
|
### page kind
|
|
|
|
A classification of rendered pages, one of "home", "page", "section", "taxonomy", or "term". Accessed via `.Page.Kind` in [templates](#template). See [details](/templates/section-templates/#page-kinds).
|
|
|
|
### pager
|
|
|
|
Created during [pagination](#pagination), a pager contains a subset of a section list, and navigation links to other pagers.
|
|
|
|
### paginate
|
|
|
|
To split a [section](#section) list into two or more [pagers](#pager) See [details](/templates/pagination/).
|
|
|
|
### pagination
|
|
|
|
The process of [paginating](#paginate) a [section](#section) list.
|
|
|
|
### parameter
|
|
|
|
Typically, a user-defined key/value pair at the site or page level, but may also refer to a configuration setting or an [argument](#argument).
|
|
|
|
### partial
|
|
|
|
A [template](#template) called from any other template including [shortcodes](#shortcode), [render hooks](#render-hook), and other partials. A partial either renders something or returns something. A partial can also call itself, for example, to [walk](#walk) a data structure.
|
|
|
|
### permalink
|
|
|
|
The absolute URL of a rendered page, including scheme and host.
|
|
|
|
### pipe
|
|
|
|
See [pipeline](#pipeline).
|
|
|
|
### pipeline
|
|
|
|
Within a [template action](#template-action), a pipeline is a possibly chained sequence of values, [function](#function) calls, or [method](#method) calls. Functions and methods in the pipeline may take multiple [arguments](#argument).
|
|
|
|
A pipeline may be *chained* by separating a sequence of commands with pipeline characters "|". In a chained pipeline, the result of each command is passed as the last argument to the following command. The output of the final command in the pipeline is the value of the pipeline. See the [Go documentation](https://pkg.go.dev/text/template#hdr-Pipelines) for details.
|
|
|
|
### publish
|
|
|
|
See [build](#build).
|
|
|
|
### regular page
|
|
|
|
Content with the "page" [page kind](#page-kind). See also [section page](#section-page).
|
|
|
|
### render hook
|
|
|
|
A [template](#template) that overrides standard markdown rendering. See [details](/templates/render-hooks/).
|
|
|
|
### resource
|
|
|
|
Any file consumed by the build process to augment or generate content, structure, behavior, or presentation. For example: images, videos, content snippets, CSS, Sass, JavaScript, and data.
|
|
|
|
Hugo supports three types of resources: page resources (located in a [page bundle](/getting-started/glossary/#page-bundle)), global resources (located in the assets directory), and remote resources (typically accessed via HTTPS).
|
|
|
|
### scalar
|
|
|
|
A single value, one of [string](#string), [integer](#integer), [floating point](#floating-point), or [boolean](#boolean).
|
|
|
|
### section
|
|
|
|
A top-level content directory, or any content directory with an _index.md file. A content directory with an _index.md file is also known as a [branch bundle](/getting-started/glossary/#branch-bundle). Section templates receive one or more page [collections](#collection) in [context](#context). See [details](/content-management/sections/).
|
|
|
|
### section page
|
|
|
|
Content with the "section" [page kind](#page-kind). Typically a listing of [regular pages](#regular-page) and/or [section pages](#section-page) within the current [section](#section). See also [regular page](#regular-page).
|
|
|
|
### shortcode
|
|
|
|
A [template](#template) called from within markdown, taking zero or more [arguments](#argument). See [details](/content-management/shortcodes/).
|
|
|
|
### slice
|
|
|
|
A numbered sequence of elements. Unlike Go's [array](#array) data type, slices are dynamically sized. See the [Go documentation](https://go.dev/ref/spec#Slice_types) for details.
|
|
|
|
### string
|
|
|
|
A sequence of bytes. For example, `"What is 6 times 7?"` .
|
|
|
|
### taxonomy
|
|
|
|
A group of related [terms](#term) used to classify content. For example, a "colors" taxonomy might include the terms "red", "green", and "blue". See [details](/content-management/taxonomies/).
|
|
|
|
### taxonomy page
|
|
|
|
Content with the "taxonomy" [page kind](#page-kind). Typically a listing of [terms](#term) within a given [taxonomy](#taxonomy).
|
|
|
|
### template
|
|
|
|
A file with [template actions](#template-action), located within the layouts directory of a project, theme, or module. See [details](/templates/).
|
|
|
|
### template action
|
|
|
|
A data evaluation or control structure within a [template](#template), delimited by "{{" and "}}". See the [Go documentation](https://pkg.go.dev/text/template#hdr-Actions) for details.
|
|
|
|
### term
|
|
|
|
A member of a [taxonomy](#taxonomy), used to classify content. See [details](/content-management/taxonomies/).
|
|
|
|
### term page
|
|
|
|
Content with the "term" [page kind](#page-kind). Typically a listing of [regular pages](#regular-page) and [section pages](#section-page) with a given [term](#term).
|
|
|
|
### theme
|
|
|
|
A packaged combination of [archetypes](#archetype), assets, content, data, [templates](#template), translation tables, static files, or configuration settings. A theme may serve as the basis for a new site, or to augment an existing site. See also [module](#module).
|
|
|
|
### token
|
|
|
|
An identifier within a format string, beginning with a colon and replaced with a value when rendered. For example, use tokens in format strings for both [permalinks](/content-management/urls/#permalinks) and [dates](/functions/time/format/#localization).
|
|
|
|
|
|
### type
|
|
|
|
See [content type](#content-type).
|
|
|
|
### variable
|
|
|
|
A variable initialized within a [template action](#template-action).
|
|
|
|
### walk
|
|
|
|
To recursively traverse a nested data structure. For example, rendering a multilevel menu.
|