From c94272bf362c89ab03ad57abcad7d57332286906 Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Mon, 5 Jul 2021 10:03:16 +0530 Subject: [PATCH] Use Site avatar variable and remove border from avatar --- exampleSite/config.toml | 2 ++ themes/gokarna/layouts/index.html | 8 +++++--- themes/gokarna/layouts/partials/header.html | 4 +++- themes/gokarna/static/css/main.css | 1 - 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 779f3a2..7caec5d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -11,6 +11,8 @@ pygmentsStyle = "emacs" [params] footer = "The Marauders" + description = "You miss 100% of the shots you don't take" + avatarURL = "https://upload.wikimedia.org/wikipedia/commons/7/7a/1859-Martinique.web.jpg" [menu] [[menu.main]] diff --git a/themes/gokarna/layouts/index.html b/themes/gokarna/layouts/index.html index 3fc964b..68e0408 100644 --- a/themes/gokarna/layouts/index.html +++ b/themes/gokarna/layouts/index.html @@ -1,9 +1,11 @@ {{ define "main" }}
- avatar + {{ if isset .Site.Params "avatarurl" }} + avatar + {{ end }}
-

Chaman Chutiya

-

Software Developer

+

{{ .Site.Title }}

+

{{ .Site.Params.Description }}

{{ end }} diff --git a/themes/gokarna/layouts/partials/header.html b/themes/gokarna/layouts/partials/header.html index 5a5707b..92d0fbb 100644 --- a/themes/gokarna/layouts/partials/header.html +++ b/themes/gokarna/layouts/partials/header.html @@ -1,11 +1,13 @@