zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

head_template.eex (1963B)


      1 <!DOCTYPE html>
      2 <html lang="<%= config.language %>">
      3   <head>
      4     <meta charset="utf-8">
      5     <meta http-equiv="x-ua-compatible" content="ie=edge">
      6     <meta name="viewport" content="width=device-width, initial-scale=1.0">
      7     <meta name="generator" content="ExDoc v<%= ExDoc.version() %>">
      8     <meta name="project" content="<%= config.project %> v<%= config.version%>">
      9     <%= if config.authors do %>
     10       <meta name="author" content="<%= Enum.join(config.authors, ", ") %>">
     11     <% end %>
     12     <title><%= page.title %> — <%= config.project %> v<%= config.version %></title>
     13     <link rel="stylesheet" href="<%= asset_rev config.output, "dist/html-#{config.proglang}*.css" %>" />
     14     <%= if config.canonical do %>
     15       <link rel="canonical" href="<%= config.canonical %>" />
     16     <% end %>
     17     <script src="<%= asset_rev config.output, "dist/handlebars.runtime-*.js" %>"></script>
     18     <script src="<%= asset_rev config.output, "dist/handlebars.templates-*.js" %>"></script>
     19     <script src="<%= asset_rev config.output, "dist/sidebar_items-*.js" %>"></script>
     20     <%= if config.javascript_config_path do %>
     21       <script src="<%= config.javascript_config_path %>"></script>
     22     <% end %>
     23     <script async src="<%= asset_rev config.output, "dist/html-*.js" %>"></script>
     24     <%# Extra content specified by the user (e.g. custom CSS) %>
     25     <%= config.before_closing_head_tag.(:html) %>
     26   </head>
     27   <body data-type="<%= sidebar_type(page.type) %>" class="page-<%= page.type %>">
     28     <script>
     29       <%# Immediately apply night mode preference to avoid a flash effect %>
     30       try {
     31         var settings = JSON.parse(localStorage.getItem('ex_doc:settings') || '{}');
     32 
     33         if (settings.theme === 'dark' ||
     34            ((settings.theme === 'system' || settings.theme == null) &&
     35              window.matchMedia('(prefers-color-scheme: dark)').matches)
     36            ) {
     37           document.body.classList.add('dark')
     38         }
     39       } catch (error) { }
     40     </script>