Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chagratt
bwog-notes-v2
Commits
b0526b5f
Commit
b0526b5f
authored
May 05, 2020
by
wbar
Browse files
pages template : isolate TOC in div + add real title instead of CSS hack to display text
parent
912a4a73
Changes
2
Hide whitespace changes
Inline
Side-by-side
layouts/pages/single.html
View file @
b0526b5f
...
@@ -5,7 +5,10 @@
...
@@ -5,7 +5,10 @@
</header>
</header>
{{ with .Params.show_toc }}
{{ with .Params.show_toc }}
{{ $.TableOfContents }}
<div
id=
"toc"
>
<h2>
Table des matières
</h2>
{{ $.TableOfContents }}
</div>
{{ end }}
{{ end }}
{{ .Content }}
{{ .Content }}
...
...
static/css/style.css
View file @
b0526b5f
...
@@ -102,5 +102,5 @@ ul li a[href*='framapiaf.org']:before {content: url('/images/icons/masto.png');
...
@@ -102,5 +102,5 @@ ul li a[href*='framapiaf.org']:before {content: url('/images/icons/masto.png');
.archives-list
{
padding-left
:
0px
;
list-style-type
:
none
;}
.archives-list
{
padding-left
:
0px
;
list-style-type
:
none
;}
#
TableOfContents
{
font-size
:
90%
;
background-color
:
#111
;
padding
:
0.5em
0
0.5em
1.0em
;
}
#
toc
{
font-size
:
90%
;
background-color
:
#111
;
padding
:
0.5em
0
0.5em
1.0em
;
}
#
TableOfContents
::before
{
content
:
"Sommaire"
;}
#
toc
h2
{
margin-top
:
0px
;}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment