fix and improved sidebarSticky
This commit is contained in:
parent
c8da3663bd
commit
f1524dd1dc
3 changed files with 4 additions and 3 deletions
|
@ -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]
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -121,7 +121,7 @@ a.sidebar-nav-item:focus {
|
|||
.sidebar-sticky {
|
||||
position: absolute;
|
||||
right: 1rem;
|
||||
top: 1rem;
|
||||
bottom: 1rem;
|
||||
left: 1rem;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue