syntax highlight + TOC scroll + other content parsing improvements

This commit is contained in:
NGPixel
2016-08-20 23:28:53 -04:00
parent 1ad03a3d1f
commit e94abf9466
13 changed files with 114 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
nav.nav.has-shadow
nav.nav.has-shadow.stickyscroll
.nav-left
a.nav-item.is-brand(href='/')
img(src='/favicons/android-icon-96x96.png', alt='Wiki')

View File

@@ -25,18 +25,19 @@ block content
a(href='/') Home
li
a(href='/account') Account
.box
.box.stickyscroll(data-margin-top=70)
aside.menu(style= { 'min-width': '200px' })
p.menu-label
| Contents
ul.menu-list
a(href='#root', title='Start') Start
+tocMenu(pageData.tree)
.column
h1.title= pageData.title
h2.subtitle
| Primary bold subtitle
.content
h1.title#title= pageData.title
if pageData.subtitle
h2.subtitle= pageData.subtitle
.content.mkcontent
!= pageData.html