mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Merge branch 'create-content-meta-tags' of https://github.com/james-geiger/BookStack into james-geiger-create-content-meta-tags
This commit is contained in:
@ -11,6 +11,12 @@
|
||||
<meta name="base-url" content="{{ url('/') }}">
|
||||
<meta charset="utf-8">
|
||||
|
||||
<!-- Social Cards Meta -->
|
||||
<meta property="og:title" content="{{ isset($pageTitle) ? $pageTitle . ' | ' : '' }}{{ setting('app-name') }}">
|
||||
<meta property="og:url" content="{{ url()->current() }}">
|
||||
@stack('social-meta')
|
||||
|
||||
|
||||
<!-- Styles and Fonts -->
|
||||
<link rel="stylesheet" href="{{ versioned_asset('dist/styles.css') }}">
|
||||
<link rel="stylesheet" media="print" href="{{ versioned_asset('dist/print-styles.css') }}">
|
||||
|
@ -6,6 +6,11 @@
|
||||
option:entity-search:entity-type="book"
|
||||
@stop
|
||||
|
||||
@push('social-meta')
|
||||
<meta property="og:description" content="{{ Str::limit($book->description, 100, '...') }}">
|
||||
<meta property="og:image" content="{{ $book->getBookCover() }}">
|
||||
@endpush
|
||||
|
||||
@section('body')
|
||||
|
||||
<div class="mb-s">
|
||||
|
@ -6,6 +6,11 @@
|
||||
option:entity-search:entity-type="chapter"
|
||||
@stop
|
||||
|
||||
@push('social-meta')
|
||||
<meta property="og:description" content="{{ Str::limit($chapter->description, 100) }}">
|
||||
<meta property="og:image" content="{{ $chapter->book->getBookCover() }}">
|
||||
@endpush
|
||||
|
||||
@section('body')
|
||||
|
||||
<div class="mb-m print-hidden">
|
||||
|
@ -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">
|
||||
|
@ -1,5 +1,10 @@
|
||||
@extends('tri-layout')
|
||||
|
||||
@push('social-meta')
|
||||
<meta property="og:description" content="{{ Str::limit($shelf->description, 100) }}">
|
||||
<meta property="og:image" content="{{ $shelf->getBookCover() }}">
|
||||
@endpush
|
||||
|
||||
@section('body')
|
||||
|
||||
<div class="mb-s">
|
||||
|
Reference in New Issue
Block a user