-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathtemplate.html.erb
43 lines (43 loc) · 1.43 KB
/
template.html.erb
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
<title>Swift by example <%= name.empty? ? '' : "- #{name}" %></title>
<link href='http://fonts.googleapis.com/css?family=Fira+Sans' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="<%= path %>site.css"></link>
<link rel="stylesheet" href="<%= path %>prism.css"></link>
<link rel="shortcut icon" href="<%= path %>favicon.ico">
</head>
<body>
<div id="container">
<h1>
<a href='#'>Swift by example</a>
<% if name %>
<span class="topic"><%= name %></span>
<% end %>
</h1>
<main>
<table>
<tbody>
<%= content %>
</tbody>
</table>
<nav>
<% if prev %>
<a href="../<%= prev[:slug] %>" class="prev" rel="prev"><%= prev[:title] %></a>
<% end %>
<% if nxt %>
<a href="../<%= nxt[:slug] %>" class="next" rel="next"><%= nxt[:title] %></a>
<% end %>
</nav>
</main>
<footer>
by <a href="https://twitter.com/BrettBukowski">@BrettBukowski</a>
<a href="https://github.com/BrettBukowski/SwiftExamples">source</a>
</footer>
</div>
<script async src="<%= path %>site.js"></script>
<script src="<%= path %>prism.js"></script>
</body>
</html>