Skip to content

Commit

Permalink
Add doc title to TOC panel
Browse files Browse the repository at this point in the history
Signed-off-by: lucperkins <[email protected]>
  • Loading branch information
lucperkins committed Jan 9, 2019
1 parent fae2914 commit 1571d75
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions assets/sass/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ $section-padding: 2rem
+desktop
width: $desktop

.toc-title
font-size: 1.5rem
font-weight: 400
line-height: 100%
margin-bottom: 1rem
color: $primary


.is-hero-logo
+logo(60%, 30%)
margin-bottom: 1.75rem
Expand Down
4 changes: 4 additions & 0 deletions layouts/partials/docs/toc.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{{ $toc := .TableOfContents }}
{{ with $toc }}
<div class="toc dashboard-panel is-small has-background-black">
<p class="toc-title">
{{ $.Title }}
</p>

{{ . }}
</div>
{{ end }}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Target":"css/style.9ec8e565ac6a657e6839704dcedf552879eaf271b53419ce54389675396bf2c6.css","MediaType":"text/css","Data":{"Integrity":"sha256-nsjlZaxqZX5oOXBNzt9VKHnq8nG1NBnOVDiWdTlr8sY="}}
{"Target":"css/style.c211a5c25b3e50a6ca8338c883e1c80089107ec9de76fea9eb283e33b68070dc.css","MediaType":"text/css","Data":{"Integrity":"sha256-whGlwls+UKbKgzjIg+HIAIkQfsnedv6p6yg+M7aAcNw="}}

0 comments on commit 1571d75

Please sign in to comment.