summaryrefslogtreecommitdiff
path: root/bin/page.html.erb
blob: 354b123e3acf32ea7e3d307f2d32c2244319fffc (plain)
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
<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="utf-8">
  <title><%= @page.title %><% unless @page.title.empty? %> — <% end %>AndrewDM</title>
  <link rel="stylesheet" href="/main.css">
  <link rel="alternate" type="application/atom+xml" href="./index.atom" name="web log entries"/>
  <%= @page.head %>
 </head>
 <body<% if @page.class %> class="<%= @page.class %>"<% end %>>
  <header>
   <p class=breadcrumbs><%= @page.breadcrumbs %></p>
   <h1>AndrewDM</h1>
   <nav>
    <ul>
     <li><a href="/">Projects</a>
     <li><a href="/blahg/CHANGELOG.html"><abbr title="Blog">Blahg</abbr></a>
     <li><a href="/Andrew.html">Andrew</a>
     <li>
      <form method="GET" action="/search.html">
       <input type=search name="s" placeholder="Search" /><input type=submit value="🔍" />
      </form>
    </ul>
   </nav>
  </header>
  <article>
   <% if @page.tags.count > 0 %><p>Tags: <% @page.tags.each do |t| %><%= t.html %><% end %></p><% end %>
   <% if @page.showtitle %><h1 class=title><%= @page.title %></h1><% end %>
   <%= @page.content %>
  </article>
  <footer>
   <%= @page.rights %>
   <p>Page source: <a href="<%= File.basename(@page.src) %>"><%= File.basename(@page.src) %></a></p>
   <p>Website source: <a href="https://git.andrewdm.me/www.git">www.git</a></p>
  </footer>
 </body>
</html>