themes/stevelosh/layouts/partials/header.html @ 0ad7006a154b

if-let post
author Steve Losh <steve@stevelosh.com>
date Sun, 08 Jul 2018 20:11:41 +0000
parents a94c8ec4eb98
children ceb68ee2312a
<!DOCTYPE html>
<html>
    <head>
        <link rel="profile" href="http://microformats.org/profile/hcard" />
        <meta charset="utf-8">

        <title>
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ if not (or (eq $url "/") (eq $url "")) }}
    {{ if .Params.heading }}
        {{ .Params.heading }}
    {{ else }}
        {{ .Title }}
    {{ end }}
    /
{{ end }}
{{ .Site.Title }}
        </title>

        <link href="http://feeds2.feedburner.com/stevelosh"
              rel="alternate" title="Steve Losh"
              type="application/atom+xml" />

        <link rel="stylesheet" href="/media/css/aal.css"   type="text/css" media="screen" charset="utf-8" />
        <link rel="stylesheet" href="/media/css/sjl.css"   type="text/css" media="screen" charset="utf-8" />
        <link rel="stylesheet" href="/media/css/print.css" type="text/css" media="print" charset="utf-8" />
        <link rel="stylesheet" href="/media/css/pygments-clean.css" type="text/css" media="screen" charset="utf-8" />

        <script defer src="/media/js/jquery.js" type="text/javascript"></script>
        <script defer src="/media/js/sjl.js" type="text/javascript"></script>
        <script defer src="/media/js/print.js" type="text/javascript"></script>

        {{ if .Params.lightbox }}
            <script defer src="/media/js/featherlight.min.js" type="text/javascript" charset="utf-8"></script>
            <script defer src="/media/js/featherlight.gallery.min.js" type="text/javascript" charset="utf-8"></script>
            <link href="/media/css/featherlight.min.css" type="text/css" rel="stylesheet" />
            <link href="/media/css/featherlight.gallery.min.css" type="text/css" rel="stylesheet" />
        {{ end }}

        {{ if .Params.mathjax }}
        <script type="text/javascript" async
            src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
        </script>
        {{ end }}

        <link rel="openid.server" href="http://www.myopenid.com/server" />
        <link rel="openid.delegate" href="http://stevelosh.myopenid.com/" />
    </head>

    <body>
        <div class="wrap">
            <div class="top group">
                <header>
                    <a href="/">steve losh</a>
                </header>

                <nav>
                    <a href="/blog/">Blog</a>
                    <span class="sep">-</span>
                    <a href="/projects/">Projects</a>
                    <span class="sep">-</span>
                    <a href="/photography/">Photography</a>
                    <span class="sep">-</span>
                    <a href="/links">Links</a>
                    <span class="sep">-</span>
                    <a href="http://feeds2.feedburner.com/stevelosh">Feed</a>
                </nav>
            </div>

            <div class="hr">&nbsp;</div>

            <div class="content">