cupper-hugo-theme/themes/inclusive-pattern-docs/layouts/_default/baseof.html

79 lines
3.0 KiB
HTML
Raw Normal View History

2017-06-15 10:41:44 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="canonical" href="{{ .Permalink }}">
<link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700&text=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz%26" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
<link rel="stylesheet" href="/css/prism.css" />
<link rel="stylesheet" type="text/css" href="/css/styles.css">
<title>
{{ block "title" . }}
{{ .Title }} | {{ .Site.Title }}
{{ end }}
</title>
</head>
<body>
2017-06-19 11:40:21 +02:00
{{ partial "svg.html" . }}
2017-06-15 10:41:44 +02:00
<div class="wrapper">
<header class="intro-and-nav" role="banner">
<div>
<div class="intro">
<a class="logo" href="/" aria-label="{{ .Site.Title }} pattern library home page">
<img src="{{ .Site.BaseURL }}images/logo.png" alt="">
</a>
<p class="library-desc">{{ .Site.Params.Description | safeHTML }}</p>
</div>
<nav class="patterns" role="navigation">
{{ $current := . }}
{{ range $.Site.Home.Sections }}
<ul>
2017-06-19 11:40:21 +02:00
{{ range .Pages }}
<li class="pattern">
<a href="{{ .RelPermalink }}" {{ if eq $current.Title .Title }}aria-current="page"{{ end }}>
<svg class="bookmark" aria-hidden="true" height="50" width="40" viewBox="0 0 40 50"><use xlink:href="#bookmark"></use></svg>
<span>{{ .Title }}</span>
</a>
</li>
</li>
{{ end }}
2017-06-15 10:41:44 +02:00
{{ range .Sections }}
2017-06-19 11:40:21 +02:00
<li>
<h3>{{ .Title }}</h3>
<ul>
{{ range .Pages }}
<li class="pattern">
<a href="{{ .RelPermalink }}" {{ if eq $current.Title .Title }}aria-current="page"{{ end }}>
<svg class="bookmark" aria-hidden="true" height="50" width="40" viewBox="0 0 40 50"><use xlink:href="#bookmark"></use></svg>
<span>{{ .Title }}</span>
</a>
</li>
{{ end }}
</ul>
</li>
2017-06-15 10:41:44 +02:00
{{ end }}
</ul>
{{ end }}
</nav>
</div>
</header>
<div class="main-and-footer">
<div>
{{ block "main" . }}
{{ end }}
<footer role="contentinfo">
By Heydon Pickering
</footer>
</div>
</div>
</div>
2017-06-19 11:40:21 +02:00
{{ if eq .Type "patterns" }}
<script src="/js/prism.js"></script>
<script src="/js/shadyDOM.min.js"></script>
{{ end }}
2017-06-15 10:41:44 +02:00
<script src="/js/dom-scripts.js"></script>
</body>
</html>