Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube shortcode: Gen. query string w/ querify #10575

Closed

Conversation

sgharms
Copy link
Contributor

@sgharms sgharms commented Dec 23, 2022

The construction of the query string relied on a
generation method that assumed there would only
ever one be parameter (autoplay).

Adding support for an additional param e.g.
start requires detecting whether either option
was set in the shortcode, delimiting with & and
various other logic that are captured in
querify.

Move to using querify and ship, under separate
PR, addition of support for a start offset
parameter (see: #10521).

The construction of the query string relied on a
generation method that assumed there would only
ever one be parameter (`autoplay`).

Adding support for an additional param e.g.
`start` requires detecting whether either option
was set in the shortcode, delimiting with `&` and
various other logic that are captured in
`querify`.

Move to using `querify` and ship, under separate
PR, addition of support for a `start` offset
parameter (see: gohugoio#10521).
jmooring added a commit to jmooring/hugo that referenced this pull request Apr 3, 2024
Changes:

- Add query string params for controls, loop, mute, start, and end
- Add iframe loading attribute
- Obtain default iframe title from YouTube oEmbed API
- Fix autoplay feature
- Improve readability

Closes gohugoio#3694
Closes gohugoio#9213
Closes gohugoio#10520
Closes gohugoio#10575
Closes gohugoio#10576

Co-authored-by: sgharms <sgharms@stevengharms.com>
jmooring added a commit to jmooring/hugo that referenced this pull request Apr 3, 2024
Changes:

- Add query string params for controls, loop, mute, start, and end
- Add iframe loading attribute
- Obtain default iframe title from YouTube oEmbed API
- Fix autoplay feature
- Improve readability

Closes gohugoio#3694
Closes gohugoio#9213
Closes gohugoio#10520
Closes gohugoio#10575
Closes gohugoio#10576

Co-authored-by: sgharms <sgharms@stevengharms.com>
jmooring added a commit to jmooring/hugo that referenced this pull request Apr 3, 2024
Changes:

- Add query string params for controls, loop, mute, start, and end
- Add iframe loading attribute
- Obtain default iframe title from YouTube oEmbed API
- Fix autoplay feature
- Improve readability

Closes gohugoio#3694
Closes gohugoio#9213
Closes gohugoio#10520
Closes gohugoio#10575
Closes gohugoio#10576

Co-authored-by: sgharms <sgharms@stevengharms.com>
jmooring added a commit to jmooring/hugo that referenced this pull request Apr 3, 2024
Changes:

- Add query string params for controls, loop, mute, start, and end
- Add iframe loading attribute
- Obtain default iframe title from YouTube oEmbed API
- Fix autoplay feature
- Improve readability

Closes gohugoio#3694
Closes gohugoio#9213
Closes gohugoio#10520
Closes gohugoio#10575
Closes gohugoio#10576

Co-authored-by: sgharms <sgharms@stevengharms.com>
jmooring added a commit to jmooring/hugo that referenced this pull request Apr 3, 2024
Changes:

- Add query string params for controls, loop, mute, start, and end
- Add iframe loading attribute
- Obtain default iframe title from YouTube oEmbed API
- Fix autoplay feature
- Improve readability

Closes gohugoio#3694
Closes gohugoio#9213
Closes gohugoio#10520
Closes gohugoio#10575
Closes gohugoio#10576

Co-authored-by: sgharms <sgharms@stevengharms.com>
jmooring added a commit to jmooring/hugo that referenced this pull request Apr 3, 2024
Changes:

- Add query string params for controls, loop, mute, start, and end
- Add iframe loading attribute
- Obtain default iframe title from YouTube oEmbed API
- Fix autoplay feature
- Improve readability

Closes gohugoio#3694
Closes gohugoio#9213
Closes gohugoio#10520
Closes gohugoio#10575
Closes gohugoio#10576

Co-authored-by: sgharms <sgharms@stevengharms.com>
@bep bep closed this in 8a0ea12 Apr 4, 2024
@bep bep closed this in #12336 Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants