Skip to content

Commit

Permalink
Merge pull request rhazdon#97 from npjg/animation-controls
Browse files Browse the repository at this point in the history
Animation controls
  • Loading branch information
Djordje Atlialp authored Feb 11, 2020
2 parents 1f82f52 + a3cf56c commit b46f7a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,12 @@ disableHugoGeneratorInject = false
[params.logo]
logoText = "$ cd /home/"
logoHomeLink = "/"
# Set true to remove the logo entirely.
# logoDisabled = true
# Set to a valid CSS color to change the cursor in the logo.
# logoColor = "#67a2c9"
# Set to a valid CSS time value to change the animation duration, "0s" to disable.
# logoAnimate = "2s"

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

0 comments on commit b46f7a0

Please sign in to comment.