]> git.draconx.ca Git - homepage.git/blobdiff - layouts/default.xml
Let's start a blog!
[homepage.git] / layouts / default.xml
index 74c454a42d679b59dd8ea7da5909114204bdc91c..6ae8b307a20599f98db9b3b2491c345d7cc17f36 100644 (file)
@@ -2,7 +2,7 @@
 <!--
   Nick's web site: Intermediate document structure.
 
-  Copyright © 2016-2018 Nick Bowler
+  Copyright © 2016-2020 Nick Bowler
 
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
       Time.now.gmtime.strftime "%Y-%m-%d %H:%M UTC"
     %></compiletime>
   </source>
-  <hierarchy><% breadcrumbs_trail().compact.each do |i|
-    if i == @item then next end %>
+  <hierarchy><% breadcrumbs_trail().compact.each do |item|
+    next if item == @item || item[:"breadcrumb-ignore"] %>
     <parent>
       <name><%=
-        if i == @items["/index.*"] then
+        if item == @items["/index.*"] then
           "Entrance"
         else
-          i[:title]
+          item[:title]
         end
       %></name>
-      <uri><%= item_uri(i) %></uri>
+      <uri><%= item_uri(item) %></uri>
     </parent><% end %>
   </hierarchy>
-  <html xmlns="<%= Xmlns['xhtml'] %>">
+<% if @item[:kind] == "article" then
+%>  <article>
+<%= attribute_to_time(@item[:published]).strftime \
+"    <published>%Y-%m-%d</published>\n" if @item[:published]
+%>  </article>
+<% end
+%>  <html xmlns="<%= Xmlns['xhtml'] %>">
 <% if !doc_header then
 %>    <h1><%= @item.fetch(:header, @item[:title]) %></h1>
 <% end %><%= doc_str