]> BookStack Code Mirror - bookstack/blobdiff - resources/views/pages/show.blade.php
Merge branch 'create-content-meta-tags' of https://github.com/james-geiger/BookStack...
[bookstack] / resources / views / pages / show.blade.php
index 6e84c44a86d8768f3c224308b95a67b0a7feae72..398c8a8530e3180408d8f49b13be0d7bc99bdc73 100644 (file)
@@ -1,5 +1,10 @@
 @extends('tri-layout')
 
+@push('social-meta')
+    <meta property="og:description" content="{{ Str::limit($page->text, 100, '...') }}">
+    <meta property="og:image" content="{{ $page->getCoverImage() }}">
+@endpush
+
 @section('body')
 
     <div class="mb-m print-hidden">