|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="{{ site.lang | default: " en-US" }}"> |
| 3 | + |
| 4 | +<head> |
| 5 | + <meta charset="UTF-8"> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 7 | + <meta name="description" content="{{ site.description }}"> |
| 8 | + <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}"> |
| 9 | + <title>{{ site.title }}</title> |
| 10 | + <style> |
| 11 | + /* Navbar */ |
| 12 | + .site-nav { |
| 13 | + background: #159957; |
| 14 | + padding: 10px; |
| 15 | + text-align: center; |
| 16 | + border-bottom: 1px solid rgba(255, 255, 255, 0.3); |
| 17 | + } |
| 18 | + |
| 19 | + .site-nav a { |
| 20 | + color: rgba(255, 255, 255, 0.7); |
| 21 | + margin: 0 1rem; |
| 22 | + text-decoration: none; |
| 23 | + font-weight: bold; |
| 24 | + font-size: 1.1rem; |
| 25 | + } |
| 26 | + |
| 27 | + .site-nav a:hover, |
| 28 | + .site-nav a.active { |
| 29 | + color: white; |
| 30 | + text-decoration: none; |
| 31 | + } |
| 32 | + |
| 33 | + /* Layout Grid */ |
| 34 | + .page-content { |
| 35 | + display: flex; |
| 36 | + flex-direction: column; |
| 37 | + max-width: 64rem; |
| 38 | + margin: 0 auto; |
| 39 | + padding: 2rem 1rem; |
| 40 | + } |
| 41 | + |
| 42 | + @media (min-width: 64em) { |
| 43 | + .page-content { |
| 44 | + flex-direction: row; |
| 45 | + align-items: flex-start; |
| 46 | + } |
| 47 | + } |
| 48 | + |
| 49 | + /* Sidebar */ |
| 50 | + .sidebar { |
| 51 | + width: 100%; |
| 52 | + margin-bottom: 2rem; |
| 53 | + background: #f9f9f9; |
| 54 | + padding: 1rem; |
| 55 | + border-radius: 4px; |
| 56 | + border: 1px solid #e1e4e8; |
| 57 | + } |
| 58 | + |
| 59 | + @media (min-width: 64em) { |
| 60 | + .sidebar { |
| 61 | + width: 250px; |
| 62 | + margin-right: 2rem; |
| 63 | + margin-bottom: 0; |
| 64 | + position: sticky; |
| 65 | + top: 1rem; |
| 66 | + flex-shrink: 0; |
| 67 | + } |
| 68 | + } |
| 69 | + |
| 70 | + .sidebar ul { |
| 71 | + list-style: none; |
| 72 | + padding: 0; |
| 73 | + margin: 0; |
| 74 | + } |
| 75 | + |
| 76 | + .sidebar li { |
| 77 | + margin-bottom: 0.5rem; |
| 78 | + } |
| 79 | + |
| 80 | + .sidebar a { |
| 81 | + color: #159957; |
| 82 | + text-decoration: none; |
| 83 | + display: block; |
| 84 | + padding: 0.25rem 0; |
| 85 | + } |
| 86 | + |
| 87 | + .sidebar a:hover { |
| 88 | + color: #1e6bb8; |
| 89 | + text-decoration: underline; |
| 90 | + } |
| 91 | + |
| 92 | + /* Main Content */ |
| 93 | + .main-content-wrapper { |
| 94 | + flex: 1; |
| 95 | + min-width: 0; |
| 96 | + /* Fix flex overflow */ |
| 97 | + } |
| 98 | + </style> |
| 99 | +</head> |
| 100 | + |
| 101 | +<body> |
| 102 | + {% include nav.html %} |
| 103 | + |
| 104 | + <section class="page-header"> |
| 105 | + <h1 class="project-name">{{ site.title }}</h1> |
| 106 | + <h2 class="project-tagline">{{ site.description }}</h2> |
| 107 | + <a href="https://github.com/EntglDb/EntglDb.NodeJs" class="btn">View on GitHub</a> |
| 108 | + </section> |
| 109 | + |
| 110 | + <div class="page-content"> |
| 111 | + <!-- Sidebar Logic --> |
| 112 | + {% assign version = page.url | split: '/' %} |
| 113 | + {% assign current_version = version[1] %} |
| 114 | + |
| 115 | + {% if current_version == 'v0.7.0' %} |
| 116 | + <nav class="sidebar"> |
| 117 | + <h3>Docs {{ current_version }}</h3> |
| 118 | + <ul> |
| 119 | + {% for item in site.data.navigation[current_version] %} |
| 120 | + <li><a href="{{ item.url | relative_url }}">{{ item.title }}</a></li> |
| 121 | + {% endfor %} |
| 122 | + </ul> |
| 123 | + </nav> |
| 124 | + {% endif %} |
| 125 | + |
| 126 | + <div class="main-content-wrapper"> |
| 127 | + <section class="main-content"> |
| 128 | + {{ content }} |
| 129 | + </section> |
| 130 | + </div> |
| 131 | + </div> |
| 132 | + |
| 133 | + <footer class="site-footer" style="text-align: center; padding: 2rem; border-top: 1px solid #eee; margin-top: 2rem;"> |
| 134 | + <span class="site-footer-owner"><a href="https://github.com/EntglDb/EntglDb.NodeJs">EntglDb.NodeJs</a> is maintained by the EntglDb Team.</span> |
| 135 | + <span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub |
| 136 | + Pages</a>.</span> |
| 137 | + </footer> |
| 138 | +</body> |
| 139 | + |
| 140 | +</html> |
0 commit comments