diff options
author | Darshan Baral <darshanbaral@gmail.com> | 2021-05-03 17:08:44 +0300 |
---|---|---|
committer | Darshan Baral <darshanbaral@gmail.com> | 2021-05-03 17:08:44 +0300 |
commit | 229c82d4e9d941232e4fc0bda7ad2cfbbfa55d6c (patch) | |
tree | d477bb76e7fb811ba202233e8e18529ab765332c | |
parent | b3771208997e2cf4ea5fcbc2417f2f7e7109ecff (diff) |
added header in sidebr
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/index.html | 1 | ||||
-rw-r--r-- | layouts/partials/header.html | 6 |
3 files changed, 5 insertions, 3 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9b26312..4e5d128 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -4,6 +4,7 @@ theme = "sada" disableKinds = ["taxonomy", "taxonomyTerm"]
[params]
+ name = "example.org"
title = "Sada Theme"
author = "Darshan Baral"
description = "Simple single page resume theme"
diff --git a/layouts/index.html b/layouts/index.html index 0d46702..d5a929f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,6 +3,7 @@ class="w-full sm:w-2/5 bg-gray-200 dark:bg-dark2 p-3 rounded shadow flex flex-col justify-between"
>
<div>
+ <h1 class="text-center">{{ .Site.Params.profile.name }}</h1>
{{ partial "profilePhoto" . }}
{{ partial "social.html" . }}
{{ partial "aboutDesc" . }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e2cb2a3..22cd6f4 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,7 +1,7 @@ -<header class="flex flex-row justify-between mb-6 px-3 pt-2">
- <h1 class="mb-1">{{ .Site.Params.profile.name }}</h1>
+<header class="flex flex-row justify-between items-center my-2">
+ <i>{{ .Site.Params.name }}</i>
<i
- class="toggle-theme text-3xl cursor-pointer fas {{ if eq .Site.Params.theme `light` }}fa-moon{{ else }}fa-sun{{ end }} text-gray-600 hover:text-gray-800 dark:text-gray-500 dark:hover:text-gray-200"
+ class="toggle-theme cursor-pointer fas {{ if eq .Site.Params.theme `light` }}fa-moon{{ else }}fa-sun{{ end }} text-gray-600 hover:text-gray-800 dark:text-gray-500 dark:hover:text-gray-200"
onclick="toggleTheme(this)"
></i>
</header>
|