diff options
author | Jonathan Rutheiser <jonathan.rutheiser@gmail.com> | 2016-05-06 08:33:43 +0300 |
---|---|---|
committer | Jonathan Rutheiser <jonathan.rutheiser@gmail.com> | 2016-05-06 08:33:43 +0300 |
commit | 8e65858191a9e594285286c4377f1213994551f3 (patch) | |
tree | 12e96f30211d70018c61fddcccf8aa89db9f13f8 | |
parent | 85a93ab109a94610a2cfd603a225ea559235b86a (diff) |
Add logo to config parameters
-rw-r--r-- | exampleSite/config.toml | 6 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 | ||||
-rw-r--r-- | layouts/partials/nav.html | 3 | ||||
-rw-r--r-- | static/css/main.css | 8 |
4 files changed, 8 insertions, 11 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 49e104f..441d392 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -19,3 +19,9 @@ googleAnalytics = "" name = "Twitter" url = "" +[params] + [params.logo] + url = "logo.png" + width = 50 + height = 50 + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f3bc0b3..6a3b55c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="en"> +<html lang="{{ .Site.LanguageCode }}"> <head> {{ partial "head.html" . }} </head> diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 215342b..5bf34f1 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,8 +1,7 @@ <nav class="nav"> - <a href="{{ .Site.BaseURL }}" class="nav-logo">JR</a> + <a href="{{ .Site.BaseURL }}" class="nav-logo"><img src="{{ .Site.BaseURL }}images/{{ .Site.Params.logo.url }}" width="{{ .Site.Params.logo.width }}" height="{{ .Site.Params.logo.height }}"></a> <ul class="nav-links"> - {{ $currentNode := . }} {{ range .Site.Menus.main }} <li><a href="{{ .URL }}">{{ .Name }}</a></li> {{ end }} diff --git a/static/css/main.css b/static/css/main.css index acc841f..7e4ebeb 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -48,16 +48,8 @@ a { .nav-logo { float: left; - width: 40px; - height: 40px; - font-size: 16px; - background: #EC5437; font-weight: bold; - color: #fff; - line-height: 40px; - border-radius: 20px; text-decoration: none; - text-align: center; margin-top: -11px; transition: transform 150ms ease-out; } |