content: Fix position of new-in badges

This commit is contained in:
Joe Mooring 2025-03-05 19:32:34 -08:00 committed by GitHub
parent ec056f251e
commit b23c9a583a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 13 deletions

View File

@ -87,7 +87,8 @@ Use any of the following logical operators:
`intersect` `intersect`
: (`bool`) Reports whether the given field value (a slice) contains one or more elements in common with `VALUE`. See [details](/functions/collections/intersect). : (`bool`) Reports whether the given field value (a slice) contains one or more elements in common with `VALUE`. See [details](/functions/collections/intersect).
`like` {{< new-in 0.116.0 />}} `like`
: {{< new-in 0.116.0 />}}
: (`bool`) Reports whether the given field value matches the regular expression specified in `VALUE`. Use the `like` operator to compare `string` values. The `like` operator returns `false` when comparing other data types to the regular expression. : (`bool`) Reports whether the given field value matches the regular expression specified in `VALUE`. Use the `like` operator to compare `string` values. The `like` operator returns `false` when comparing other data types to the regular expression.
{{< note >}} {{< note >}}

View File

@ -15,7 +15,7 @@ params:
Although none of the options are required, at a minimum you will want to set the `size` to be some reasonable percentage of the image height. Although none of the options are required, at a minimum you will want to set the `size` to be some reasonable percentage of the image height.
alignx alignx
{{< new-in 0.141.0 />}} : {{< new-in 0.141.0 />}}
: (`string`) The horizontal alignment of the text relative to the horizontal offset, one of `left`, `center`, or `right`. Default is `left`. : (`string`) The horizontal alignment of the text relative to the horizontal offset, one of `left`, `center`, or `right`. Default is `left`.
color color
@ -24,8 +24,6 @@ color
font font
: (`resource.Resource`) The font can be a [global resource](g), a [page resource](g), or a [remote resource](g). Default is [Go Regular], a proportional sans-serif TrueType font. : (`resource.Resource`) The font can be a [global resource](g), a [page resource](g), or a [remote resource](g). Default is [Go Regular], a proportional sans-serif TrueType font.
[Go Regular]: https://go.dev/blog/go-fonts#sans-serif
linespacing linespacing
: (`int`) The number of pixels between each line. For a line height of 1.4, set the `linespacing` to 0.4 multiplied by the `size`. Default is `2`. : (`int`) The number of pixels between each line. For a line height of 1.4, set the `linespacing` to 0.4 multiplied by the `size`. Default is `2`.
@ -38,6 +36,8 @@ x
y y
: (`int`) The vertical offset, in pixels, relative to the top of the image. Default is `10`. : (`int`) The vertical offset, in pixels, relative to the top of the image. Default is `10`.
[Go Regular]: https://go.dev/blog/go-fonts#sans-serif
## Usage ## Usage
Set the text and paths: Set the text and paths:

View File

@ -127,7 +127,8 @@ delimiter
comment comment
: (`string`) The comment character used in the CSV. If set, lines beginning with the comment character without preceding whitespace are ignored. : (`string`) The comment character used in the CSV. If set, lines beginning with the comment character without preceding whitespace are ignored.
lazyQuotes {{< new-in 0.122.0 />}} lazyQuotes
: {{< new-in 0.122.0 />}}
: (`bool`) Whether to allow a quote in an unquoted field, or to allow a non-doubled quote in a quoted field. Default is `false`. : (`bool`) Whether to allow a quote in an unquoted field, or to allow a non-doubled quote in a quoted field. Default is `false`.
```go-html-template ```go-html-template

View File

@ -35,38 +35,38 @@ id
: (`string`) The video `id`. Optional if the `id` is provided as a positional argument as shown in the example above. : (`string`) The video `id`. Optional if the `id` is provided as a positional argument as shown in the example above.
allowFullScreen allowFullScreen
{{< new-in 0.125.0 />}} : {{< new-in 0.125.0 />}}
: (`bool`) Whether the `iframe` element can activate full screen mode. Default is `true`. : (`bool`) Whether the `iframe` element can activate full screen mode. Default is `true`.
autoplay autoplay
{{< new-in 0.125.0 />}} : {{< new-in 0.125.0 />}}
: (`bool`) Whether to automatically play the video. Forces `mute` to `true`. Default is `false`. : (`bool`) Whether to automatically play the video. Forces `mute` to `true`. Default is `false`.
class class
: (`string`) The `class` attribute of the wrapping `div` element. When specified, removes the `style` attributes from the `iframe` element and its wrapping `div` element. : (`string`) The `class` attribute of the wrapping `div` element. When specified, removes the `style` attributes from the `iframe` element and its wrapping `div` element.
controls controls
{{< new-in 0.125.0 />}} : {{< new-in 0.125.0 />}}
: (`bool`) Whether to display the video controls. Default is `true`. : (`bool`) Whether to display the video controls. Default is `true`.
end end
{{< new-in 0.125.0 />}} : {{< new-in 0.125.0 />}}
: (`int`) The time, measured in seconds from the start of the video, when the player should stop playing the video. : (`int`) The time, measured in seconds from the start of the video, when the player should stop playing the video.
loading loading
{{< new-in 0.125.0 />}} : {{< new-in 0.125.0 />}}
: (`string`) The loading attribute of the `iframe` element, either `eager` or `lazy`. Default is `eager`. : (`string`) The loading attribute of the `iframe` element, either `eager` or `lazy`. Default is `eager`.
loop loop
{{< new-in 0.125.0 />}} : {{< new-in 0.125.0 />}}
: (`bool`) Whether to indefinitely repeat the video. Ignores the `start` and `end` arguments after the first play. Default is `false`. : (`bool`) Whether to indefinitely repeat the video. Ignores the `start` and `end` arguments after the first play. Default is `false`.
mute mute
{{< new-in 0.125.0 />}} : {{< new-in 0.125.0 />}}
: (`bool`) Whether to mute the video. Always `true` when `autoplay` is `true`. Default is `false`. : (`bool`) Whether to mute the video. Always `true` when `autoplay` is `true`. Default is `false`.
start start
{{< new-in 0.125.0 />}} : {{< new-in 0.125.0 />}}
: (`int`) The time, measured in seconds from the start of the video, when the player should start playing the video. : (`int`) The time, measured in seconds from the start of the video, when the player should start playing the video.
title title