1+ <!DOCTYPE html>
2+ < html lang ="{{ site.lang | default: "en-US " }}">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+
6+ {% seo %}
7+ < link rel ="preconnect " href ="https://fonts.gstatic.com ">
8+ < link rel ="preload " href ="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap " as ="style " type ="text/css " crossorigin >
9+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
10+ < meta name ="theme-color " content ="#157878 ">
11+ < meta name ="apple-mobile-web-app-status-bar-style " content ="black-translucent ">
12+ < link rel ="stylesheet " href ="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }} ">
13+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/vs2015.min.css ">
14+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js "> </ script >
15+ {% include head-custom.html %}
16+ </ head >
17+ < body >
18+ < a id ="skip-to-content " href ="#content "> Skip to the content.</ a >
19+
20+ < header class ="page-header " role ="banner ">
21+ < h1 class ="project-name "> {{ page.title | default: site.title | default: site.github.repository_name }}</ h1 >
22+ < h2 class ="project-tagline "> {{ page.description | default: site.description | default: site.github.project_tagline }}</ h2 >
23+ {% if site.github.is_project_page %}
24+ < a href ="{{ site.github.repository_url }} " class ="btn "> View on GitHub</ a >
25+ {% endif %}
26+ {% if site.show_downloads %}
27+ < a href ="{{ site.github.zip_url }} " class ="btn "> Download .zip</ a >
28+ < a href ="{{ site.github.tar_url }} " class ="btn "> Download .tar.gz</ a >
29+ {% endif %}
30+ </ header >
31+
32+ < main id ="content " class ="main-content " role ="main ">
33+ {{ content }}
34+
35+ < footer class ="site-footer ">
36+ {% if site.github.is_project_page %}
37+ < span class ="site-footer-owner "> < a href ="{{ site.github.repository_url }} "> {{ site.github.repository_name }}</ a > is maintained by < a href ="{{ site.github.owner_url }} "> {{ site.github.owner_name }}</ a > .</ span >
38+ {% endif %}
39+ < span class ="site-footer-credits "> This page was generated by < a href ="https://pages.github.com "> GitHub Pages</ a > .</ span >
40+ </ footer >
41+ </ main >
42+ </ body >
43+ < script > hljs . highlightAll ( ) ; </ script >
44+
45+ <!-- Invalid syntax highlighting-->
46+ < script >
47+ function markInvalidNumbers ( codeBlock ) {
48+ var spans = codeBlock . querySelectorAll ( "span" ) ;
49+
50+ for ( let i = 1 ; i < spans . length ; i ++ ) {
51+ if (
52+ spans [ i ] . classList . contains ( "hljs-number" ) &&
53+ spans [ i - 1 ] . classList . contains ( "hljs-comment" ) &&
54+ ( i - 2 >= 0 && spans [ i - 2 ] . classList . contains ( "hljs-number" ) )
55+ ) {
56+ spans [ i ] . classList . replace ( "hljs-number" , "hljs-error" ) ;
57+ }
58+ }
59+ }
60+
61+ document . querySelectorAll ( "code.language-jsonc" ) . forEach ( ( codeBlock ) => {
62+ const observer = new MutationObserver ( ( mutations , obs ) => {
63+ if ( codeBlock . querySelector ( "span" ) ) {
64+ markInvalidNumbers ( codeBlock ) ; // Run script when syntax highlighting is applied
65+ obs . disconnect ( ) ; // Stop observing once highlighting is complete
66+ }
67+ } ) ;
68+
69+ observer . observe ( codeBlock , { childList : true } ) ;
70+ } ) ;
71+ </ script >
72+
73+
74+
75+ </ html >
0 commit comments