浏览代码

Merge pull request #239 from m4sk1n/fix-titles

Fix following/ers page titles
daniel 7 年之前
父节点
当前提交
bccd01b2dc
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 3 3
      resources/views/profile/followers.blade.php
  2. 3 3
      resources/views/profile/following.blade.php

+ 3 - 3
resources/views/profile/followers.blade.php

@@ -1,4 +1,4 @@
-@extends('layouts.app',['title' => $user->username . "'s followers"])
+@extends('layouts.app',['title' => $profile->username . "'s followers"])
 
 
 @section('content')
 @section('content')
 
 
@@ -60,6 +60,6 @@
 @endsection
 @endsection
 
 
 @push('meta')
 @push('meta')
-<meta property="og:description" content="{{$user->bio}}">
-<meta property="og:image" content="{{$user->avatarUrl()}}">
+<meta property="og:description" content="{{$profile->bio}}">
+<meta property="og:image" content="{{$profile->avatarUrl()}}">
 @endpush
 @endpush

+ 3 - 3
resources/views/profile/following.blade.php

@@ -1,4 +1,4 @@
-@extends('layouts.app',['title' => $user->username . "'s follows"])
+@extends('layouts.app',['title' => $profile->username . "'s follows"])
 
 
 @section('content')
 @section('content')
 
 
@@ -60,6 +60,6 @@
 @endsection
 @endsection
 
 
 @push('meta')
 @push('meta')
-<meta property="og:description" content="{{$user->bio}}">
-<meta property="og:image" content="{{$user->avatarUrl()}}">
+<meta property="og:description" content="{{$profile->bio}}">
+<meta property="og:image" content="{{$profile->avatarUrl()}}">
 @endpush
 @endpush