page.pug 659 Bytes
Newer Older
1
extends master.pug
2 3

block head
4 5 6 7
  if injectCode.css
    style(type='text/css')!= injectCode.css
  if injectCode.head
    != injectCode.head
8 9

block body
10
  #root
11 12 13 14 15
    page(
      locale=page.localeCode
      path=page.path
      title=page.title
      description=page.description
16
      :tags=page.tags
17 18 19
      created-at=page.createdAt
      updated-at=page.updatedAt
      author-name=page.authorName
20
      :author-id=page.authorId
21
      :is-published=page.isPublished.toString()
22
      :toc=page.toc
Nicolas Giard's avatar
Nicolas Giard committed
23
      :page-id=page.id
Nick's avatar
Nick committed
24
      :sidebar=sidebar
25
      )
26 27
      template(slot='contents')
        div(v-pre)!= page.render
28 29
  if injectCode.body
    != injectCode.body