Skip to content

Commit 9786656

Browse files
committedOct 31, 2022
Change schema.org identifiers to use https
1 parent 65b5c13 commit 9786656

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed
 

‎.idea/inspectionProfiles/Project_Default.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/framework/resources/views/components/article-excerpt.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/** @var \Hyde\Pages\MarkdownPost $post */
33
@endphp
44

5-
<article class="mt-4 mb-8" itemscope itemtype="http://schema.org/Article">
5+
<article class="mt-4 mb-8" itemscope itemtype="https://schema.org/Article">
66
<meta itemprop="identifier" content="{{ $post->identifier }}">
77
@if(Hyde::hasSiteUrl())
88
<meta itemprop="url" content="{{ Hyde::url('posts/' . $post->identifier) }}">
@@ -24,7 +24,7 @@
2424
</span>
2525
@endisset
2626
@isset($post->author)
27-
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
27+
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
2828
<span class="opacity-75">by</span>
2929
<span itemprop="name">
3030
{{ $post->author->name ?? $post->author->username }}

‎packages/framework/resources/views/components/docs/documentation-article.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'document',
44
])
55

6-
<article id="document" itemscope itemtype="http://schema.org/Article" @class([
6+
<article id="document" itemscope itemtype="https://schema.org/Article" @class([
77
'mx-auto lg:ml-8 prose dark:prose-invert max-w-3xl p-12 md:px-16 max-w-[1000px] min-h-[calc(100vh_-_4rem)]',
88
'torchlight-enabled' => $document->hasTorchlight()])>
99
@yield('content')

‎packages/framework/resources/views/components/post/article.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<article aria-label="Article" id="{{ Hyde::url("posts/$page->identifier", '') }}" itemscope
2-
itemtype="http://schema.org/Article"
2+
itemtype="https://schema.org/Article"
33
@class(['post-article mx-auto prose dark:prose-invert', 'torchlight-enabled' => Hyde\Facades\Features::hasTorchlight()])>
44
<meta itemprop="identifier" content="{{ $page->identifier }}">
55
@if(Hyde::hasSiteUrl())

‎packages/framework/resources/views/components/post/author.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
by author
2-
<address itemprop="author" itemscope itemtype="http://schema.org/Person" aria-label="The post author" style="display: inline;">
2+
<address itemprop="author" itemscope itemtype="https://schema.org/Person" aria-label="The post author" style="display: inline;">
33
@if($page->author->website)
44
<a href="{{ $page->author->website }}" rel="author" itemprop="url" aria-label="The author's website">
55
@endif

‎packages/framework/resources/views/components/post/image.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
/** @var \Hyde\Framework\Features\Blogging\Models\FeaturedImage $image */
44
$image = $page->image;
55
@endphp
6-
<figure aria-label="Cover image" itemprop="image" itemscope itemtype="http://schema.org/ImageObject" role="doc-cover">
6+
<figure aria-label="Cover image" itemprop="image" itemscope itemtype="https://schema.org/ImageObject" role="doc-cover">
77
<img src="{{ $image->getSource() }}" alt="{{ $image->getAltText() ?? '' }}" title="{{ $image->getTitleText() ?? '' }}"
88
itemprop="image" class="mb-0">
99
<figcaption aria-label="Image caption" itemprop="caption">
1010
@if($image->hasAuthorName())
1111
<span>Image by</span>
12-
<span itemprop="creator" itemscope="" itemtype="http://schema.org/Person">
12+
<span itemprop="creator" itemscope="" itemtype="https://schema.org/Person">
1313
@if($image->hasAuthorUrl())
1414
<a href="{{ $image->getAuthorUrl() }}" rel="author noopener nofollow" itemprop="url">
1515
<span itemprop="name">{{ $image->getAuthorName() }}</span>.

‎packages/framework/tests/Feature/StaticSiteBuilderPostModuleTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ public function test_post_contains_expected_meta_tags()
105105
public function test_post_contains_expected_itemprops()
106106
{
107107
$this->inspectHtml([
108-
'itemtype="http://schema.org/Article"',
109-
'itemtype="http://schema.org/Person"',
108+
'itemtype="https://schema.org/Article"',
109+
'itemtype="https://schema.org/Person"',
110110
'itemprop="identifier"',
111111
'itemprop="headline"',
112112
'itemprop="dateCreated datePublished"',

‎packages/framework/tests/Unit/Views/ArticleExcerptViewTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function renderTestView(MarkdownPost $post): string
2424
public function test_component_can_be_rendered()
2525
{
2626
$view = $this->renderTestView(MarkdownPost::make());
27-
$this->assertStringContainsString('http://schema.org/Article', $view);
27+
$this->assertStringContainsString('https://schema.org/Article', $view);
2828
}
2929

3030
public function test_component_renders_post_data()

‎packages/framework/tests/Unit/Views/FeaturedImageViewTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function test_image_author_attribution_string()
5050
{
5151
$string = $this->renderComponent(['image.author' => 'John Doe']);
5252
$this->assertStringContainsString('itemprop="creator"', $string);
53-
$this->assertStringContainsString('itemtype="http://schema.org/Person"', $string);
53+
$this->assertStringContainsString('itemtype="https://schema.org/Person"', $string);
5454
$this->assertStringContainsString('<span itemprop="name">John Doe</span>', $string);
5555
}
5656

@@ -62,7 +62,7 @@ public function test_image_author_attribution_string_with_url()
6262
]);
6363
$this->assertStringContainsString('itemprop="creator"', $string);
6464
$this->assertStringContainsString('itemprop="url"', $string);
65-
$this->assertStringContainsString('itemtype="http://schema.org/Person"', $string);
65+
$this->assertStringContainsString('itemtype="https://schema.org/Person"', $string);
6666
$this->assertStringContainsString('<span itemprop="name">John Doe</span>', $string);
6767
$this->assertStringContainsString('<a href="https://example.com/"', $string);
6868
}

0 commit comments

Comments
 (0)
Please sign in to comment.