Skip to content

Instantly share code, notes, and snippets.

@JeffreyWay
Created July 10, 2020 16:28
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save JeffreyWay/a6690c7c2f52c29ea80c04dbd4f70d83 to your computer and use it in GitHub Desktop.
Save JeffreyWay/a6690c7c2f52c29ea80c04dbd4f70d83 to your computer and use it in GitHub Desktop.
<x-layout>
<x-slot name="head">
<x-social-media-meta
title="Blade Component Examples"
description="Learn about all sorts of Blade component tips and tricks."
image="https://farm6.staticflickr.com/5510/14338202952_93595258ff_z.jpg"
card="summary"
/>
</x-slot>
<x-section>
<h1 class="font-bold text-lg">Blade Component Examples</h1>
</x-section>
</x-layout>
@props(['card' => 'summary_large_image', 'title', 'description', 'image' => false])
<meta name="twitter:card" content="{{ $card }}" />
<meta name="twitter:site" content="@laracasts" />
<meta property="og:title" content="{{ $title }}" />
<meta property="og:description" content="{{ $description }}" />
@if ($image)
<meta property="og:image" content="{{ $image }}" />
@endif
<meta property="og:url" content="{{ url()->current() }}" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment