portfolio/layouts/_default/baseof.html

55 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ $description := .Site.Params.description }}
{{ with .Description }}
{{ $description = . }}
{{ else }}
{{ with .Summary }}
{{ $description = . | plainify }}
{{ end }}
{{ end }}
<title>
{{ if .IsHome }}
{{ .Site.Title }}
{{ else }}
{{ .Title }} | {{ .Site.Title }}
{{ end }}
</title>
<meta name="description" content="{{ $description }}">
{{ with resources.Get "css/site.css" }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ end }}
{{ if and .IsPage (eq .Section "studies") .Params.study.toc }}
<script src="{{ "js/main.js" | relURL }}" defer></script>
{{ end }}
</head>
<body>
<header>
<div class="title">
<a class="logo" href="{{ "/" | relURL }}">
<span class="tablet-hide">AG</span>
<span class="tablet-show">Andrew Gioia</span>
</a>
{{- if and .IsPage (eq .Section "studies") -}}
<a class="page" href="{{ "/studies" | relURL }}">
Case study
</a>
{{ end }}
</div>
<nav aria-label="Primary">
<a href="{{ "/studies/" | relURL }}">Case studies</a>
<a href="{{ "/contact/" | relURL }}">Get in touch</a>
</nav>
</header>
<main>
{{ block "main" . }}{{ end }}
</main>
<footer>
{{ partial "footer.html" . }}
</footer>
</body>
</html>