forked from wearecube/hologram-github-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_header.html
56 lines (49 loc) · 1.9 KB
/
_header.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title><%= title %> <% if title != '' %>–<% end %> <%= @config['global_title'] %></title>
<!-- Styleguide CSS -->
<link rel="stylesheet" href="<%= @config['base_url'] %>styles/hgt-syntax.css">
<link rel="stylesheet" href="<%= @config['base_url'] %>styles/hgt.css">
<!-- Source CSS -->
<% if @config['css_include'].to_s.strip.length != 0 %>
<% @config['css_include'].each do |css| %>
<link rel="stylesheet" href="<%= css %>">
<% end %>
<% end %>
</head>
<body class="hgt-body">
<div class="hgt-pagehead">
<div class="hgt-container">
<nav class="hgt-pagehead-nav" role="navigation">
<a href="<%= @config['base_url'] %>index.html"
class="hgt-pagehead-nav-item <% if file_name.include?('index.html') %>selected<% end %>">
Home
</a>
<% @categories.each do |cat| %>
<a href="<%= @config['base_url'] %><%= cat[1] %>"
class="hgt-pagehead-nav-item <% if title == cat[0] %>selected<% end %>">
<%= cat[0] %>
</a>
<% end %>
</nav>
<h1 class="hgt-pagehead-title"><%= @config['global_title'] %></h1>
</div>
</div>
<div class="hgt-styleguide hgt-container">
<div class="hgt-columns">
<% unless @blocks.length == 0 %>
<div class="hgt-column one-fourth">
<nav class="hgt-menu">
<% @blocks.each do |block| %>
<% if not block[:parent] %>
<a href="#<%= block[:name] %>" class="hgt-menu-item"><%= block[:title] %></a>
<% end %>
<% end %>
</nav>
</div>
<% end %>
<div class="hgt-column <% unless @blocks.length == 0 %>three-fourths<% end %>">
<div class="hgt-content">