Switch bio to be stored in database
This commit is contained in:
parent
f51a740858
commit
bdb69df52d
14 changed files with 219 additions and 38 deletions
19
resources/views/admin/bio/show.blade.php
Normal file
19
resources/views/admin/bio/show.blade.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')Edit Bio « Admin CP « @stop
|
||||
|
||||
@section('content')
|
||||
<h1>Edit bio</h1>
|
||||
<form action="/admin/bio" method="post" accept-charset="utf-8" class="admin-form form">
|
||||
{{ csrf_field() }}
|
||||
{{ method_field('PUT') }}
|
||||
<div>
|
||||
<label for="content">Content:</label>
|
||||
<br>
|
||||
<textarea name="content" id="content" rows="10" cols="50">{{ old('content', $bioEntry?->content) }}</textarea>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" name="save">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
@stop
|
|
@ -46,4 +46,9 @@
|
|||
You can either <a href="/admin/syndication/create">create</a> new syndication targets,
|
||||
or <a href="/admin/syndication">edit</a> them.
|
||||
</p>
|
||||
|
||||
<h2>Bio</h2>
|
||||
<p>
|
||||
Edit your <a href="/admin/bio">bio</a>.
|
||||
</p>
|
||||
@stop
|
||||
|
|
|
@ -27,6 +27,4 @@
|
|||
</div>
|
||||
|
||||
{{ $items->links('templates.pagination') }}
|
||||
|
||||
@include('templates.bio')
|
||||
@stop
|
||||
|
|
|
@ -43,9 +43,11 @@
|
|||
</header>
|
||||
|
||||
<main>
|
||||
@yield('content')
|
||||
@section('bio')
|
||||
@show
|
||||
@yield('content')
|
||||
|
||||
@isset($bio)
|
||||
{!! $bio !!}
|
||||
@endisset
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
@section('bio')
|
||||
<div class="h-card personal-bio">
|
||||
<p>My name is <span class="p-name p-author">Jonny Barnes</span>, and
|
||||
<a rel="me" href="https://jonnybarnes.uk" class="u-url">
|
||||
<code>jonnybarnes.uk</code>
|
||||
</a> is my site. I’m from
|
||||
<a href="https://en.wikipedia.org/wiki/Manchester" class="h-adr p-adr">
|
||||
<span class="p-locality">Manchester</span>,
|
||||
<abbr class="p-country-name" title="United Kingdom">UK</abbr>
|
||||
</a>.</p>
|
||||
<p>I am active to varying degrees on several
|
||||
<a href="https://indieweb.org/silo">silos</a>:</p>
|
||||
<ul>
|
||||
<li>I keep in touch with friends on <a rel="me" href="https://www.facebook.com/jonnybarnes" class="u-url">Facebook</a></li>
|
||||
<li>I follow people I find interesting on <a rel="me" href="https://twitter.com/jonnybarnes" class="u-url">Twitter</a></li>
|
||||
<li>I toot on the fediverse with my own instance of <a rel="me" href="https://mastodon.thebeeches.house/@jonny" class="u-url">Mastodon</a></li>
|
||||
<li>I push code to <a rel="me" href="https://github.com/jonnybarnes" class="u-url">GitHub</a></li>
|
||||
<li>I scrobble songs to <a rel="me" href="https://last.fm/user/jonnymbarnes" class="u-url">last.fm</a> that I listen to on <a rel="me" href="https://open.spotify.com/user/jonnybarnes89" class="u-url">Spotify</a> or <a rel="me" href="https://music.apple.com/profile/jonnybarnes" class="u-url">Apple Music</a></li>
|
||||
<li>I post photos to <a rel="me" href="https://www.instagram.com/jonnybarnes/" class="u-url">Instagram</a></li>
|
||||
</ul>
|
||||
<p>My usual online nickname is normally <code class="nickname">
|
||||
jonnybarnes</code> for other services. I also syndicate my content
|
||||
to the IndieWeb friendly site
|
||||
<a rel="me" href="https://micro.blog/jonnybarnes" class="u-url">micro.blog</a>.
|
||||
Here’s a <a href="/assets/img/jmb-bw.png" class="u-photo photo">
|
||||
profile pic</a>. I also have a
|
||||
<a class="pgpkey" href="/assets/jonnybarnes-public-key-ecc.asc">PGP
|
||||
key</a>, with <a href="/notes/5g">fingerprint</a>. You can email me
|
||||
at jonny at my domain, or message me on
|
||||
<a href="xmpp:jonny@chat.jonnybarnes.uk">XMPP</a>.</p>
|
||||
</div>
|
||||
@stop
|
Loading…
Add table
Add a link
Reference in a new issue