forked from CouscousPHP/Template-Light
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.twig
More file actions
73 lines (56 loc) · 2.53 KB
/
default.twig
File metadata and controls
73 lines (56 loc) · 2.53 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
62
63
64
65
66
67
68
69
70
71
72
73
<!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="{{ baseUrl }}/css/bootstrap.min.css">
<link rel="stylesheet" href="{{ baseUrl }}/css/font-awesome.min.css">
<link rel="stylesheet" href="{{ baseUrl }}/css/highlight.dark.css">
<link rel="stylesheet" href="{{ baseUrl }}/css/main.css">
</head>
<body>
<header class="navbar navbar-default navbar-fixed-top">
<a class="navbar-brand" href="{{ baseUrl }}/">
{{ title|default('The title') }}
</a>
</header>
<main class="{{ menu ? 'container-fluid' : 'container' }}">
<div class="row">
{% if menu is defined %}
<nav id="sidebar" class="col-sm-3 col-lg-2" role="navigation">
<ul class="nav nav-pills nav-stacked">
{% for itemId, item in menu.items %}
<li class="{{ itemId == currentMenu ? 'active' }}">
<a href="{{ item.absoluteUrl|default(baseUrl ~ '/' ~ item.relativeUrl) item.attributes }}" >
{{ item.text|raw }}
</a>
</li>
{% endfor %}
</ul>
</nav>
{% endif %}
<section id="content" class="{{ menu ? 'col-sm-offset-3 col-lg-offset-2 col-sm-9 col-lg-10' : 'col-sm-12' }}">
{{ content|raw }}
</section>
</div>
</main>
<footer>
<div class="{{ menu ? 'container-fluid' : 'container' }}">
<p class="text-muted">
website generated with <a href="http://couscous.io" title="Markdown website generator">Couscous</a>
</p>
</div>
</footer>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="//yastatic.net/highlightjs/8.2/highlight.min.js"></script>
<script>
$(function() {
$("section>h1").wrap('<div class="page-header" />');
// Syntax highlighting
hljs.initHighlightingOnLoad();
});
</script>
</body>
</html>