made nav.js more generic
This commit is contained in:
@@ -12,7 +12,7 @@ var splitPath = function(path) {
|
||||
d = window.document
|
||||
|
||||
var get_current_page_name = function() {
|
||||
if (d.URL == 'https://averba.ch/') {
|
||||
if (location.pathname == '/') {
|
||||
return 'about'
|
||||
}
|
||||
page_name = splitPath(d.URL).filename
|
||||
|
||||
Reference in New Issue
Block a user