|
@@ -238,6 +238,7 @@
|
|
|
}
|
|
|
|
|
|
const localList = list[ language ];
|
|
|
+ const selectedPage = window.location.hash.substring( 1 );
|
|
|
|
|
|
for ( const section in localList ) {
|
|
|
|
|
@@ -279,6 +280,14 @@
|
|
|
const linkElement = createLink( pageName, pageURL );
|
|
|
listElement.appendChild( linkElement );
|
|
|
|
|
|
+ // select current page
|
|
|
+
|
|
|
+ if ( pageURL === selectedPage ) {
|
|
|
+
|
|
|
+ linkElement.classList.add( 'selected' );
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
// Gather the main properties for the current subpage
|
|
|
|
|
|
pageProperties[ pageName ] = {
|