Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
Fix logoText variable & prevent code text transform
Browse files Browse the repository at this point in the history
  • Loading branch information
panr committed Sep 3, 2018
1 parent 3864783 commit f9f2768
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ paginate = 5
subtitle = "Your site subtitle"
[params.logo]
logoText = ""
logoText = "hello friend"
# or
#
# path = "/img/your-example-logo.svg"
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ paginate = 5
subtitle = "A simple theme for Hugo"

[params.logo]
logoText = ""
logoText = "hello friend"
# or
#
# path = "/img/your-example-logo.svg"
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/logo.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<a href="{{ .Site.BaseURL }}" style="text-decoration: none;">
<div class="logo">
{{ if .Site.Params.Logo }}
{{ if .Site.Params.Logo.path }}
<img src="{{ .Site.Params.Logo.path }}" alt="{{ .Site.Params.Logo.alt }}" />
{{ else }}
<span class="logo__mark">></span>
<span class="logo__text">hello friend</span>
<span class="logo__text">{{ with .Site.Params.Logo.logoText }}{{ . }}{{ else }}hello friend{{ end }}</span>
<span class="logo__cursor"></span>
{{ end }}
</div>
</a>
</a>
4 changes: 4 additions & 0 deletions source/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@
max-width: 100%;
}
}

.theme-toggle {
cursor: pointer;
}
Loading

0 comments on commit f9f2768

Please sign in to comment.