mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Add ToC to long pages
* A compact, fixed box in the right screen * Only for big screens, > 1200 px wide
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ if .Params.toc }}
|
||||
<div class="col-lg-8 col-md-12">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
<div id="toc" class="col-lg-offset-6 toc {{ with .Params.tocstyle }}{{ . }}{{ end }}">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
{{ else }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
|
@@ -1,8 +1,10 @@
|
||||
<hr style="margin: 2em auto 0.25em;">
|
||||
<div style="font-size: medium; font-style: italic; text-align: right;">Hugo v{{ .Hugo.Version }} documentation</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div style="font-size: medium; font-style: italic; text-align: right;">Hugo v{{ .Hugo.Version }} documentation</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-1">
|
||||
{{ if .IsPage }}
|
||||
{{ with .GetParam "next" }}
|
||||
|
@@ -81,4 +81,8 @@
|
||||
<!--<h3>{{.Title}}</h3>-->
|
||||
<!--</header>-->
|
||||
<div class="panel-body">
|
||||
{{ partial "google-cse.html" . }}
|
||||
<div class="row">
|
||||
<div class="col-lg-12 cse">
|
||||
{{ partial "google-cse.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user