diff --git a/layouts/index.html b/layouts/index.html
index 0d0e1258..ccca23ff 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -2,6 +2,10 @@
{{ partial "navbar.html" . }}
+
+
+
+
{{ range $index, $page := where .Site.Pages "Section" "=" "home" }}
{{ if eq .Title "about" }}
diff --git a/static/js/hugo-academic.js b/static/js/hugo-academic.js
index 57378a79..1dda6154 100644
--- a/static/js/hugo-academic.js
+++ b/static/js/hugo-academic.js
@@ -12,9 +12,8 @@
$("#navbar-main li.nav-item a").on('click', function(event){
var hash = this.hash;
- var url = $(this).attr('href');
- if( hash && $(hash).length && (url.split('#')[0] == window.location.pathname)) {
+ if( hash && $(hash).length && ($("#homepage").length > 0)) {
// Prevent default click behavior
event.preventDefault();