Introduce opengraph tags to the service

This commit is contained in:
hellcp 2018-06-02 20:11:08 +02:00
parent 2bdd21105b
commit 76f23cb208
21 changed files with 105 additions and 25 deletions

1
.htaccess Normal file
View file

@ -0,0 +1 @@
Deny from all

View file

@ -42,3 +42,7 @@
</div>
@endsection
@push('meta')
<meta property="og:description" content="Discover People!">
@endpush

View file

@ -35,3 +35,7 @@
</div>
@endsection
@push('meta')
<meta property="og:description" content="Discover {{$tag->name}}">
@endpush

View file

@ -1,4 +1,4 @@
@extends('layouts.app')
@extends('layouts.app',['title' => 'Welcome to ' . config('app.name')])
@section('content')
<div class="container mt-4">
@ -29,7 +29,7 @@
@endsection
@push('meta')
<link rel="canonical" href="{{request()->url()}}">
<meta property="og:description" content="">
@endpush

View file

@ -7,10 +7,21 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<meta name="robots" content="noimageindex, noarchive">
<meta name="mobile-web-app-capable" content="yes">
<title>{{ $title or config('app.name', 'Laravel') }}</title>
<meta property="og:site_name" content="{{ config('app.name', 'Laravel') }}">
<meta property="og:title" content="{{ $title or config('app.name', 'Laravel') }}">
<meta property="og:type" content="article">
<meta property="og:url" content="{{request()->url()}}">
@stack('meta')
<meta name="medium" content="image">
<meta name="theme-color" content="#10c5f8">
<link rel="canonical" href="{{request()->url()}}">
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.4.1/css/simple-line-icons.min.css" integrity="sha256-7O1DfUu4pybYI7uAATw34eDrgQaWGOfMV/8erfDQz/Q=" crossorigin="anonymous" />

View file

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

View file

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

View file

@ -1,4 +1,4 @@
@extends('layouts.app')
@extends('layouts.app',['title' => $user->username . " on " . config('app.name')])
@section('content')
@ -121,3 +121,8 @@
</div>
@endsection
@push('meta')
<meta property="og:description" content="{{$user->bio}}">
<meta property="og:image" content="{{$user->avatarUrl()}}">
@endpush

View file

@ -10,3 +10,7 @@
<p class="lead">PixelFed is a federated image sharing platform, powered by the <a href="#">ActivityPub</a> protocol.</p>
</section>
@endsection
@push('meta')
<meta property="og:description" content="PixelFed is a federated image sharing platform, powered by the ActivityPub protocol.">
@endpush

View file

@ -7,3 +7,7 @@
</div>
<hr>
@endsection
@push('meta')
<meta property="og:description" content="Banned Instances">
@endpush

View file

@ -7,3 +7,7 @@
</div>
<hr>
@endsection
@push('meta')
<meta property="og:description" content="Features">
@endpush

View file

@ -15,3 +15,7 @@
</ul>
</section>
@endsection
@push('meta')
<meta property="og:description" content="What's Fediverse">
@endpush

View file

@ -7,3 +7,7 @@
</div>
<hr>
@endsection
@push('meta')
<meta property="og:description" content="Help">
@endpush

View file

@ -7,3 +7,7 @@
</div>
<hr>
@endsection
@push('meta')
<meta property="og:description" content="Libraries">
@endpush

View file

@ -10,3 +10,7 @@
<p class="lead">The software that powers this website is called <a href="https://pixelfed.org">PixelFed</a> and anyone can <a href="https://github.com/dansup/pixelfed">download</a> the source code and run their own instance!</p>
</section>
@endsection
@push('meta')
<meta property="og:description" content="Open source in PixelFed">
@endpush

View file

@ -1,4 +1,4 @@
@extends('layouts.app')
@extends('layouts.app',['title' => 'About ' . config('app.name')])
@section('content')

View file

@ -7,3 +7,7 @@
</div>
<hr>
@endsection
@push('meta')
<meta property="og:description" content="Platfor/API Terms of Use">
@endpush

View file

@ -78,3 +78,7 @@
</div>
@endsection
@push('meta')
<meta property="og:description" content="Privacy Policy">
@endpush

View file

@ -7,3 +7,7 @@
</div>
<hr>
@endsection
@push('meta')
<meta property="og:description" content="Terms of Use">
@endpush

View file

@ -1,4 +1,4 @@
@extends('layouts.app')
@extends('layouts.app',['title' => $user->username . " posted a photo: " . $status->likes()->count() . " likes, " . $status->comments()->count() . " comments" ])
@section('content')
@ -85,3 +85,8 @@
</div>
@endsection
@push('meta')
<meta property="og:description" content="{!! $status->rendered ?? e($status->caption) !!}">
<meta property="og:image" content="{{$status->mediaUrl()}}">
@endpush

View file

@ -10,5 +10,5 @@
@endsection
@push('meta')
<link rel="canonical" href="{{request()->url()}}">
<meta property="og:description" content="Federated Image Sharing">
@endpush