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 ="shortcut icon " type ="image/png " href ="{{ '/favicon.png' | relative_url }} ">
13+ < link rel ="stylesheet " href ="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }} ">
14+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/vs2015.min.css ">
15+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js "> </ script >
16+ {% include head-custom.html %}
17+ </ head >
18+ < body >
19+ < a id ="skip-to-content " href ="#content "> Skip to the content.</ a >
20+
21+ < header class ="page-header " role ="banner ">
22+ < h1 class ="project-name "> {{ page.title | default: site.title | default: site.github.repository_name }}</ h1 >
23+ < h2 class ="project-tagline "> {{ page.description | default: site.description | default: site.github.project_tagline }}</ h2 >
24+ {% if site.github.is_project_page %}
25+ < a href ="{{ site.github.repository_url }} " class ="btn "> View on GitHub</ a >
26+ {% endif %}
27+ {% if site.show_downloads %}
28+ < a href ="{{ site.github.zip_url }} " class ="btn "> Download .zip</ a >
29+ < a href ="{{ site.github.tar_url }} " class ="btn "> Download .tar.gz</ a >
30+ {% endif %}
31+ </ header >
32+
33+ < main id ="content " class ="main-content " role ="main ">
34+ {{ content }}
35+
36+ < footer class ="site-footer ">
37+ {% if site.github.is_project_page %}
38+ < 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 >
39+ {% endif %}
40+ < span class ="site-footer-credits "> This page was generated by < a href ="https://pages.github.com "> GitHub Pages</ a > .</ span >
41+ </ footer >
42+ </ main >
43+ </ body >
44+ < script > hljs . highlightAll ( ) ; </ script >
45+
46+ <!-- Invalid syntax highlighting-->
47+ < script >
48+ function markInvalidNumbers ( codeBlock ) {
49+ var spans = codeBlock . querySelectorAll ( "span" ) ;
50+
51+ for ( let i = 1 ; i < spans . length ; i ++ ) {
52+ if (
53+ spans [ i ] . classList . contains ( "hljs-number" ) &&
54+ spans [ i - 1 ] . classList . contains ( "hljs-comment" ) &&
55+ ( i - 2 >= 0 && spans [ i - 2 ] . classList . contains ( "hljs-number" ) )
56+ ) {
57+ spans [ i ] . classList . replace ( "hljs-number" , "hljs-error" ) ;
58+ }
59+ }
60+ }
61+
62+ document . querySelectorAll ( "code.language-jsonc" ) . forEach ( ( codeBlock ) => {
63+ const observer = new MutationObserver ( ( mutations , obs ) => {
64+ if ( codeBlock . querySelector ( "span" ) ) {
65+ markInvalidNumbers ( codeBlock ) ; // Run script when syntax highlighting is applied
66+ obs . disconnect ( ) ; // Stop observing once highlighting is complete
67+ }
68+ } ) ;
69+
70+ observer . observe ( codeBlock , { childList : true } ) ;
71+ } ) ;
72+ </ script >
73+
74+
75+
76+ </ html >
0 commit comments