src: Use a separate param for header username

Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
This commit is contained in:
Harsh Shandilya 2018-06-14 16:28:55 +05:30
parent 7b20e86b27
commit 7e99bf9e4e
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ theme = "hugo-theme-vec"
url = "/contact"
[params]
Username = "MSFJarvis"
GithubID = "MSF-Jarvis"
TwitterID = "MSF_Jarvis"
LinkedInID = "harsh-shandilya-557334121"

View File

@ -4,7 +4,7 @@
{{ $title := lower .Title }}
{{ $section := lower .Section }}
<li class="pull-left {{ if .IsHome }}current{{ end }}">
<a href="{{ .Site.BaseURL }}">/home/{{ lower .Site.Title}}</a>
<a href="{{ .Site.BaseURL }}">/home/{{ lower .Site.Params.Username}}</a>
</li>
{{ range .Site.Menus.main }}
{{ $name := lower .Name }}