]> git.draconx.ca Git - homepage.git/blobdiff - layouts/default.xml
Put some actual material on the site.
[homepage.git] / layouts / default.xml
index b432c54202f5feb1e76d808ff8d7b87bc5ab61c8..74c454a42d679b59dd8ea7da5909114204bdc91c 100644 (file)
 %>  <copyright><%= copyright %></copyright>
 <% end
   if @item[:license] then
-    lic = find_license(@item[:license])
+    licref = @item[:license].split
+    lic = find_license(licref[0])
 %>  <license>
     <identifier><%= File::basename(lic.identifier.without_ext) %></identifier>
-    <name><%= lic[:title] %></name>
+    <name><%= [lic[:title], licref[1..-1]].compact.join(" ").strip %></name>
     <uri><%= item_uri(lic) %></uri>
     <modification-allowed><%=
       lic[:"modification-allowed"] == true ? "yes" : "no"
       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 %>
+    <parent>
+      <name><%=
+        if i == @items["/index.*"] then
+          "Entrance"
+        else
+          i[:title]
+        end
+      %></name>
+      <uri><%= item_uri(i) %></uri>
+    </parent><% end %>
+  </hierarchy>
   <html xmlns="<%= Xmlns['xhtml'] %>">
 <% if !doc_header then
 %>    <h1><%= @item.fetch(:header, @item[:title]) %></h1>