]> git.draconx.ca Git - homepage.git/blobdiff - layouts/default.xml
Automatically adjust colour scheme for "dark mode".
[homepage.git] / layouts / default.xml
index 2e003aefeb975fd077edf9e3b8848782b06c07a8..11aeec1e955d0a273d856a37d8d45b67b03eb48f 100644 (file)
@@ -2,7 +2,7 @@
 <!--
   Nick's web site: Intermediate document structure.
 
-  Copyright © 2016-2020 Nick Bowler
+  Copyright © 2016-2022 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
@@ -66,7 +66,9 @@ end %>
 "    <published>%Y-%m-%d</published>\n" if @item[:published]
 %>  </article>
 <% end
-%>  <html xmlns="<%= Xmlns['xhtml'] %>">
+%>  <html xmlns="<%= Xmlns['xhtml'] %>" id="<%=
+  "page" + @item.identifier.without_ext.gsub(/[^[:alnum:]]/, "_")
+%>">
 <% if !doc_header then
 %>    <h1><%= @item.fetch(:header, @item[:title]) %></h1>
 <% end %><%= doc_str