htmx/www/_includes/layout.njk
2022-09-30 12:47:31 -06:00

127 lines
4.7 KiB
Plaintext

<html lang="en">
<head>
<title>{{ title | default("</> htmx - high power tools for html") }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="alternate" type="application/atom+xml" title="Sitewide Atom feed"
href="/feed.xml">
<link rel="stylesheet" href="/css/site.css"/>
<link rel="stylesheet" href="/css/prism-htmx.css"/>
<script src="https://unpkg.com/prismjs@1.20.0/components/prism-core.min.js"></script>
<script src="https://unpkg.com/prismjs@1.20.0/plugins/autoloader/prism-autoloader.min.js"></script>
<script src="/js/htmx.js"></script>
<script src="/js/class-tools.js"></script>
<script src="/js/preload.js"></script>
<script src="/js/_hyperscript.js"></script>
<script>
htmx.onLoad(function(){
Prism.highlightAll();
})
</script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
</head>
<body hx-ext="class-tools, preload">
<div class="top-nav">
<div class="c">
<div class="menu">
<div class="logo-wrapper">
<a href="/" class="logo light">&lt;<b>/</b>&gt; htm<b>x</b></a>
<svg _="on click toggle .show on #nav" class="hamburger" viewBox="0 0 100 80" width="25" height="25" style="margin-bottom:-5px">
<rect width="100" height="20" style="fill:rgb(52, 101, 164)" rx="10"></rect>
<rect y="30" width="100" height="20" style="fill:rgb(52, 101, 164)" rx="10"></rect>
<rect y="60" width="100" height="20" style="fill:rgb(52, 101, 164)" rx="10"></rect>
</svg>
</div>
{% if page.url.indexOf("/examples/") == 0 %}
<div id="nav" class="navigation"> <!-- don't boost on demo pages, sinon hijacks everything :/ -->
{% else %}
<div id="nav" class="navigation" hx-boost="true">
{% endif %}
<div class="navigation-items" preload="mouseover">
<div>
<a href="/docs/">docs</a>
</div>
<div>
<a href="/reference/">reference</a>
</div>
<div>
<a href="/examples/">examples</a>
</div>
<div>
<a href="/talk/">talk</a>
</div>
<div>
<a href="/essays/">essays</a>
</div>
<div>
<input _="on keyup[key is 'Escape'] or click elsewhere
blur() then set my.value to ''
on keyup[key is '/'] from <body/>
focus()"
placeholder="&#128269;" type="text" id="search"/>
</div>
</div>
<div class="github-stars">
<iframe style="margin:auto;" src="https://ghbtns.com/github-btn.html?user=bigskysoftware&repo=htmx&type=star&count=true" frameborder="0" scrolling="0" width="150" height="20" title="Star htmx on GitHub"></iframe>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="c content {{ customClasses | default("") }}">
{{ content | safe }}
</div>
<footer>
<div class="c content {{ customClasses | default("") }}">
<div class="row">
<div class="6 col footer-haiku">
<h2>haiku</h2>
<p><em>
javascript fatigue:<br>
longing for a hypertext<br>
already in hand
</em></p>
</div>
<div class="6 col footer-menu">
<div>
<a href="/docs/">docs</a>
</div>
<div>
<a href="/reference/">reference</a>
</div>
<div>
<a href="/examples/">examples</a>
</div>
<div>
<a href="/talk/">talk</a>
</div>
<div>
<a href="/essays/">essays</a>
</div>
</div>
</div>
<div class="row" style="text-align: center;">
<div class="col">
<img src="/img/bss_bars.png" style="max-width: 30px; margin-top: 3em;">
</div>
</div>
</div>
</div>
</footer>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script type="text/javascript"> docsearch({
apiKey: '47070108e6ce8dfee6beee94b83bee7d',
indexName: 'htmx',
inputSelector: '#search',
debug: false // Set debug to true if you want to inspect the dropdown
});
</script>
</body>
</html>