mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-14 00:59:43 +00:00
Dont show link to current page in nav
This commit is contained in:
parent
d60ab73b1d
commit
1262c0decd
1 changed files with 2 additions and 2 deletions
|
@ -12,12 +12,12 @@
|
|||
<span class="nav-item">
|
||||
<a href="{{ "/about" | relURL }}">About</a>
|
||||
</span>
|
||||
{{ if .Site.Params.showProjects }}
|
||||
{{ if and (.Site.Params.showProjects) (ne .Page.Section "projects") }}
|
||||
<span class="nav-item">
|
||||
<a href="{{ "/projects" | relURL }}">Projects</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.showBlog }}
|
||||
{{ if and (.Site.Params.showBlog) (ne .Page.Section "blog") }}
|
||||
<span class="nav-item">
|
||||
<a href="{{ "/blog" | relURL }}">Blog</a>
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue