Cursor color customization

This commit is contained in:
Juan Pablo Yamamoto 2019-10-12 17:18:08 -05:00
parent b7a2d04347
commit e4ef854c2b
2 changed files with 3 additions and 1 deletions

View File

@ -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]]

View File

@ -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>