fix and improved sidebarSticky

This commit is contained in:
Ricardo Tun 2018-06-02 13:30:26 -05:00
parent c8da3663bd
commit f1524dd1dc
3 changed files with 4 additions and 3 deletions

View file

@ -21,6 +21,7 @@ theme = "hyde-hyde"
# please choose either GraphComment or Disqus
# GraphCommentId = "your-graph-comment-id"
# layoutReverse = true
# sidebarSticky = true
## Social Accounts
[params.social]

View file

@ -1,5 +1,5 @@
<div class="sidebar">
<div class="container text-center sidebar-sticky">
<div class="container text-center {{ if .Site.Params.sidebarSticky }}sidebar-sticky{{ end }}">
<div class="sidebar-about text-center">
<a href="{{ .Site.BaseURL }}"><h1 class="brand">{{ .Site.Title }}</h1></a>
{{ with .Site.Params.authorimage }} <img src="{{.}}" alt="Author Image" class="img-circle headshot center"> {{ end }}

View file

@ -121,7 +121,7 @@ a.sidebar-nav-item:focus {
.sidebar-sticky {
position: absolute;
right: 1rem;
top: 1rem;
bottom: 1rem;
left: 1rem;
}
}