|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="{{site.language}}"> |
3 | 3 | <head> |
4 | | - {% include 'partials/head.njk' %} |
| 4 | + <title>{% if page.title %}{{page.title}} - {% endif %}{{site.title}}</title> |
| 5 | + <meta charset="utf-8"> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 7 | + <base href="{{site.baseHref}}"> |
5 | 8 |
|
6 | | - {% block head %} |
7 | | - {# custom stuff goes here #} |
8 | | - {% endblock %} |
| 9 | + <link rel="shortcut icon" href="images/favicon.png"> |
| 10 | + |
| 11 | + {# Font Awesome Brand Icons #} |
| 12 | + <link |
| 13 | + crossorigin="anonymous" |
| 14 | + href="https://use.fontawesome.com/releases/v5.2.0/css/brands.css" |
| 15 | + integrity="sha384-nT8r1Kzllf71iZl81CdFzObMsaLOhqBU1JD2+XoAALbdtWaXDOlWOZTR4v1ktjPE" |
| 16 | + rel="stylesheet" |
| 17 | + /> |
| 18 | + {# Font Awesome Core Styles (required for Brand icons) #} |
| 19 | + <link |
| 20 | + crossorigin="anonymous" |
| 21 | + href="https://use.fontawesome.com/releases/v5.2.0/css/fontawesome.css" |
| 22 | + integrity="sha384-HbmWTHay9psM8qyzEKPc8odH4DsOuzdejtnr+OFtDmOcIVnhgReQ4GZBH7uwcjf6" |
| 23 | + rel="stylesheet" |
| 24 | + /> |
| 25 | + |
| 26 | + {# HelixUI Styles (generated from src/) #} |
| 27 | + <link rel="stylesheet" href="dist/styles/helix-ui.css"> |
| 28 | + {# Documentation Styles (generated from docs/) #} |
| 29 | + <link rel="stylesheet" href="docs.css"> |
| 30 | + |
| 31 | + <!-- Converts ES5 custom element constructor functions to ES6 classes --> |
| 32 | + <script src="vendor/custom-elements-es5-adapter.js"></script> |
| 33 | + |
| 34 | + <!-- loader appends polyfills, if needed --> |
| 35 | + <script src="vendor/webcomponents-loader.js"></script> |
9 | 36 | </head> |
10 | | -<body class="hxVertical" id="top"> |
| 37 | +<body class="{{bodyClass | d('hxVertical')}}" id="top"> |
11 | 38 | <!-- This link should be the first item a user can tab to. --> |
12 | 39 | <a href="#content">Skip to main content</a> |
13 | 40 |
|
14 | 41 | <header id="head"> |
15 | | - {% include 'partials/global_nav.njk' %} |
| 42 | + <nav> |
| 43 | + <a class="brand-logo" href=""> |
| 44 | + <img src="images/helix-logo.svg" alt="Logo" /> |
| 45 | + </a> |
| 46 | + </nav> |
| 47 | + |
| 48 | + <div> |
| 49 | + <a |
| 50 | + class="hxBtn beta-hxDark" |
| 51 | + href="https://github.com/rackerlabs/helix-ui/" |
| 52 | + > |
| 53 | + <i class="fab fa-github"></i> |
| 54 | + <span>View Source</span> |
| 55 | + </a> |
| 56 | + <a |
| 57 | + class="hxBtn beta-hxDark" |
| 58 | + href="https://github.com/rackerlabs/helix-ui/issues/new?template=bug-report.md&labels=Bug:+Unconfirmed" |
| 59 | + > |
| 60 | + Report Bug |
| 61 | + </a> |
| 62 | + </div> |
16 | 63 | </header> |
17 | 64 |
|
18 | 65 | <div id="app"> |
19 | 66 | <div id="stage"> |
20 | 67 | <nav id="nav" class="hxNav"> |
21 | | - {% include 'partials/app_nav.njk' %} |
| 68 | + {% block app_nav %} |
| 69 | + {% include 'partials/app_nav.njk' %} |
| 70 | + {% endblock %} |
22 | 71 | </nav> |
23 | 72 |
|
24 | | - {% block layout %} |
25 | | - <main role="main" id="content"> |
| 73 | + <main role="main" id="content" class="{{mainClass}} {{contentClasses}}"> |
| 74 | + {% block main %} |
| 75 | + <header> |
| 76 | + {# TODO: use frontmatter to define breadcrumbs #} |
| 77 | + {% block breadcrumbs %} |
| 78 | + {# breadcrumbs go here (optional) #} |
| 79 | + {% endblock %} |
| 80 | + |
| 81 | + <h1> |
| 82 | + {{ page.title }} |
| 83 | + |
| 84 | + {% if page.minver %} |
| 85 | + {% include 'partials/min-version.njk' %} |
| 86 | + {% endif %} |
| 87 | + </h1> |
| 88 | + |
| 89 | + {% if page.beta %} |
| 90 | + {# TODO: convert to official Banner when available in HelixUI assets #} |
| 91 | + <hx-alert type="warning" status="BETA" persist> |
| 92 | + Not recommended for production use. |
| 93 | + </hx-alert> |
| 94 | + {% endif %} |
| 95 | + |
| 96 | + {% block page_header %} |
| 97 | + {# extra header content goes here #} |
| 98 | + {% endblock %} |
| 99 | + </header> |
| 100 | + |
26 | 101 | {% block content %} |
27 | 102 | {# page content goes here #} |
28 | 103 | {% endblock %} |
29 | | - </main> |
| 104 | + {% endblock %} |
| 105 | + |
| 106 | + {% if page.also %} |
| 107 | + {% include 'partials/see-also.njk' %} |
| 108 | + {% endif %} |
| 109 | + </main> |
30 | 110 |
|
| 111 | + {% if hasSiderail %} |
31 | 112 | <aside class="hxSiderail"> |
32 | | - {% block sidebar %} |
33 | | - {% include 'partials/sidebar.njk' %} |
| 113 | + {% block siderail %} |
| 114 | + <header> |
| 115 | + <h1 class="hxHeading-4">On this page:</h1> |
| 116 | + </header> |
| 117 | + |
| 118 | + <nav class="article-toc"> |
| 119 | + {{ page.raw | toc | safe }} |
| 120 | + {% block toc %} |
| 121 | + {# extra links go here #} |
| 122 | + {% endblock %} |
| 123 | + {% if page.also %} |
| 124 | + <a href="#see-also">See Also</a> |
| 125 | + {% endif %} |
| 126 | + <hr class="hxDivider" /> |
| 127 | + <a class="top-link" href="#top">Back to Top</a> |
| 128 | + </nav> |
34 | 129 | {% endblock %} |
35 | 130 | </aside> |
36 | | - {% endblock %} |
| 131 | + {% endif %} |
37 | 132 | </div> |
38 | 133 | </div> |
39 | 134 |
|
40 | 135 | <footer id="foot" class="hxRow hxGutterless"> |
41 | | - {% include 'partials/footer_nav.njk' %} |
| 136 | + <div class="hxCol"> |
| 137 | + © 2019 Rackspace US, Inc. |
| 138 | + <nav> |
| 139 | + <a href="https://www.rackspace.com/information/legal/websiteterms">Website Terms</a> |
| 140 | + <a href="https://www.rackspace.com/information/legal/privacystatement">Privacy Policy</a> |
| 141 | + </nav> |
| 142 | + </div> |
| 143 | + |
| 144 | + <div class="hxCol hxRight"> |
| 145 | + {% if page.updated %} |
| 146 | + <small> |
| 147 | + Last Updated: |
| 148 | + {{ page.updated.format(site.dateFormat) }} |
| 149 | + </small> |
| 150 | + {% endif %} |
| 151 | + |
| 152 | + <small> |
| 153 | + (<a href="https://github.com/rackerlabs/helix-ui/releases/v{{VERSION}}" target="_blank"> |
| 154 | + v{{VERSION}} |
| 155 | + </a>) |
| 156 | + </small> |
| 157 | + </div> |
42 | 158 | </footer> |
43 | 159 |
|
44 | | - {% include 'partials/after_footer.njk' %} |
| 160 | + {# Documentation Dependencies #} |
45 | 161 |
|
46 | | - {% block after_footer %} |
47 | | - {# custom scripts/markup go here #} |
48 | | - {% endblock %} |
| 162 | + {# Vue for Interactive Demos #} |
| 163 | + < script src= "https://unpkg.com/[email protected]/dist/vue.js"></ script> |
| 164 | + {# HelixUI Behavior (generated from src/) #} |
| 165 | + <script src="dist/scripts/helix-ui.browser.js"></script> |
| 166 | + {# Documentation Behavior (generated from docs/) #} |
| 167 | + <script src="docs.js"></script> |
49 | 168 | </body> |
50 | 169 | </html> |
0 commit comments