|
23 | 23 |
|
24 | 24 | <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css"> |
25 | 25 | <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script> |
| 26 | + <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/obsidian.min.css"> |
26 | 27 | <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/dart.min.js"></script> |
27 | | - <script>hljs.highlightAll();</script> |
| 28 | + <script> |
| 29 | + hljs.highlightAll(); |
| 30 | + </script> |
28 | 31 |
|
29 | 32 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3" /> |
30 | 33 |
|
31 | 34 | <link rel="stylesheet" href="/styles/docs_page_layout.css"> |
32 | | - <link rel="stylesheet" href="/styles/docs_page_layout_light.css"> |
33 | 35 | <link rel="stylesheet" href="/styles/docs_page_layout_dark.css"> |
34 | 36 | </head> |
35 | 37 |
|
|
97 | 99 |
|
98 | 100 | <!-- Page/article content --> |
99 | 101 | <main class="page-content col-12 col-lg-10 col-xl-8"> |
| 102 | + {% if headerImage is defined %} |
| 103 | + <header class="image"> |
| 104 | + <img class="background" src="{{ headerImage }}"> |
| 105 | + </header> |
| 106 | + {% else %} |
100 | 107 | <header> |
101 | 108 | <h1>{{ title }}</h1> |
102 | 109 | </header> |
| 110 | + {% endif %} |
103 | 111 |
|
104 | | - {{ content }} |
| 112 | + {{ content }} |
105 | 113 | </main> |
106 | 114 |
|
107 | 115 | <!-- Table of contents for the page/article on desktop --> |
|
126 | 134 | // - not in an "onload" function - because we need this code to |
127 | 135 | // run before anything is painted. Otherwise we get a flicker from |
128 | 136 | // light mode to dark mode on load. |
129 | | - var brightness = localStorage.getItem('brightness'); |
130 | | - if (brightness === "light" || brightness === null) { |
131 | | - goToLightMode(); |
132 | | - } else { |
| 137 | + //var brightness = localStorage.getItem('brightness'); |
| 138 | + //if (brightness === "light" || brightness === null) { |
| 139 | + // goToLightMode(); |
| 140 | + //} else { |
133 | 141 | goToDarkMode(); |
134 | | - } |
| 142 | + //} |
135 | 143 |
|
136 | 144 | // Configure the global text search input. |
137 | 145 | //docsearch({ |
|
158 | 166 | // For Algolia Docsearch bar theme |
159 | 167 | html.setAttribute("data-theme", "light"); |
160 | 168 |
|
161 | | - var button = document.getElementById("brightness-button"); |
162 | | - button.classList.remove("fa-sun"); |
163 | | - button.classList.add("fa-moon"); |
164 | | -
|
165 | 169 | localStorage.setItem('brightness', 'light'); |
166 | 170 | } |
167 | 171 |
|
|
172 | 176 | // For Algolia Docsearch bar theme |
173 | 177 | html.setAttribute("data-theme", "dark"); |
174 | 178 |
|
175 | | - var button = document.getElementById("brightness-button"); |
176 | | - button.classList.remove("fa-moon"); |
177 | | - button.classList.add("fa-sun"); |
178 | | -
|
179 | 179 | localStorage.setItem('brightness', 'dark'); |
180 | 180 | } |
181 | 181 | </script> |
|
0 commit comments