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

@ -41,4 +41,8 @@
</section>
</div>
@endsection
@endsection
@push('meta')
<meta property="og:description" content="Discover People!">
@endpush

View file

@ -34,4 +34,8 @@
</div>
@endsection
@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')
@ -120,4 +120,9 @@
</div>
@endsection
@endsection
@push('meta')
<meta property="og:description" content="{{$user->bio}}">
<meta property="og:image" content="{{$user->avatarUrl()}}">
@endpush

View file

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

View file

@ -6,4 +6,8 @@
<h3 class="font-weight-bold">Banned Instances</h3>
</div>
<hr>
@endsection
@endsection
@push('meta')
<meta property="og:description" content="Banned Instances">
@endpush

View file

@ -6,4 +6,8 @@
<h3 class="font-weight-bold">Features</h3>
</div>
<hr>
@endsection
@endsection
@push('meta')
<meta property="og:description" content="Features">
@endpush

View file

@ -14,4 +14,8 @@
<li>Pleroma - A federated twitter alternative.</li>
</ul>
</section>
@endsection
@endsection
@push('meta')
<meta property="og:description" content="What's Fediverse">
@endpush

View file

@ -6,4 +6,8 @@
<h3 class="font-weight-bold">Help</h3>
</div>
<hr>
@endsection
@endsection
@push('meta')
<meta property="og:description" content="Help">
@endpush

View file

@ -6,4 +6,8 @@
<h3 class="font-weight-bold">Libraries</h3>
</div>
<hr>
@endsection
@endsection
@push('meta')
<meta property="og:description" content="Libraries">
@endpush

View file

@ -9,4 +9,8 @@
<section>
<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
@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')
@ -22,4 +22,4 @@
</div>
</div>
@endsection
@endsection

View file

@ -6,4 +6,8 @@
<h3 class="font-weight-bold">Platform/API Terms Of Use</h3>
</div>
<hr>
@endsection
@endsection
@push('meta')
<meta property="og:description" content="Platfor/API Terms of Use">
@endpush

View file

@ -77,4 +77,8 @@
<p class="lead">Originally adapted from the <a href="https://mastodon.social/terms">Mastodon</a> privacy policy.</p>
</div>
@endsection
@endsection
@push('meta')
<meta property="og:description" content="Privacy Policy">
@endpush

View file

@ -6,4 +6,8 @@
<h3 class="font-weight-bold">Terms Of Use</h3>
</div>
<hr>
@endsection
@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')
@ -84,4 +84,9 @@
</div>
</div>
@endsection
@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