Merge pull request #10 from tun/master
Improvements for layoutReverse and sidebarSticky
This commit is contained in:
commit
ea1fcd379a
4 changed files with 25 additions and 23 deletions
|
@ -19,7 +19,9 @@ theme = "hyde-hyde"
|
|||
highlightjs = true
|
||||
# highlightjsstyle = "github"
|
||||
# please choose either GraphComment or Disqus
|
||||
# GraphCommentId = "your-graph-comment-id"
|
||||
# GraphCommentId = "your-graph-comment-id"
|
||||
# layoutReverse = true
|
||||
# sidebarSticky = true
|
||||
|
||||
## Social Accounts
|
||||
[params.social]
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
{{ block "header" . -}}{{- end }}
|
||||
</head>
|
||||
<body {{- if .Site.Params.themeColor }} class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}" {{ end }}>
|
||||
<body class="{{- if .Site.Params.themeColor }}{{ .Site.Params.themeColor }}{{ end }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
|
||||
{{ partial "sidebar.html" . }}
|
||||
<div class="content container">
|
||||
{{ block "content" . }}{{ end }}
|
||||
|
@ -14,6 +14,6 @@
|
|||
<!-- Google Analytics -->
|
||||
{{ if .Site.GoogleAnalytics -}}
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
<div class="sidebar">
|
||||
<div class="container text-center sidebar-sticky">
|
||||
<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 }}
|
||||
<p class="lead">
|
||||
{{ with .Site.Params.description }} {{.}} {{ else }} Your site's description {{end}}
|
||||
</p>
|
||||
</div>
|
||||
{{ partial "sidebar_menu.html" . }}
|
||||
<p>
|
||||
{{ partial "sidebar_social.html" . }}
|
||||
</p>
|
||||
<p class="copyright">{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{ now.Format "2006"}} {{.Site.Params.author}}.
|
||||
<a href="https://creativecommons.org/licenses/by/4.0">Some Rights Reserved</a>.<br/>Built with <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/htr3n/hyde-hyde">hyde-hyde</a>.{{end}}
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
<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 }}
|
||||
<p class="lead">
|
||||
{{ with .Site.Params.description }} {{.}} {{ else }} Your site's description {{end}}
|
||||
</p>
|
||||
</div>
|
||||
{{ partial "sidebar_menu.html" . }}
|
||||
<p>
|
||||
{{ partial "sidebar_social.html" . }}
|
||||
</p>
|
||||
<p class="copyright">{{ with .Site.Params.copyright }}{{.|safeHTML}}{{ else }}© {{ now.Format "2006"}} {{.Site.Params.author}}.
|
||||
<a href="https://creativecommons.org/licenses/by/4.0">Some Rights Reserved</a>.<br/>Built with <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/htr3n/hyde-hyde">hyde-hyde</a>.{{end}}
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -121,7 +121,7 @@ a.sidebar-nav-item:focus {
|
|||
.sidebar-sticky {
|
||||
position: absolute;
|
||||
right: 1rem;
|
||||
top: 1rem;
|
||||
bottom: 1rem;
|
||||
left: 1rem;
|
||||
}
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ a.sidebar-nav-item:focus {
|
|||
display:inline;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
|
||||
.badges {
|
||||
float: right;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue