-
Notifications
You must be signed in to change notification settings - Fork 1
/
header
29 lines (26 loc) · 867 Bytes
/
header
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
<head>
<meta charset='utf-8' />
<meta http-equiv='X-UA-Compatible' content='IE=edge' />
<meta name='viewport' content='width=device-width, initial-scale=1' />
<% case @gen.framework %>
<% when 'sinatra' %>
<%%= erb :'includes/ie-cruft' %>
<%%= erb :'includes/js-libs' %>
<%%= erb :'includes/css-libs' %>
<%%= erb :'includes/fonts-libs' %>
<% when 'jekyll' %>
{% include ie-cruft.html %}
{% include libs.html %}<% end %>
<% prefix = '{{ site.baseurl }}' if @gen.framework == 'jekyll' %>
<link rel='icon' type='image/png' href='<%= prefix %>/assets/favicon.ico' />
<link rel='stylesheet' href='<%= prefix %>/css/styles.css' />
<script src='<%= prefix %>/js/<%= @gen.wormname %>.js'></script>
<title>
<% case @gen.framework %>
<% when 'sinatra' %>
<%%= @title %>
<% when 'jekyll' %>
{{ page.title }}
<% end %>
</title>
</head>