mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Introduce opengraph tags to the service
This commit is contained in:
parent
2bdd21105b
commit
76f23cb208
21 changed files with 105 additions and 25 deletions
1
.htaccess
Normal file
1
.htaccess
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Deny from all
|
|
@ -41,4 +41,8 @@
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="Discover People!">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -34,4 +34,8 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="Discover {{$tag->name}}">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@extends('layouts.app')
|
@extends('layouts.app',['title' => 'Welcome to ' . config('app.name')])
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container mt-4">
|
<div class="container mt-4">
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('meta')
|
@push('meta')
|
||||||
<link rel="canonical" href="{{request()->url()}}">
|
<meta property="og:description" content="">
|
||||||
@endpush
|
@endpush
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,21 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
<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')
|
@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://fonts.gstatic.com">
|
||||||
<link rel="dns-prefetch" href="https://cdnjs.cloudflare.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" />
|
<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" />
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@extends('layouts.app')
|
@extends('layouts.app',['title' => $user->username . "'s followers"])
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
|
@ -95,3 +95,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="{{$user->bio}}">
|
||||||
|
<meta property="og:image" content="{{$user->avatarUrl()}}">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@extends('layouts.app')
|
@extends('layouts.app',['title' => $user->username . "'s follows"])
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
|
@ -95,3 +95,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="{{$user->bio}}">
|
||||||
|
<meta property="og:image" content="{{$user->avatarUrl()}}">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@extends('layouts.app')
|
@extends('layouts.app',['title' => $user->username . " on " . config('app.name')])
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
|
@ -120,4 +120,9 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="{{$user->bio}}">
|
||||||
|
<meta property="og:image" content="{{$user->avatarUrl()}}">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -9,4 +9,8 @@
|
||||||
<section>
|
<section>
|
||||||
<p class="lead">PixelFed is a federated image sharing platform, powered by the <a href="#">ActivityPub</a> protocol.</p>
|
<p class="lead">PixelFed is a federated image sharing platform, powered by the <a href="#">ActivityPub</a> protocol.</p>
|
||||||
</section>
|
</section>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="PixelFed is a federated image sharing platform, powered by the ActivityPub protocol.">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -6,4 +6,8 @@
|
||||||
<h3 class="font-weight-bold">Banned Instances</h3>
|
<h3 class="font-weight-bold">Banned Instances</h3>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="Banned Instances">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -6,4 +6,8 @@
|
||||||
<h3 class="font-weight-bold">Features</h3>
|
<h3 class="font-weight-bold">Features</h3>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="Features">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -14,4 +14,8 @@
|
||||||
<li>Pleroma - A federated twitter alternative.</li>
|
<li>Pleroma - A federated twitter alternative.</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="What's Fediverse">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -6,4 +6,8 @@
|
||||||
<h3 class="font-weight-bold">Help</h3>
|
<h3 class="font-weight-bold">Help</h3>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="Help">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -6,4 +6,8 @@
|
||||||
<h3 class="font-weight-bold">Libraries</h3>
|
<h3 class="font-weight-bold">Libraries</h3>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="Libraries">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -9,4 +9,8 @@
|
||||||
<section>
|
<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>
|
<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>
|
</section>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="Open source in PixelFed">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@extends('layouts.app')
|
@extends('layouts.app',['title' => 'About ' . config('app.name')])
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
|
@ -22,4 +22,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
@ -6,4 +6,8 @@
|
||||||
<h3 class="font-weight-bold">Platform/API Terms Of Use</h3>
|
<h3 class="font-weight-bold">Platform/API Terms Of Use</h3>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="Platfor/API Terms of Use">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -77,4 +77,8 @@
|
||||||
<p class="lead">Originally adapted from the <a href="https://mastodon.social/terms">Mastodon</a> privacy policy.</p>
|
<p class="lead">Originally adapted from the <a href="https://mastodon.social/terms">Mastodon</a> privacy policy.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="Privacy Policy">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -6,4 +6,8 @@
|
||||||
<h3 class="font-weight-bold">Terms Of Use</h3>
|
<h3 class="font-weight-bold">Terms Of Use</h3>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="Terms of Use">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -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')
|
@section('content')
|
||||||
|
|
||||||
|
@ -84,4 +84,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('meta')
|
||||||
|
<meta property="og:description" content="{!! $status->rendered ?? e($status->caption) !!}">
|
||||||
|
<meta property="og:image" content="{{$status->mediaUrl()}}">
|
||||||
|
@endpush
|
||||||
|
|
|
@ -10,5 +10,5 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('meta')
|
@push('meta')
|
||||||
<link rel="canonical" href="{{request()->url()}}">
|
<meta property="og:description" content="Federated Image Sharing">
|
||||||
@endpush
|
@endpush
|
||||||
|
|
Loading…
Reference in a new issue