Crieitの開発
2019-01-19に投稿

投稿詳細にArticleの構造化マークアップを入れてみた。しかし実際にどうやって自分で検索結果で確認できる日が来るんだろう…。

よく分かってないけどこんなJSON

        return [
            '@context' => 'http://schema.org',
            '@type' => 'Article',
            'mainEntityOfPage' => [
                '@type' => 'WebPage',
                '@id' => config('app.url') . "/posts/{$this->unique_id}",
            ],
            'headline' => $this->name,
            'image' => $images,
            'datePublished' => $this->created_at->format('c'),
            'dateModified' => $this->updated_at->format('c'),
            'author' => [
                '@type' => 'Person',
                'name' => $this->user->name,
            ],
            'publisher' => [
                '@type' => 'Organization',
                'name' => 'Crieit',
                'logo' => [
                    '@type' => 'ImageObject',
                    'url' => config('app.url') . '/img/card.png',
                ],
            ],
            'description' => $this->getDescription(107),
        ];

だら@Crieit開発者

Crieitの開発者です。 Webエンジニアです(在宅)。大体10年ちょい。 記事でわかりにくいところがあればDMで質問していただくか、案件発注してください。 業務依頼、同業種の方からのコンタクトなどお気軽にご連絡ください。 業務経験有:PHP, MySQL, Laravel, React, Flutter, Vue.js, Node, RoR 趣味:Elixir, Phoenix, Nuxt, Express, GCP, AWS等色々 PHPフレームワークちいたんの作者

Crieitの開発
所有者限定モードのためこのボードには投稿できません
コメント
Crieitの開発