mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-09 23:09:47 +00:00
Merge branch 'fix_nav' of https://github.com/Hanzei/hugo-theme-introduction into Hanzei-fix_nav
Testing nav fixes.
This commit is contained in:
commit
214e392030
2 changed files with 30 additions and 12 deletions
|
@ -7,18 +7,23 @@
|
|||
</span>
|
||||
<div id="nav-menu" class="nav-left nav-menu">
|
||||
<span class="nav-item">
|
||||
<a href="/">Main</a>
|
||||
<a href="{{ "/" | relURL }}">Main</a>
|
||||
</span>
|
||||
<span class="nav-item">
|
||||
<a href="/#about">About</a>
|
||||
<a href="{{ "/about" | relURL }}">About</a>
|
||||
</span>
|
||||
{{ if .Site.Params.showProjects }}
|
||||
{{ if .Site.Params.showProjects }}
|
||||
<span class="nav-item">
|
||||
<a href="/#projects">Projects</a>
|
||||
<a href="{{ "/projects" | relURL }}">Projects</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if .Site.Params.showBlog }}
|
||||
<span class="nav-item">
|
||||
<a href="/#contact">Contact</a>
|
||||
<a href="{{ "/blog" | relURL }}">Blog</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
<span class="nav-item">
|
||||
<a href="{{ "/contact" | relURL }}">Contact</a>
|
||||
</span>
|
||||
{{ if .Site.RSSLink }}
|
||||
<span class="nav-item">
|
||||
|
@ -27,4 +32,4 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
</nav>
|
||||
<hr>
|
||||
<hr>
|
||||
|
|
|
@ -7,18 +7,31 @@
|
|||
</span>
|
||||
<div id="nav-menu" class="nav-left nav-menu">
|
||||
<span class="nav-item">
|
||||
<a href="/">Main</a>
|
||||
<a href="{{ "/" | relURL }}">Main</a>
|
||||
</span>
|
||||
<span class="nav-item">
|
||||
<a href="/#about">About</a>
|
||||
<a href="{{ "/about" | relURL }}">About</a>
|
||||
</span>
|
||||
{{ with .Section }}
|
||||
{{ if .Site.Params.showProjects }}
|
||||
<span class="nav-item">
|
||||
<a href="/{{ . }}">Back to {{ . }}</a>
|
||||
{{ if ne .Section "projects" }}
|
||||
<a href="{{ "/projects" | relURL }}">Projects</a>
|
||||
{{ else }}
|
||||
<a href="{{ "/projects" | relURL }}">Back to Projects</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.showBlog }}
|
||||
<span class="nav-item">
|
||||
{{ if ne .Section "blog" }}
|
||||
<a href="{{ "/blog" | relURL }}">Blog</a>
|
||||
{{ else }}
|
||||
<a href="{{ "/blog" | relURL }}">Back to Blog</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
<span class="nav-item">
|
||||
<a href="/#contact">Contact</a>
|
||||
<a href="{{ "/contact" | relURL }}">Contact</a>
|
||||
</span>
|
||||
{{ if .Site.RSSLink }}
|
||||
<span class="nav-item">
|
||||
|
|
Loading…
Reference in a new issue