1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <!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>
- {{ partial "svg.html" . }}
- <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>
- {{ 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 }}
- {{ range .Sections }}
- <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>
- {{ 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>
- {{ if eq .Type "patterns" }}
- <script src="/js/prism.js"></script>
- {{ end }}
- <script src="/js/dom-scripts.js"></script>
- </body>
- </html>
|