-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsingle.html
More file actions
61 lines (58 loc) · 1.94 KB
/
Copy pathsingle.html
File metadata and controls
61 lines (58 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{{ define "pageScripts" }}
{{ $style := resources.Get "/sass/guides.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
<script src="/js/highlight.min.js"></script>
<meta data-pagefind-filter="type[content]" content="Guide">
{{ end }}
{{ define "main" }}
<main>
<article data-pagefind-body>
<header class="guide-header">
<div class="container">
<aside>
<a href="/guides" class="back-link">
<svg class="icon-caret" height="10" viewBox="0 0 10 10">
<use href="#icon-caret"></use>
</svg>
Guides
</a>
</aside>
<div class="content">
<h1>
{{ .Title }}
</h1>
{{ if or (.GetTerms "languages") (.GetTerms "tags") }}
<ul class="tag-list">
{{ range (.GetTerms "languages") }}
<li class="tag language">{{ .Title }}</li>
{{ end }}
{{ range (.GetTerms "tags") }}
<li class="tag">{{ .Title }}</li>
{{ end }}
</ul>
{{ end }}
</div>
{{ if .Params.Repo }}
<a class="github-link" href="{{ .Params.Repo }}" target="_blank">
{{ partial "svgs/github" }}
Get the code
<svg class="icon-external" width="15" height="17" viewBox="0 0 15 17">
<use href="#icon-external"></use>
</svg>
</a>
{{ end }}
</div>
</header>
<div class="guide-content longform-content">
<div class="container">
<aside class="toc" data-pagefind-ignore>
{{ .TableOfContents }}
</aside>
<div class="content">
{{ partial "heading-link.html" .Content }}
</div>
</div>
</div>
</article>
</main>
{{ end }}