Use a DISPLAY_NAME variable for titles

This commit is contained in:
Jonny Barnes 2016-12-10 11:48:17 +00:00
parent ca3dcf33fb
commit 187d387234
15 changed files with 18 additions and 17 deletions

View file

@ -42,6 +42,7 @@ APP_SHORTURL=examp.le
ADMIN_USER=admin # pick something better, this is used for `/admin`
ADMIN_PASS=password
DISPLAY_NAME='Joe Bloggs' # This is used for example in the header and titles
TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=

View file

@ -1,7 +1,7 @@
@extends('master')
@section('title')
Notes « Jonny Barnes
Notes «
@stop
@section('content')

View file

@ -1,7 +1,7 @@
@extends('master')
@section('title')
Places « Jonny Barnes
Places «
@stop
@section('content')

View file

@ -1,5 +1,5 @@
@extends('master')
@section('title')Colophon for Jonny Barnes.uk @stop
@section('title')Colophon for @stop
@section('content')
<h2>Colophon</h2>

View file

@ -1,7 +1,7 @@
@extends('master')
@section('title')
Contacts « Jonny Barnes
Contacts «
@stop
@section('content')

View file

@ -1,7 +1,7 @@
@extends('master')
@section('title')
Contacts « Jonny Barnes
Contacts «
@stop
@section('content')

View file

@ -2,12 +2,12 @@
<html lang="en-GB">
<head>
<meta charset="UTF-8">
<title>@if (App::environment() == 'local'){!! "[testing] -"!!}@endif @yield('title')</title>
<title>@if (App::environment() == 'local'){!! "[testing] -"!!}@endif @yield('title'){{ env('DISPLAY_NAME') }}</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/assets/frontend/normalize.css">
<link rel="stylesheet" href="/assets/css/app.css">
<link rel="openid.server" href="https://indieauth.com/openid">
<link rel="openid.delegate" href="https://jonnybarnes.uk">
<link rel="openid.delegate" href="{{ config('app.url') }}">
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
<link rel="token_endpoint" href="{{ config('app.url') }}/api/token">
<link rel="micropub" href="{{ config('app.url') }}/api/post">
@ -18,7 +18,7 @@
<body>
<header id="topheader">
<a rel="author" href="/">
<h1>Jonny Barnes</h1>
<h1>{{ env('DISPLAY_NAME') }}</h1>
</a>
<nav>
<a href="/blog">Articles</a>

View file

@ -1,7 +1,7 @@
@extends('master')
@section('title')
New Note « Jonny Barnes
New Note «
@stop
@section('content')

View file

@ -1,7 +1,7 @@
@extends('master')
@section('title')
Articles « Jonny Barnes
Articles «
@stop
@section('content')

View file

@ -1,7 +1,7 @@
@extends('master')
@section('title')
Search « Jonny Barnes
Search «
@stop
@section('content')

View file

@ -1,7 +1,7 @@
@extends('master')
@section('title')
{{ strip_tags($note->note) }} « Notes « Jonny Barnes
{{ strip_tags($note->note) }} « Notes «
@stop
@section('content')

View file

@ -1,7 +1,7 @@
@extends('master')
@section('title')
{{ $place->name }} « Places « Jonny Barnes
{{ $place->name }} « Places «
@stop
@section('content')

View file

@ -1,7 +1,7 @@
@extends('master')
@section('title')
{{ strip_tags($article->title) }} <?php echo html_entity_decode("&laquo;"); ?> Jonny Barnes
{{ strip_tags($article->title) }} «
@stop
@section('content')

View file

@ -1,7 +1,7 @@
@extends('master')
@section('title')
Notes <?php echo html_entity_decode('&laquo;'); ?> Jonny Barnes
Tagged Notes «
@stop
@section('content')
@ -10,4 +10,4 @@ Notes <?php echo html_entity_decode('&laquo;'); ?> Jonny Barnes
<div>{!! $note->note !!}
<a href="/note/{{ $note->id }}">{{ $note->human_time }}</a></div>
@endforeach
@stop
@stop

View file

@ -1,7 +1,7 @@
@extends('master')
@section('title')
WebMentions « Jonny Barnes
WebMentions «
@stop
@section('content')