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

Resolve #112 #114

Merged
merged 25 commits into from
Jul 9, 2023
Merged

Resolve #112 #114

merged 25 commits into from
Jul 9, 2023

Conversation

rwstorer
Copy link
Contributor

This PR...
Adds liteyoutube by paulirish found here

Changes / fixes

  • Resolves [FEATURE] - Light YouTube Embedded #112
  • Adds shortcode liteyoutube.html
  • Adds JS static/js/lite-yt-embed.js
  • Adds CSS static/css/lite-yt-embed.css
  • Modifies Doc exampleSite/content/docs/compose/shortcodes.md

Screenshots (if applicable)

(prefer animated gif)

Checklist

Ensure you have checked off the following before submitting your PR.

rwstorer added 21 commits June 10, 2023 20:10
Added:
- lite-yt-embed.css
- lite-yt-embed.css.
Modified:
- exampleSite/content/shortcodes.md
- layouts/partials/head.html
Modified:
- exampleSite/config.toml

I needed to use my repo instead of the master repo to get the files. This change is *NOT* needed for production.
Modified:
- exampleSite/content/shortcodes.md
- layouts/shortcodes/liteyoutube.html
- exampleSite/go.mod -- do not merge
- exampleSite/go.sum -- do not merge
- exampleSite/resources/_gen/assets/sass/sass/main.sass_ae9eb86df8175869edaecf50caadd93b.content -- not needed???
Modified:
- layouts/shortcodes/liteyoutube.html
forgot closing paren
Modified:
- layouts/shortcodes/liteyoutube.html

I made another syntax error. I decided to add another variable to avoid doing too much in a single command.
Modified:
- exampleSite/content/shortcodes.md

I had an extra line. I removed it.
Modified:
- exampleSite/content/shortcodes.md
- layouts/shortcodes/liteyoutube.html

opted to use the "with" clause after learning about it. Also tried to go back to using no parameters.
So far, nothing I try works on handling both named and positional params in the shortcode. Trying again.
As it turns out, the bkImg had a scoping problem. I ended up with a fair amount of duplicated code because of it.

Removed the debug printf statements and completed the shortcodes.md doc.
changed the config.toml and go.mod back to the original.
@rwstorer
Copy link
Contributor Author

Sorry, @onweru. I do not know how to fix this failed check. The code works on my machine. All my check-ins are "verified."

@onweru
Copy link
Owner

onweru commented Jun 11, 2023

Sorry, @onweru. I do not know how to fix this failed check. The code works on my machine. All my check-ins are "verified."

No problem, I'll review this asap i.e from Monday. Weekends can are kinda swarmed (crazy) on my end 😃

change it back to onweru after the import
@rwstorer
Copy link
Contributor Author

@onweru, I figured out that I needed to point the "exampleSite" to my repo during the test import for it to find the new shortcode. Naturally, you'll want to update that after the merge (or reject that change).

Anyway, the PR passes all checks now.

onweru added a commit that referenced this pull request Jul 9, 2023
Signed-off-by: weru <[email protected]>
onweru added a commit that referenced this pull request Jul 9, 2023
@onweru onweru merged commit e37ac69 into onweru:master Jul 9, 2023
onweru added a commit that referenced this pull request Jul 9, 2023
Signed-off-by: weru <[email protected]>
onweru pushed a commit that referenced this pull request Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] - Light YouTube Embedded
2 participants