<%- partial('_partial/post-cover') %>

<%
var isTocEnable = theme.toc.enable && String(page.toc) !== 'false';
var containerClass = isTocEnable ? 'post-container' : 'container';
%>

<main class="<%- containerClass %> content">

    <% if (isTocEnable) { %>
        <%- partial('_partial/post-detail-toc.ejs') %>
    <% } else { %>
        <%- partial('_partial/post-detail.ejs') %>
    <% } %>

</main>

<% if (theme.mathjax.enable && page.mathjax) { %>
    <script src="<%- theme.mathjax.cdn %>"></script>
    <script>
        MathJax.Hub.Config({
            tex2jax: {inlineMath: [['$', '$'], ['\(', '\)']]}
        });
    </script>
<% } %>