diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-09 15:53:51 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-09 15:53:51 -0500 |
commit | 39a34b63b0615002172e7db314e2caf663404e09 (patch) | |
tree | ad90bd60ee6fddaffccab3091de086bcfe98d28a /tmpl | |
parent | f851b5e00df7a5cc07335def23891e3a7c99c7bf (diff) |
fixfixfix
Diffstat (limited to 'tmpl')
-rw-r--r-- | tmpl/page.html.erb | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/tmpl/page.html.erb b/tmpl/page.html.erb index e2dc9fe..dae08eb 100644 --- a/tmpl/page.html.erb +++ b/tmpl/page.html.erb @@ -1,15 +1,15 @@ -<!DOCTYPE html> +<% require 'siteutil' %><!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> - <title><%= @page.title %><% unless @page.title.empty? %> — <% end %>AndrewDM</title> + <title><%= atom_title %> — AndrewDM</title> <link rel="stylesheet" href="/main.css"> <link rel="alternate" type="application/atom+xml" href="/index.atom" /> - <%= @page.head %> + <%= html_head_extra %> </head> - <body<% if @page.class %> class="<%= @page.class %>"<% end %>> + <body class="<%= html_class %>"> <header> - <h1>AndrewDM</h1> + <h1 class=breadcrumbs><%= SiteUtil::breadcrumbs(url) %></h1> <nav> <ul> <li><a href="/">Projects</a> @@ -21,16 +21,15 @@ </form> </ul> </nav> - <p class=breadcrumbs><%= @page.breadcrumbs %></p> + <p </p> </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 %> + <% if atom_categories.count > 0 %><p>Tags: <% atom_categories.each do |t| %><%= t.html %><% end %></p><% end %> + <%= atom_content %> </article> <footer> - <%= @page.rights %> - <p>Page source: <a href="<%= @url.route_to(@page.srcurl) %>"><%= File.basename(@page.srcurl.to_s) %></a></p> + <%= atom_rights %> + <p>Page source: <a href="<%= url.route_to(local_srcurl) %>"><%= File.basename(local_srcurl.to_s) %></a></p> <p>Website source: <a href="https://git.andrewdm.me/www.git">www.git</a></p> </footer> </body> |