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 4492a5c0bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -80,6 +80,8 @@ disableHugoGeneratorInject = false
[params.logo] [params.logo]
logoText = "$ cd /home/" logoText = "$ cd /home/"
logoHomeLink = "/" logoHomeLink = "/"
# Set to a valid CSS color to change the cursor in the logo.
# logoColor = "#67a2c9"
# Social icons # Social icons
[[params.social]] [[params.social]]

View file

@ -5,7 +5,7 @@
{{ else }} {{ else }}
<span class="logo__mark">></span> <span class="logo__mark">></span>
<span class="logo__text">{{ with .Site.Params.Logo.logoText }}{{ . }}{{ else }}hello{{ end }}</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 }} {{ end }}
</div> </div>
</a> </a>