summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/_common
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/_common')
-rw-r--r--docs/content/en/functions/_common/_index.md13
-rw-r--r--docs/content/en/functions/_common/glob-patterns.md23
-rw-r--r--docs/content/en/functions/_common/locales.md10
-rw-r--r--docs/content/en/functions/_common/regular-expressions.md12
-rw-r--r--docs/content/en/functions/_common/time-layout-string.md46
5 files changed, 0 insertions, 104 deletions
diff --git a/docs/content/en/functions/_common/_index.md b/docs/content/en/functions/_common/_index.md
deleted file mode 100644
index 47d5812fb..000000000
--- a/docs/content/en/functions/_common/_index.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-cascade:
- _build:
- list: never
- publishResources: false
- render: never
----
-
-<!--
-Files within this headless branch bundle are markdown snippets. Each file must contain front matter delimiters, though front matter fields are not required.
-
-Include the rendered content using the "include" shortcode.
--->
diff --git a/docs/content/en/functions/_common/glob-patterns.md b/docs/content/en/functions/_common/glob-patterns.md
deleted file mode 100644
index 3b0813f6f..000000000
--- a/docs/content/en/functions/_common/glob-patterns.md
+++ /dev/null
@@ -1,23 +0,0 @@
----
-# Do not remove front matter.
----
-
-Path|Pattern|Match
-:--|:--|:--
-`images/foo/a.jpg`|`images/foo/*.jpg`|`true`
-`images/foo/a.jpg`|`images/foo/*.*`|`true`
-`images/foo/a.jpg`|`images/foo/*`|`true`
-`images/foo/a.jpg`|`images/*/*.jpg`|`true`
-`images/foo/a.jpg`|`images/*/*.*`|`true`
-`images/foo/a.jpg`|`images/*/*`|`true`
-`images/foo/a.jpg`|`*/*/*.jpg`|`true`
-`images/foo/a.jpg`|`*/*/*.*`|`true`
-`images/foo/a.jpg`|`*/*/*`|`true`
-`images/foo/a.jpg`|`**/*.jpg`|`true`
-`images/foo/a.jpg`|`**/*.*`|`true`
-`images/foo/a.jpg`|`**/*`|`true`
-`images/foo/a.jpg`|`**`|`true`
-`images/foo/a.jpg`|`*/*.jpg`|`false`
-`images/foo/a.jpg`|`*.jpg`|`false`
-`images/foo/a.jpg`|`*.*`|`false`
-`images/foo/a.jpg`|`*`|`false`
diff --git a/docs/content/en/functions/_common/locales.md b/docs/content/en/functions/_common/locales.md
deleted file mode 100644
index fd8415781..000000000
--- a/docs/content/en/functions/_common/locales.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-# Do not remove front matter.
----
-
-{{% note %}}
-
-Localization of dates, currencies, numbers, and percentages is performed by the [gohugoio/locales] package. The language tag of the current site must match one of the listed locales.
-
-[gohugoio/locales]: https://github.com/gohugoio/locales
-{{% /note %}}
diff --git a/docs/content/en/functions/_common/regular-expressions.md b/docs/content/en/functions/_common/regular-expressions.md
deleted file mode 100644
index 48e020ac6..000000000
--- a/docs/content/en/functions/_common/regular-expressions.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-# Do not remove front matter.
----
-
-When specifying the regular expression, use a raw [string literal] (backticks) instead of an interpreted string literal (double quotes) to simplify the syntax. With an interpreted string literal you must escape backslashes.
-
-Go's regular expression package implements the [RE2 syntax]. The RE2 syntax is a subset of that accepted by [PCRE], roughly speaking, and with various [caveats]. Note that the RE2 `\C` escape sequence is not supported.
-
-[caveats]: https://swtch.com/~rsc/regexp/regexp3.html#caveats
-[PCRE]: https://www.pcre.org/
-[RE2 syntax]: https://github.com/google/re2/wiki/Syntax/
-[string literal]: https://go.dev/ref/spec#String_literals
diff --git a/docs/content/en/functions/_common/time-layout-string.md b/docs/content/en/functions/_common/time-layout-string.md
deleted file mode 100644
index 827dc9894..000000000
--- a/docs/content/en/functions/_common/time-layout-string.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-# Do not remove front matter.
----
-
-Format a `time.Time` value based on [Go's reference time]:
-
-[Go's reference time]: https://pkg.go.dev/time#pkg-constants
-
-```text
-Mon Jan 2 15:04:05 MST 2006
-```
-
-Create a layout string using these components:
-
-Description|Valid components
-:--|:--
-Year|`"2006" "06"`
-Month|`"Jan" "January" "01" "1"`
-Day of the week|`"Mon" "Monday"`
-Day of the month|`"2" "_2" "02"`
-Day of the year|`"__2" "002"`
-Hour|`"15" "3" "03"`
-Minute|`"4" "04"`
-Second|`"5" "05"`
-AM/PM mark|`"PM"`
-Time zone offsets|`"-0700" "-07:00" "-07" "-070000" "-07:00:00"`
-
-Replace the sign in the layout string with a Z to print Z instead of an offset for the UTC zone.
-
-Description|Valid components
-:--|:--
-Time zone offsets|`"Z0700" "Z07:00" "Z07" "Z070000" "Z07:00:00"`
-
-```go-html-template
-{{ $t := "2023-01-27T23:44:58-08:00" }}
-{{ $t = time.AsTime $t }}
-{{ $t = $t.Format "Jan 02, 2006 3:04 PM Z07:00" }}
-
-{{ $t }} → Jan 27, 2023 11:44 PM -08:00
-```
-
-Strings such as `PST` and `CET` are not time zones. They are time zone _abbreviations_.
-
-Strings such as `-07:00` and `+01:00` are not time zones. They are time zone _offsets_.
-
-A time zone is a geographic area with the same local time. For example, the time zone abbreviated by `PST` and `PDT` (depending on Daylight Savings Time) is `America/Los_Angeles`.