Skip to content

Commit

Permalink
Bugfix for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mjebrahimi committed Aug 17, 2024
1 parent f5e2913 commit 31613e4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions samples/SeoTags.Sample/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
cardType: SeoTags.TwitterCardType.SummaryLargeImage)
.SetArticleInfo(
authorName: "Author Name",
publishDate: DateTimeOffset.Parse("2024-08-17 22:00"),
modifiedDate: DateTimeOffset.Parse("2024-08-17 23:00"),
publishDate: DateTimeOffset.Parse("2024-08-17T22:00+00:00"),
modifiedDate: DateTimeOffset.Parse("2024-08-17T23:00+00:00"),
authorTwitterId: "@MyTwitterId",
authorFacebookId: "https://facebook.com/MyUserId",
authorUrl: "https://github.com/author-profile",
Expand Down
4 changes: 2 additions & 2 deletions samples/SeoTags.Sample/Views/Home/JsonLd1.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@
Price = 1500,
PriceCurrency = "USD",
Url = "https://site.com/product-url/",
PriceValidUntil = DateTime.Now.AddDays(10)
PriceValidUntil = new DateTime(2024, 08, 18, 00, 00, 00, DateTimeKind.Utc)
},
new OfferInfo()
{
Price = 1499,
PriceCurrency = "USD",
Url = "https://site.com/product-url/",
PriceValidUntil = DateTime.Now.AddDays(15)
PriceValidUntil = new DateTime(2024, 08, 19, 00, 00, 00, DateTimeKind.Utc)
}
}
};
Expand Down
4 changes: 2 additions & 2 deletions samples/SeoTags.Sample/Views/Home/JsonLd2.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
Description = "Page Description",
Keywords = new[] { "SEO", "AspNetCore", "MVC", "RazorPages" },
Images = new[] { ImageInfo.ReferTo(image) },
DatePublished = DateTimeOffset.Parse("2024-08-17 22:00"),
DateModified = DateTimeOffset.Parse("2024-08-17 23:00"),
DatePublished = DateTimeOffset.Parse("2024-08-17T22:00+00:00"),
DateModified = DateTimeOffset.Parse("2024-08-17T23:00+00:00"),
InLanguage = "en-US",
Author = author.Id, //or PersonInfo.ReferTo(author.Id) or PersonInfo.ReferTo(author)
WebSite = website.Id, //or WebSiteInfo.ReferTo(website.Id) or WebSiteInfo.ReferTo(website)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<meta property="og:site_name" content="My Site Title" />
<meta property="og:locale" content="en_US" />

<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":"https://site.com/product-url/#product","name":"Product Name","description":"Product Description","alternateName":"Product AlternateName","image":[{"@type":"ImageObject","@id":"https://site.com/uploads/image-1.jpg#image","url":"https://site.com/uploads/image-1.jpg","inLanguage":"en-US","contentUrl":"https://site.com/uploads/image-1.jpg","height":"720","width":"1280","caption":"Image Name"},{"@type":"ImageObject","@id":"https://site.com/uploads/image-2.jpg#image","url":"https://site.com/uploads/image-2.jpg","inLanguage":"en-US","contentUrl":"https://site.com/uploads/image-2.jpg","height":"720","width":"1280","caption":"Image Name 2"}],"url":"https://site.com/product-url/","aggregateRating":{"@type":"AggregateRating","bestRating":5.0,"ratingValue":4.5,"worstRating":1.0,"ratingCount":123,"reviewCount":123},"brand":{"@type":"Brand","name":"Brand Name"},"category":"Product Category","mpn":"12345","offers":{"@type":"AggregateOffer","priceCurrency":"USD","highPrice":1500.0,"lowPrice":1499.0,"offerCount":2,"offers":[{"@type":"Offer","url":"https://site.com/product-url/","price":1500.0,"priceCurrency":"USD","priceValidUntil":"2024-08-27"},{"@type":"Offer","url":"https://site.com/product-url/","price":1499.0,"priceCurrency":"USD","priceValidUntil":"2024-09-01"}]},"review":[{"@type":"Review","description":"Review Description 1","author":{"@type":"Person","name":"Review Author 1","url":"https://site.com/author1"},"reviewBody":"Review Description 1","reviewRating":{"@type":"Rating","bestRating":5.0,"ratingValue":4.5,"worstRating":1.0}},{"@type":"Review","description":"Review Description 2","author":{"@type":"Person","name":"Review Author 2","url":"https://site.com/author2"},"reviewBody":"Review Description 2","reviewRating":{"@type":"Rating","bestRating":5.0,"ratingValue":5.0,"worstRating":1.0}}],"sku":"12345"}]}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":"https://site.com/product-url/#product","name":"Product Name","description":"Product Description","alternateName":"Product AlternateName","image":[{"@type":"ImageObject","@id":"https://site.com/uploads/image-1.jpg#image","url":"https://site.com/uploads/image-1.jpg","inLanguage":"en-US","contentUrl":"https://site.com/uploads/image-1.jpg","height":"720","width":"1280","caption":"Image Name"},{"@type":"ImageObject","@id":"https://site.com/uploads/image-2.jpg#image","url":"https://site.com/uploads/image-2.jpg","inLanguage":"en-US","contentUrl":"https://site.com/uploads/image-2.jpg","height":"720","width":"1280","caption":"Image Name 2"}],"url":"https://site.com/product-url/","aggregateRating":{"@type":"AggregateRating","bestRating":5.0,"ratingValue":4.5,"worstRating":1.0,"ratingCount":123,"reviewCount":123},"brand":{"@type":"Brand","name":"Brand Name"},"category":"Product Category","mpn":"12345","offers":{"@type":"AggregateOffer","priceCurrency":"USD","highPrice":1500.0,"lowPrice":1499.0,"offerCount":2,"offers":[{"@type":"Offer","url":"https://site.com/product-url/","price":1500.0,"priceCurrency":"USD","priceValidUntil":"2024-08-18"},{"@type":"Offer","url":"https://site.com/product-url/","price":1499.0,"priceCurrency":"USD","priceValidUntil":"2024-08-19"}]},"review":[{"@type":"Review","description":"Review Description 1","author":{"@type":"Person","name":"Review Author 1","url":"https://site.com/author1"},"reviewBody":"Review Description 1","reviewRating":{"@type":"Rating","bestRating":5.0,"ratingValue":4.5,"worstRating":1.0}},{"@type":"Review","description":"Review Description 2","author":{"@type":"Person","name":"Review Author 2","url":"https://site.com/author2"},"reviewBody":"Review Description 2","reviewRating":{"@type":"Rating","bestRating":5.0,"ratingValue":5.0,"worstRating":1.0}}],"sku":"12345"}]}</script>


