light-hugo/layouts/partials/header.html

62 lines
2.3 KiB
HTML
Raw Normal View History

2016-11-02 23:10:49 -04:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>{{ .Title }} &middot; {{ .Site.Title }}</title>
<base href="{{ .Permalink }}">
<link rel="canonical" href="{{ .Permalink }}">
{{ if .RSSlink }}
<link href="{{ .RSSlink }}" rel="alternative" type="application/rss+xml" title="{{ .Title }}" />
{{ end }}
</head>
<body>
<a id="title" href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
{{ if .Site.Params.logo }}
<img id="logo" alt="Logo" src="{{ .Site.Params.logo }}" />
{{ end }}
{{ if .Site.Title }}
<h1>{{ .Site.Title }}</h1>
{{ end }}
</a>
<div id="social">
2016-11-03 15:59:13 -04:00
{{ $icon_size := "64px" }}
2016-11-02 23:10:49 -04:00
{{ if .Site.Params.email }}
<a href="mailto:{{ .Site.Params.email }}" title="Email">
2016-11-03 15:59:13 -04:00
<img alt="Email" height="{{ $icon_size }}" width="{{ $icon_size }}" src="{{ .Site.BaseURL }}/images/email.svg" />
2016-11-02 23:10:49 -04:00
</a>
{{ end }}
{{ if .Site.Params.github }}
<a href="https://github.com/{{ .Site.Params.github }}" title="Github">
2016-11-03 15:59:13 -04:00
<img alt="GitHub" height="{{ $icon_size }}" width="{{ $icon_size }}" src="{{ .Site.BaseURL }}/images/github.svg" />
2016-11-02 23:10:49 -04:00
</a>
{{ end }}
{{ if .Site.Params.facebook }}
<a href="https://facebook.com/{{ .Site.Params.facebook }}" title="Facebook">
2016-11-03 15:59:13 -04:00
<img alt="Facebook" height="{{ $icon_size }}" width="{{ $icon_size }}" src="{{ .Site.BaseURL }}/images/facebook.svg" />
2016-11-02 23:10:49 -04:00
</a>
{{ end }}
{{ if .Site.Params.twitter }}
<a href="https://twitter.com/{{ .Site.Params.twitter }}" title="Twitter">
2016-11-03 15:59:13 -04:00
<img alt="Twitter" height="{{ $icon_size }}" width="{{ $icon_size }}" src="{{ .Site.BaseURL }}/images/twitter.svg" />
2016-11-02 23:10:49 -04:00
</a>
{{ end }}
{{ if .Site.Params.linkedin }}
<a href="https://linkedin.com/in/{{ .Site.Params.linkedin }}" title="LinkedIn">
2016-11-03 15:59:13 -04:00
<img alt="LinkedIn" height="{{ $icon_size }}" width="{{ $icon_size }}" src="{{ .Site.BaseURL }}/images/linkedin.svg" />
2016-11-02 23:10:49 -04:00
</a>
{{ end }}
</div>
{{ if .Site.Params.description }}
<p>{{ .Site.Params.description }}</p>
{{ end }}
<div class="links">
<a href="{{ .Site.BaseURL }}">Home</a>
{{ range first 1 (where .Site.Pages "Type" "post") }}
2016-11-03 09:37:02 -04:00
<a href="{{ .Site.BaseURL }}/post/">Archive</a>
2016-11-02 23:10:49 -04:00
{{ end }}
{{ range where .Site.Pages "Type" "!=" "post" }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
</div>