mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Some minor fixes
This commit is contained in:
parent
c809e2d3ab
commit
ae9e1407ea
@ -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;
|
||||
|
||||
1
layout/_third-party/math/mathjax.njk
vendored
1
layout/_third-party/math/mathjax.njk
vendored
@ -43,6 +43,7 @@
|
||||
})();
|
||||
} else {
|
||||
MathJax.startup.document.state(0);
|
||||
MathJax.typesetClear();
|
||||
MathJax.texReset();
|
||||
MathJax.typeset();
|
||||
}
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user