Skip to content

Commit 9a5f50d

Browse files
committed
Changed titles for Yandex recomendation
1 parent 6783217 commit 9a5f50d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

resources/views/html.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<x-meta
3535
title="{!! View::getSection('title') ? strip_tags(View::getSection('title')) . ' | '. config('site.name') : config('site.name') !!}"
3636
description="{!! View::getSection('description', config('site.description')) !!}"
37-
image="{!! route('cover', ['text' => View::getSection('title', config('site.description'))]) !!}"
37+
image="{!! route('cover', ['text' => View::getSection('cover') ?? View::getSection('title', config('site.description'))]) !!}"
3838
{{-- csp="*.laravel.su *.gravatar.com *.githubusercontent.com" --}} />
3939

4040
<link rel="preconnect" href="https://fonts.googleapis.com">

resources/views/pastebin/index.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@extends('layout')
2-
@section('title', 'Pastebin')
2+
@section('title', empty($content) ? 'Pastebin' : \Illuminate\Support\Str::of($content)->limit(30). ' | '. 'Pastebin')
3+
@section('cover', 'Поделитесь своим кодом с кем угодно')
34
@section('description', 'Делитесь вашим кодом онлайн с кем угодно на земле.')
45

56
@section('content')

0 commit comments

Comments
 (0)