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

Added Twitter summary and card types, typed and tested #23

Merged
merged 4 commits into from
Jan 19, 2022

Conversation

michmich112
Copy link
Contributor

@michmich112 michmich112 commented Jan 10, 2022

@artiebits
Recommended new version 1.3.2
Added:

  • twitter card input to select between the following card types as defined on twitter documentation:
    • summary
    • summary_large_image
    • player
  • twitter parameters for player url, player width and player height as defined on twitter player card docs
  • Cypress tests to validate both default (summary_large_image), summary and player card types

Typed and Tested

README.md Outdated
@@ -47,13 +47,11 @@ Import Svelte SEO and add the desired properties. This will render out the tags

```svelte
<script>
import SvelteSeo from "svelte-seo";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you remove the import?

README.md Outdated
openGraph={{
title: 'Open Graph Title',
description: 'Open Graph Description',
openGraph={ description: 'Open Graph Description',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure this are correct changes?

README.md Outdated
</script>

<SvelteSeo
jsonLd={{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check all examples in the readme. looks like something went wrong

const twitter = () => {
const playerPath = "/player" === window.location.pathname;
const summaryPath = "/summary" === window.location.pathname;
console.log((playerPath && 100) || undefined);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove console.log

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@@ -0,0 +1,5 @@
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where do you use this file? can't find it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think was auto generated when i ran cypress. fixing it in next commit

@artiebits
Copy link
Owner

Hi @michmich112, thanks for your contribution, I appreciate it. I left some comments, please take a look.

@michmich112
Copy link
Contributor Author

Cheers @artiebits my bad it seemed like a husky pre-commit hook decided to keep on formatting the README.
Should be all fixed now

@artiebits
Copy link
Owner

Hi @michmich112 thanks a lot for your contribution! I will publish a new version of the npm package shortly

@artiebits artiebits merged commit fe0471e into artiebits:master Jan 19, 2022
artiebits pushed a commit that referenced this pull request Jan 19, 2022
* Added Twitter summary and card types, typed and tested

* updated Readme.md with new twitter params

* Fix pbs cuased by auto-formating & removed console

* fixed readme (husky hooks were messing it up
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.

None yet

2 participants