1+ <!DOCTYPE html>
2+ < html lang ="en " class ="h-100 ">
3+ < head >
4+ < meta charset ="utf-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6+ < title > {% if title %}{{ title }} - {% endif %}{{ project.title }}</ title >
7+ < meta name ="description " content ="react-json-form docs, live demos and playground ">
8+ < link rel ="icon " type ="image/x-icon " href ="{{ '/favicon.ico' | url }} ">
9+ < link rel ="apple-touch-icon " href ="{{ '/apple-touch-icon.png' | url }} " sizes ="180x180 ">
10+ < link rel ="stylesheet " type ="text/css " href ="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/4.6.2/css/bootstrap.min.css ">
11+ < link rel ="stylesheet " type ="text/css " href ="{{ '/static/css/docs.css' | url }} ">
12+ {% if project.node_env == 'production' %}
13+ < link rel ="preconnect " href ="https://fonts.googleapis.com ">
14+ < link rel ="preconnect " href ="https://fonts.gstatic.com " crossorigin >
15+ < link href ="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap " rel ="stylesheet ">
16+ {% endif %}
17+ </ head >
18+
19+ < body class ="d-flex flex-column h-100 ">
20+ < div class ="flex-grow-1 flex-shrink-0 ">
21+ < div class ="top-nav ">
22+ < div class ="container-xl ">
23+ < div class ="row ">
24+ < div class ="col-12 col-sm-3 ">
25+ < a href ="{{ '/' | url }} " class ="d-inline-block ">
26+ < img src ="{{ '/static/img/logo.svg' | url }} " alt ="{{ project.title }} " class ="logo ">
27+ </ a >
28+ < button id ="topNavToggler " class ="hamburger d-sm-none float-right " type ="button ">
29+ < span class ="hamburger-box ">
30+ < span class ="hamburger-inner "> </ span >
31+ </ span >
32+ </ button >
33+ </ div >
34+ < div class ="col-12 col-sm-9 d-none d-sm-block top-nav-menu " id ="topNavMenu ">
35+ < nav class ="nav nav-pills justify-content-end ">
36+ {%- for item in project.topNav %}
37+ < a href ="{{ item.url | url }} " class ="nav-link{% if item | navLinkIsActive: page.url %} active{% endif %}{% if item.className %} {{ item.className }}{% endif %} ">
38+ {% if item.icon -%}
39+ {% assign iconPath = 'icons/' | append: item.icon | append: '.svg' %}
40+ {%- include iconPath %}
41+ {% endif %}{{ item.title }}
42+ </ a >
43+ {%- endfor %}
44+ </ nav >
45+ </ div >
46+ </ div >
47+ </ div >
48+ </ div >
49+
50+ < div class ="page-heading text-center ">
51+ < h1 > {{ title | upcase }}</ h1 >
52+ </ div >
53+
54+ < div class ="container-xl ">
55+ {{ content }}
56+ </ div >
57+ </ div >
58+
59+ < div class ="flex-grow-0 flex-shrink-1 " style ="margin-top: 200px; ">
60+ < div class ="footer ">
61+ < div class ="container-xl ">
62+ < div class ="row ">
63+ < div class ="col-4 ">
64+ < img src ="{{ '/static/img/logo.svg' | url }} " alt ="{{ project.title }} " class ="logo ">
65+ </ div >
66+ < div class ="col-8 text-right pt-3 footer-nav ">
67+ {% for item in project.footerNav %}
68+ < a href ="{{ item.url | url }} ">
69+ {% if item.icon -%}
70+ {% assign iconPath = 'icons/' | append: item.icon | append: '.svg' %}
71+ {%- include iconPath %}
72+ {% endif %}{{ item.title }}
73+ </ a >
74+ {% endfor %}
75+ </ div >
76+ </ div >
77+ </ div >
78+ </ div >
79+ </ div >
80+
81+ < script type ="text/javascript ">
82+ var topNavToggler = document . getElementById ( 'topNavToggler' ) ;
83+ var topNavMenu = document . getElementById ( 'topNavMenu' ) ;
84+ topNavToggler . addEventListener ( 'click' , function ( e ) {
85+ if ( this . classList . contains ( 'active' ) ) {
86+ this . classList . remove ( 'active' ) ;
87+ topNavMenu . classList . add ( 'd-none' ) ;
88+ } else {
89+ this . classList . add ( 'active' ) ;
90+ topNavMenu . classList . remove ( 'd-none' ) ;
91+ }
92+
93+ } ) ;
94+ </ script >
95+
96+ {% for link in scripts -%}
97+ < script type ="text/javascript " src ="{{ link | url }} "> </ script >
98+ {% endfor -%}
99+
100+ </ body >
101+ </ html >
0 commit comments