From 93711b251c0bd6f415b60321c15bd8809a477de5 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Tue, 8 Aug 2023 20:04:50 -0700 Subject: [PATCH] Create glossary of terms Closes #2184 --- .../external-learning-resources/index.md | 4 +- content/en/getting-started/glossary.md | 231 ++++++++++++++++++ 2 files changed, 233 insertions(+), 2 deletions(-) create mode 100644 content/en/getting-started/glossary.md diff --git a/content/en/getting-started/external-learning-resources/index.md b/content/en/getting-started/external-learning-resources/index.md index 17ba2849be4..4337c51a4f0 100644 --- a/content/en/getting-started/external-learning-resources/index.md +++ b/content/en/getting-started/external-learning-resources/index.md @@ -5,8 +5,8 @@ keywords: [books, tutorials, learning, usage] menu: docs: parent: getting-started - weight: 60 -weight: 60 + weight: 70 +weight: 70 --- ## Books diff --git a/content/en/getting-started/glossary.md b/content/en/getting-started/glossary.md new file mode 100644 index 00000000000..12fc51ee129 --- /dev/null +++ b/content/en/getting-started/glossary.md @@ -0,0 +1,231 @@ +--- +title: Glossary of terms +description: Terms commonly used throughout the documentation. +keywords: [glossary] +menu: + docs: + parent: getting-started + weight: 60 +weight: 60 +type: glossary +--- + + + +### action + +See [template action](#template-action). + +### archetype + +A template to create 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`. + +### 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). Accessed via `.Page.Type` in [templates](#template). See [details](/content-management/types/). + +### 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). + +### 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 returns a value. 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), translations, 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 and branch. 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. + +### 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 directory of content pages with an _index.md file. A section may contain subdirectories without _index.md files. An _index.md file is optional in top-level directories. Section templates receive one or more page [collections](#collection) in [context](#context). See [details](#/templates/lists/). + +### 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/). + +### template + +An HTML 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/). + +### theme + +A packaged combination of [archetypes](#archetype), assets, content, data, [templates](#template), translations, 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/dateformat/#datetime-formatting-layouts). + + +### type + +See [content type](#content-type). + +### variable + +A user-defined variable within a [template action](#template-action). + +### walk + +To recursively traverse a nested data structure. For example, rendering a multilevel menu.