Some minor fixes

This commit is contained in:
Mimi 2020-08-22 23:39:49 +08:00
parent c809e2d3ab
commit ae9e1407ea
4 changed files with 7 additions and 10 deletions

View File

@ -9,8 +9,7 @@
gtag('config', '{{ theme.google_analytics.tracking_id }}');
}
</script>
{%- endif %}
{%- if theme.google_analytics.only_pageview %}
{%- else %}
<script>
function sendPageView() {
if (CONFIG.hostname !== location.hostname) return;

View File

@ -43,6 +43,7 @@
})();
} else {
MathJax.startup.document.state(0);
MathJax.typesetClear();
MathJax.texReset();
MathJax.typeset();
}

View File

@ -11,7 +11,6 @@ module.exports = ctx => function(args, content) {
const tabName = args[0];
const tabActive = Number(args[1]) || 0;
const matches = [];
let match;
let tabId = 0;
let tabNav = '';
@ -20,13 +19,8 @@ module.exports = ctx => function(args, content) {
if (!tabName) ctx.log.warn('Tabs block must have unique name!');
while ((match = tabBlock.exec(content)) !== null) {
matches.push(match[1]);
matches.push(match[2]);
}
for (let i = 0; i < matches.length; i += 2) {
let [caption = '', icon = ''] = matches[i].split('@');
let postContent = matches[i + 1];
let [caption = '', icon = ''] = match[1].split('@');
let postContent = match[2];
postContent = ctx.render.renderSync({ text: postContent, engine: 'markdown' }).trim();

View File

@ -13,9 +13,12 @@
}
}
// Flexbox layout makes it possible to reorder the child
// elements of .footer-inner through the `order` CSS property
.footer-inner {
box-sizing: border-box;
text-align: center;
flex-column();
main-container();
}