Skip to content

Commit

Permalink
Cursor color customization
Browse files Browse the repository at this point in the history
  • Loading branch information
jpyamamoto committed Oct 12, 2019
1 parent b2f7b9e commit ee9a8f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ disableHugoGeneratorInject = false
[params.logo]
logoText = "$ cd /home/"
logoHomeLink = "/"
# Set to a valid CSS color to change the cursor in the logo.
# logoColor = "#67a2c9"

# Social icons
[[params.social]]
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/logo.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{ else }}
<span class="logo__mark">></span>
<span class="logo__text">{{ with .Site.Params.Logo.logoText }}{{ . }}{{ else }}hello{{ end }}</span>
<span class="logo__cursor"></span>
<span class="logo__cursor" style="{{ with .Site.Params.Logo.logoColor }}background-color:{{ . }}{{ end }}"></span>
{{ end }}
</div>
</a>

0 comments on commit ee9a8f2

Please sign in to comment.