Добавление контейнера div в Jade mixin
Я пытаюсь добавить обертку вокруг тегов h2 & p под названием.desc в пост-миксин keystonejs. Но каждый раз, когда я добавляю это, я получаю следующую ошибку:
Sorry, an error occurred loading the page (500)
blog.jade:5
3| mixin post(post)
4| .post(data-ks-editable=editable(user, { list: 'Post', id: post.id }))
>5| .desc
6| h2.entry-title=post.title
7| p.lead.text-muted.entry-utility Posted
8| if post.publishedDate
Invalid indentation, you can use tabs or spaces but not both
Я пытаюсь добавить оболочку.desc к содержимому:
mixin post(post)
.post(data-ks-editable=editable(user, { list: 'Post', id: post.id }))
.desc
h2.entry-title=post.title
p.lead.text-muted.entry-utility Posted
if post.publishedDate
| #{post._.publishedDate.format('MMMM Do, YYYY')}
if post.categories && post.categories.length
| in
each cat, i in post.categories
a(href='/category/' + cat.key)= cat.name
if post.image.exists
img(src=post._.image.fit(160,160)).img.pull-right
p!= post.content.brief
и вот как обычно выглядит миксин:
mixin post(post)
.post(data-ks-editable=editable(user, { list: 'Post', id: post.id }))
h2.entry-title=post.title
p.lead.text-muted.entry-utility Posted
if post.publishedDate
| #{post._.publishedDate.format('MMMM Do, YYYY')}
if post.categories && post.categories.length
| in
each cat, i in post.categories
a(href='/category/' + cat.key)= cat.name
if post.image.exists
img(src=post._.image.fit(160,160)).img.pull-right
p!= post.content.brief
Я использую phpstorm и интервал установлен только для вкладок.