<link rel="stylesheet" href="/lib/bootstrap/dist/css/bootstrap.min.css" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<meta property="og:site_name" content="My Site Title" />
<meta property="og:locale" content="en_US" />

<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://site.com/#organization","name":"Organization Name","alternateName":"Organization AlternateName","image":{"@id":"https://site.com/uploads/logo.jpg#image"},"sameAs":["https://twitter.com/MyTwitterId","https://www.linkedin.com/company/MyCompanyId/"],"url":"https://site.com/","contactPoint":[{"@type":"ContactPoint","areaServed":"US","availableLanguage":"English","contactType":"sales","telephone":"+0123456789"},{"@type":"ContactPoint","areaServed":"US","availableLanguage":"English","contactType":"customer service","telephone":"+0123456789"}],"logo":{"@type":"ImageObject","@id":"https://site.com/uploads/logo.jpg#image","url":"https://site.com/uploads/logo.jpg","inLanguage":"en-US","contentUrl":"https://site.com/uploads/logo.jpg","height":"400","width":"400","caption":"Image Caption"}},{"@type":"WebSite","@id":"https://site.com/#website","name":"WebSite Name","description":"WebSite Description","alternateName":"WebSite AlternateName","potentialAction":{"@type":"SearchAction","target":"https://site.com/?s={search_term_string}","query-input":"required name=search_term_string"},"url":"https://site.com/","inLanguage":"en-US","publisher":{"@id":"https://site.com/#organization"}},{"@type":"BreadcrumbList","@id":"https://site.com/posts/post-url#breadcrumb","itemListElement":[{"@type":"ListItem","item":{"@type":"WebPage","@id":"https://site.com/#webpage","name":"Home","url":"https://site.com/"},"position":1},{"@type":"ListItem","item":{"@type":"WebPage","@id":"https://site.com/posts/#webpage","name":"Post List","url":"https://site.com/posts/"},"position":2},{"@type":"ListItem","item":{"@type":"WebPage","@id":"https://site.com/posts/post-url#webpage","name":"Current Post","url":"https://site.com/posts/post-url"},"position":3}],"numberOfItems":3},{"@type":"ImageObject","@id":"https://site.com/uploads/image-1.jpg#image","url":"https://site.com/uploads/image-1.jpg","inLanguage":"en-US","contentUrl":"https://site.com/uploads/image-1.jpg","height":"720","width":"1280","caption":"Image Name"},{"@type":"Person","@id":"https://site.com/author#person","name":"Author Name","description":"Author Description","image":{"@type":"ImageObject","@id":"https://site.com/uploads/author-image.jpg#image","url":"https://site.com/uploads/author-image.jpg","inLanguage":"en-US","contentUrl":"https://site.com/uploads/author-image.jpg","height":"400","width":"400","caption":"Author Name"},"sameAs":["https://twitter.com/AuthorId","https://www.linkedin.com/company/AuthorId/"],"url":"https://site.com/author"},{"@type":"WebPage","@id":"https://site.com/url/#webpage","name":"Page Title","description":"Page Description","image":{"@id":"https://site.com/uploads/image-1.jpg#image"},"mainEntityOfPage":"https://site.com/url/","potentialAction":{"@type":"ReadAction","target":"https://site.com/url/"},"url":"https://site.com/url/","author":{"@id":"https://site.com/author#person"},"creator":{"@id":"https://site.com/author#person"},"dateCreated":"2024-08-17T18:30:00+00:00","dateModified":"2024-08-17T19:30:00+00:00","datePublished":"2024-08-17T18:30:00+00:00","headline":"Page Title","inLanguage":"en-US","isPartOf":{"@id":"https://site.com/#website"},"keywords":["SEO","AspNetCore","MVC","RazorPages"],"breadcrumb":{"@id":"https://site.com/posts/post-url#breadcrumb"},"primaryImageOfPage":{"@id":"https://site.com/uploads/image-1.jpg#image"}}]}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://site.com/#organization","name":"Organization Name","alternateName":"Organization AlternateName","image":{"@id":"https://site.com/uploads/logo.jpg#image"},"sameAs":["https://twitter.com/MyTwitterId","https://www.linkedin.com/company/MyCompanyId/"],"url":"https://site.com/","contactPoint":[{"@type":"ContactPoint","areaServed":"US","availableLanguage":"English","contactType":"sales","telephone":"+0123456789"},{"@type":"ContactPoint","areaServed":"US","availableLanguage":"English","contactType":"customer service","telephone":"+0123456789"}],"logo":{"@type":"ImageObject","@id":"https://site.com/uploads/logo.jpg#image","url":"https://site.com/uploads/logo.jpg","inLanguage":"en-US","contentUrl":"https://site.com/uploads/logo.jpg","height":"400","width":"400","caption":"Image Caption"}},{"@type":"WebSite","@id":"https://site.com/#website","name":"WebSite Name","description":"WebSite Description","alternateName":"WebSite AlternateName","potentialAction":{"@type":"SearchAction","target":"https://site.com/?s={search_term_string}","query-input":"required name=search_term_string"},"url":"https://site.com/","inLanguage":"en-US","publisher":{"@id":"https://site.com/#organization"}},{"@type":"BreadcrumbList","@id":"https://site.com/posts/post-url#breadcrumb","itemListElement":[{"@type":"ListItem","item":{"@type":"WebPage","@id":"https://site.com/#webpage","name":"Home","url":"https://site.com/"},"position":1},{"@type":"ListItem","item":{"@type":"WebPage","@id":"https://site.com/posts/#webpage","name":"Post List","url":"https://site.com/posts/"},"position":2},{"@type":"ListItem","item":{"@type":"WebPage","@id":"https://site.com/posts/post-url#webpage","name":"Current Post","url":"https://site.com/posts/post-url"},"position":3}],"numberOfItems":3},{"@type":"ImageObject","@id":"https://site.com/uploads/image-1.jpg#image","url":"https://site.com/uploads/image-1.jpg","inLanguage":"en-US","contentUrl":"https://site.com/uploads/image-1.jpg","height":"720","width":"1280","caption":"Image Name"},{"@type":"Person","@id":"https://site.com/author#person","name":"Author Name","description":"Author Description","image":{"@type":"ImageObject","@id":"https://site.com/uploads/author-image.jpg#image","url":"https://site.com/uploads/author-image.jpg","inLanguage":"en-US","contentUrl":"https://site.com/uploads/author-image.jpg","height":"400","width":"400","caption":"Author Name"},"sameAs":["https://twitter.com/AuthorId","https://www.linkedin.com/company/AuthorId/"],"url":"https://site.com/author"},{"@type":"WebPage","@id":"https://site.com/url/#webpage","name":"Page Title","description":"Page Description","image":{"@id":"https://site.com/uploads/image-1.jpg#image"},"mainEntityOfPage":"https://site.com/url/","potentialAction":{"@type":"ReadAction","target":"https://site.com/url/"},"url":"https://site.com/url/","author":{"@id":"https://site.com/author#person"},"creator":{"@id":"https://site.com/author#person"},"dateCreated":"2024-08-17T22:00:00+00:00","dateModified":"2024-08-17T23:00:00+00:00","datePublished":"2024-08-17T22:00:00+00:00","headline":"Page Title","inLanguage":"en-US","isPartOf":{"@id":"https://site.com/#website"},"keywords":["SEO","AspNetCore","MVC","RazorPages"],"breadcrumb":{"@id":"https://site.com/posts/post-url#breadcrumb"},"primaryImageOfPage":{"@id":"https://site.com/uploads/image-1.jpg#image"}}]}</script>


<link rel="stylesheet" href="/lib/bootstrap/dist/css/bootstrap.min.css" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
<meta property="og:image:alt" content="Image alt" />
<meta property="article:publisher" content="https://facebook.com/MySite" />
<meta property="article:author" content="https://facebook.com/MyUserId" />
<meta property="article:published_time" content="2024-08-17T18:30:00+00:00" />
<meta property="article:modified_time" content="2024-08-17T19:30:00+00:00" />
<meta property="article:published_time" content="2024-08-17T22:00:00+00:00" />
<meta property="article:modified_time" content="2024-08-17T23:00:00+00:00" />
<meta property="article:section" content="SEO" />
<meta property="article:tag" content="SEO" />
<meta property="article:tag" content="AspNetCore" />
Expand Down

0 comments on commit 31613e4

Please sign in to comment.