changed nav.js

This commit is contained in:
2018-08-01 11:37:10 -04:00
parent dbb4fc273f
commit f0b3fb1a84

View File

@@ -12,6 +12,9 @@ var splitPath = function(path) {
d = window.document
var get_current_page_name = function() {
if (d.URL == 'https://averba.ch/') {
return 'about'
}
page_name = splitPath(d.URL).filename
if (!['projects', 'index'].includes(page_name)) {
return 'blog' }