-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathbase.html
105 lines (100 loc) · 4.86 KB
/
base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext
htmx is small (~14k min.gz’d), dependency-free, extendable, IE11 compatible & has reduced code base sizes by 67% when compared with react">
{# This block should set html_title appropriately -#}
{% block title %} {% endblock title -%}
<title>{{ html_title | default(value=config.title) | safe }}</title>
<link rel="canonical" href="{{ current_url | safe }}">
{#TODO: only generate this for the home page #}
<link rel="alternate" type="application/atom+xml" title="Sitewide Atom feed" href="/atom.xml">
<link rel="stylesheet" href="/css/site.css">
<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>
<meta name="generator" content="Zola v.TODO">
</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"><<b>/</b>> 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 and page.path is starting_with("/examples") %}
<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 hx-disable>
<form action="https://google.com/search">
<input type="hidden" name="q" value="site:htmx.org">
<label>
<span style="display:none;">Search</span>
<input type="text" name="q" placeholder="🔍️" class="search-box">
</label>
</form>
</div>
<div>
<div class="github-stars" hx-preserve="true" id="github-stars">
<a class="github-button" href="https://github.com/bigskysoftware/htmx" data-color-scheme="no-preference: light; light: light; dark: dark;" data-icon="octicon-star" data-show-count="true" aria-label="Star bigskysoftware/htmx on GitHub">Star</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% if page and page.extra and page.extra.custom_classes %}
{% set disp_classes = page.extra.custom_classes %}
{% else %}
{% set disp_classes = "" %}
{% endif %}
<div class="c content {{ disp_classes }}">
{% block content %} {% endblock content -%}
</div>
<footer>
<div class="c content {{ disp_classes }}">
<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><a href="https://twitter.com/htmx_org">@htmx_org</a></div>
</div>
</div>
<div class="row" style="text-align: center;">
<div class="col">
<img src="/img/bss_bars.png" alt="" style="max-width: 30px; margin-top: 3em;">
</div>
</div>
</div>
</footer>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>