nim-by-example/layouts/default.html
Flaviu Tamas a440c07e35 Inline CSS
this gets google to stfu about performance issues
2015-05-31 18:20:55 -04:00

55 lines
1.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">
<head>
<meta charset="utf-8">
<% if @config[:debug] %>
<% for file in @config[:stylesheets] %>
<link rel="stylesheet" type="text/css" href="/assets/css/<%= File.basename(file, ".*") %>.css">
<% end %>
<% for file in @config[:scripts] %>
<script async src="/assets/js/<%= file %>"></script>
<% end %>
<% else %>
<style>
<%= @items["/assets/css/all/"].compiled_content() %>
</style>
<script async src="/assets/js/all.js"></script>
<% end %>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-58002512-1', 'auto');
</script>
<title>Nim by Example - <%= @item[:title] %></title>
<meta name="generator" content="nanoc <%= Nanoc::VERSION %>">
<meta http-equiv="Default-Style" content="colorful">
<meta name=viewport content="width=device-width, initial-scale=1">
</head>
<body>
<div id="sidebar">
<div class="abs-hamburger"><div class="nav-toggle" onclick="javascript:sidebarClick();"><span></span></div></div>
<nav>
<%= @items["/content/toc/"].compiled_content(snapshot: :last) %>
</nav>
</div>
<article>
<%= yield %>
</article>
<div id=nextprev>
<a id=arrow-prev class="text-icon disabled" href="https://please-enable-js/">↽</a>
<a id=arrow-next class="text-icon disabled" href="https://please-enable-js/">⇁</a>
</div>
<footer>
<%= @items["/content/footer/"].compiled_content(snapshot: :last) %>
</footer>
</body>
</html>