Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/saey55/hugo-elate-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-08-19 18:12:20 +0300
committerGitHub <noreply@github.com>2017-08-19 18:12:20 +0300
commit0382c730230903c671e141151c2a2c0ba6e2cd95 (patch)
tree47bc05458cc3e0a9c8d7497044e6a00b7c06efc2
parentad6da21dde86b7970d68cdf4d7a4a0ee45cc681b (diff)
Fix prepend and postpend navbar links
Left clicking on the prepended or postpended external links in the navbar was not working because of [this line](https://github.com/saey55/hugo-elate-theme/blob/master/static/js/main.js#L65) excluding links with the external class.
-rwxr-xr-xlayouts/partials/nav.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 62afa7b..e418429 100755
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -11,7 +11,7 @@
<ul class="nav navbar-nav navbar-right">
{{ range .Site.Menus.prepend }}
- <li><a href="{{ .URL }}"><span>{{ .Name | markdownify }}</span></a></li>
+ <li><a class="external" href="{{ .URL }}"><span>{{ .Name | markdownify }}</span></a></li>
{{ end }}
<li class="active"><a href="#" data-nav-section="home"><span>{{ with .Site.Params.navigation.home }}{{ . | markdownify }}{{ end }}</span></a></li>
@@ -37,11 +37,11 @@
{{ end }}
{{ range .Site.Menus.postpend }}
- <li><a href="{{ .URL }}"><span>{{ .Name | markdownify }}</span></a></li>
+ <li><a class="external" href="{{ .URL }}"><span>{{ .Name | markdownify }}</span></a></li>
{{ end }}
</ul>
</div>
</nav>
<!-- </div> -->
</div>
-</header> \ No newline at end of file
+</header>