Merge pull request #64 from JPYamamoto/master

Cursor color customization
This commit is contained in:
Djordje Atlialp 2019-10-17 10:42:49 +02:00 committed by GitHub
commit d4aa6011f3
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>