Invalid indentation, you can use tabs or spaces but not both jade
<p>i have following jade code which works fine </p>

<pre><code>div.container
  h3.entry-title(style='margin-top:25px;') #{result.post_title}
  div      
    p.text-left.pst &lt;i class="fa fa-calendar"&gt;&lt;/i&gt; #{result.post_date}  
  div.panel
     !{result.post_content}
    -if(typeof userType !== 'undefined' &amp;&amp; userType=='admin')
        a.btn.red.marginTop(href='/ebs' ) Cancel               

 div.page-footer
    div.page-footer-inner
        Copyright Copyright All rights reserved.  
</code></pre>

<p>but when i try to insert if statement like below it gives me the indentation error</p>

<pre><code>  div.container
  h3.entry-title(style='margin-top:25px;') #{result.post_title}
  div   
   -if(result.post_date!='-1')  
    p.text-left.pst &lt;i class="fa fa-calendar"&gt;&lt;/i&gt; #{result.post_date}  
  div.panel
     !{result.post_content}
    -if(typeof userType !== 'undefined' &amp;&amp; userType=='admin')
        a.btn.red.marginTop(href='/ebs' ) Cancel               

 div.page-footer
    div.page-footer-inner
        Copyright Copyright  All rights reserved.
</code></pre>