Newer
Older
{{ $segments := split .RelPermalink "/" }}
{{ $subsection := index $segments 2 }}
<h3>
{{ if eq $subsection "devguide"}}Developer Guide{{ end }}
{{ if eq $subsection "benchmarks"}}Benchmarks{{ end }}
</h3>
<hr>
<ul class="sidenav">
{{ $currentPage := . }}
{{ $currentMenu := index .Site.Menus $subsection }}
{{ range $currentMenu }}
{{ if .HasChildren }}
<li class="category">{{ .Name }}</li>
{{ range .Children }}
<li><a href="{{ .URL }}"{{if $currentPage.IsMenuCurrent $subsection . }} class="active"{{end}}>{{ .Name }}</a></li>
{{ end }}
{{ end }}
{{ end }}
</div>
<div class="col-xs-9">
<h1>{{ .Title }}</h1>
{{ if eq $subsection "devguide"}}
Select OS: <a id="btn-win">Windows</a> <a id="btn-linux">Linux</a> <a id="btn-mac">macOS</a>
{{ end }}
{{ partial "footer-nav.html" . }}
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{{ define "footer" }}
{{ $segments := split .RelPermalink "/" }}
{{ $subsection := index $segments 2 }}
{{ if eq $subsection "devguide"}}
<script>
$("#btn-win").click(function(){
$(".win").show();
$(".linux").hide();
$(".mac").hide();
$("#btn-win").addClass("active");
$("#btn-linux").removeClass("active");
$("#btn-mac").removeClass("active");
});
$("#btn-linux").click(function(){
$(".win").hide();
$(".linux").show();
$(".mac").hide();
$("#btn-win").removeClass("active");
$("#btn-linux").addClass("active");
$("#btn-mac").removeClass("active");
});
$("#btn-mac").click(function(){
$(".win").hide();
$(".linux").hide();
$(".mac").show();
$("#btn-win").removeClass("active");
$("#btn-linux").removeClass("active");
$("#btn-mac").addClass("active");
});
$( document ).ready(function() {
$("#btn-win").click();
});
</script>
{{ end }}
{{ end }}