summaryrefslogtreecommitdiff
path: root/tmpl/page.html.erb
blob: 883ce9eaac1670482315b4d1c8f41529c7c93fab (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
<% require 'siteutil' %><!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="utf-8">
  <title><%= atom_title %> — AndrewDM</title>
  <link rel="stylesheet" href="/main.css">
  <link rel="alternate" type="application/atom+xml" href="/index.atom" />
  <%= html_head_extra %>
 </head>
 <body class="<%= html_class %>">
  <header>
   <h1 class=breadcrumbs><%= Sitegen::breadcrumbs(url) %></h1>
   <nav>
    <ul>
     <li><a href="/">Projects</a>
     <li><a href="/changelog.html"><abbr title="Blog">Blahg</abbr></a>
     <li><a href="/about.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 atom_categories.count > 0 %><p>Tags: <% atom_categories.each do |t| %><%= t.html %><% end %></p><% end %>
   <%= atom_content %>
  </article>
  <footer>
   <%= atom_rights %>
   <% if local_srcurl %><p>Page source: <a href="<%= url.route_to(local_srcurl) %>"><%= File.basename(local_srcurl.to_s) %></a></p><% end %>
   <p>Website source: <a href="https://git.andrewdm.me/www.git">www.git</a></p>
  </footer>
 </body>
</html>