import Head from 'next/head'
import Link from 'next/link'

export default function Layout({
  children,
  title
}: {
  children: React.ReactNode
  title?: string
}) {
  return (
    <>
      <Head>
        <title>{title && title + " | "}Kevin Plattret, Software Engineer</title>

        <link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png" />
        <link rel="shortcut icon" href="/icons/favicon.png" />
      </Head>

      <header className="header">
        <Link href="/"><a className="alt">Kevin Plattret</a></Link>

        <nav className="navigation">
          <ul>
            <li><Link href="/blog"><a className="alt">Blog</a></Link></li>
            <li><Link href="/work"><a className="alt">Work</a></Link></li>
          </ul>
        </nav>
      </header>

      <main className="content">{children}</main>

      <footer className="footer">
        <p>Written by Kevin Plattret in London and other places. Source code available
          on <a href="https://github.com/kplattret/kevinplattret.com">GitHub</a>. Feel free to reach
          out via <a href="mailto:kevin@plattret.com">email</a>.</p>
      </footer>
    </>
  )
}

import Head from 'next/head'
import Link from 'next/link'

export default function Layout({
  children,
  title
}: {
  children: React.ReactNode
  title?: string
}) {
  return (
    <>
      <Head>
        <title>{title && title + " | "}Kevin Plattret, Software Engineer</title>

        <link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png" />
        <link rel="shortcut icon" href="/icons/favicon.png" />
      </Head>

      <header className="header">
        <Link href="/"><a className="alt">Kevin Plattret</a></Link>

        <nav className="navigation">
          <ul>
            <li><Link href="/blog"><a className="alt">Blog</a></Link></li>
            <li><Link href="/work"><a className="alt">Work</a></Link></li>
          </ul>
        </nav>
      </header>

      <main className="content">{children}</main>

      <footer className="footer">
        <p>Written by Kevin Plattret in London and other places. Source code available
          on <a href="https://github.com/kplattret/kevinplattret.com">GitHub</a>. Feel free to reach
          out via <a href="mailto:kevin@plattret.com">email</a> (
          <a href="https://keys.openpgp.org/search?q=kevin@plattret.com">PGP key</a>).</p>
      </footer>
    </>
  )
}

Add link to publib PGP key in footer
Add link to publib PGP key in footer

Let's make it easier for people to find my public PGP key if they want
to send me encrypted emails. This adds a link to my public key hosted on
the official OpenPGP keyserver.
