-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.twig
144 lines (118 loc) · 6.1 KB
/
default.twig
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title }}</title>
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Merriweather:400,900,700,300|Open+Sans:400,800,700' type='text/css'>
<link rel="stylesheet" href="{{ baseUrl }}/css/bootstrap.min.css">
<link rel="stylesheet" href="{{ baseUrl }}/css/font-awesome.min.css">
<link rel="stylesheet" href="{{ baseUrl }}/css/github.css?generatedAt={{ date().format('U') }}">
<link rel="stylesheet" href="{{ baseUrl }}/css/main.css?generatedAt={{ date().format('U') }}">
</head>
<body>
<header class="site-header">
<div class="site-branding container-fluid">
<h1 class="site-name">
<a href="{{ baseUrl }}/" >
<img src="{{ baseUrl }}/img/inviqa-logo.png" width="100" height="100" alt="Inviqa" />
Engineering Progression Framework
</a>
</h1>
<h2 class="site-description">Ladders, Skills & Promotion</h2>
</div>
<div class="text-left visible-xs-block" style="margin-left: 15px;">
<a href="#sidebar" data-toggle="collapse"><i class="fa fa-3x fa-bars" aria-hidden="true"></i></a>
</div>
</header>
<main class="container-fluid">
<div class="row">
<nav id="sidebar" class="col-sm-3 collapse in" role="navigation">
{% for topLevelFolder in ['guides','career-ladder'] %}
{% if pageTree[topLevelFolder] is defined %}
<h3 class="nav-group">{{ topLevelFolder|replace("-", " ")|upper }}</h3>
{% for fileName in pageTree[topLevelFolder] %}
<ul class="nav nav-pills nav-stacked">
<li class="nav-item">
<a class="small nav-link{{ 1 == 0 ? ' active' }}" href="{{ baseUrl ~ '/' ~ topLevelFolder ~ '/' ~ fileName }}">
{% set fileComponents = fileName|split('.') %}
{{ fileComponents[0]|replace("-", " ")|upper }}
</a>
</li>
</ul>
{% endfor %}
{% endif %}
{% endfor %}
{% set topLevelFolder = 'skills' %}
{% if pageTree[topLevelFolder] is defined %}
<h3 class="nav-group">{{ topLevelFolder|replace("-", " ")|upper }}</h3>
{% for categoryName, categoryFolder in pageTree[topLevelFolder] %}
<ul class="nav nav-pills nav-stacked">
<li class="nav-item">
{{ categoryName|replace("-", " ")|upper }}
</li>
{% for skillFile in categoryFolder %}
<li class="nav-item {% if loop.last %}last{% endif %}">
<a class="small nav-link{{ 1 == 0 ? ' active' }}" href="{{ baseUrl ~ '/' ~ topLevelFolder ~ '/' ~ categoryName ~ '/' ~ skillFile }}">
{% set fileComponents = skillFile|split('.') %}
{{ fileComponents[0]|replace("-", " ")|upper }}
</a>
</li>
{% endfor %}
</ul>
{% endfor %}
{% endif %}
</nav>
<section class="col-sm-9 content">
{{ content|raw }}
</section>
</div>
</main>
<footer class="site-footer">
<div class="top-bar-line"></div>
<div class="bottom-panel">
<div class="text-center">
<span>
{% if footerText is defined %}
{{ footerText }}
{% endif %}
</span>
</div><!-- text-center -->
</div><!-- bottom-panel -->
</footer>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="{{ baseUrl }}/js/highlight.pack.js"></script>
<script>
hljs.initHighlighting();
function checkWidth($highlight) {
if ($(window).width() < 768) {
$highlight.addClass('collapse');
} else {
$highlight.removeClass('collapse');
}
}
$(document).ready(function () {
var $highlights = $('.hljs');
$highlights.each(function (index) {
var $this = $(this).parent();
var elementId = 'hljs' + index;
$this.attr('id', elementId);
$this.before('<a class="visible-xs-inline visible-sm-inline" href="#' + elementId + '" data-toggle="collapse"><i class="fa fa-expand"></i> Toggle source code ...</a>');
checkWidth($this);
$(window).resize(function () {
checkWidth($this);
});
});
});
{% if googleAnalyticsCode is defined %}
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '{{ googleAnalyticsCode }}', 'auto');
ga('send', 'pageview');
{% endif %}
</script>
</body>
</html>