From 7e99bf9e4e83a8633906b1a6da5f0e4a63b30f1e Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 14 Jun 2018 16:28:55 +0530 Subject: [PATCH] src: Use a separate param for header username Signed-off-by: Harsh Shandilya --- config.toml | 1 + themes/hugo-theme-vec/layouts/partials/header.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 08b8337..fd8ce7f 100644 --- a/config.toml +++ b/config.toml @@ -11,6 +11,7 @@ theme = "hugo-theme-vec" url = "/contact" [params] + Username = "MSFJarvis" GithubID = "MSF-Jarvis" TwitterID = "MSF_Jarvis" LinkedInID = "harsh-shandilya-557334121" diff --git a/themes/hugo-theme-vec/layouts/partials/header.html b/themes/hugo-theme-vec/layouts/partials/header.html index ce4a0b2..bdd5260 100644 --- a/themes/hugo-theme-vec/layouts/partials/header.html +++ b/themes/hugo-theme-vec/layouts/partials/header.html @@ -4,7 +4,7 @@ {{ $title := lower .Title }} {{ $section := lower .Section }}
  • - /home/{{ lower .Site.Title}} + /home/{{ lower .Site.Params.Username}}
  • {{ range .Site.Menus.main }} {{ $name := lower .Name }}