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 }}');
|
gtag('config', '{{ theme.google_analytics.tracking_id }}');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{%- endif %}
|
{%- else %}
|
||||||
{%- if theme.google_analytics.only_pageview %}
|
|
||||||
<script>
|
<script>
|
||||||
function sendPageView() {
|
function sendPageView() {
|
||||||
if (CONFIG.hostname !== location.hostname) return;
|
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 {
|
} else {
|
||||||
MathJax.startup.document.state(0);
|
MathJax.startup.document.state(0);
|
||||||
|
MathJax.typesetClear();
|
||||||
MathJax.texReset();
|
MathJax.texReset();
|
||||||
MathJax.typeset();
|
MathJax.typeset();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,7 +11,6 @@ module.exports = ctx => function(args, content) {
|
|||||||
const tabName = args[0];
|
const tabName = args[0];
|
||||||
const tabActive = Number(args[1]) || 0;
|
const tabActive = Number(args[1]) || 0;
|
||||||
|
|
||||||
const matches = [];
|
|
||||||
let match;
|
let match;
|
||||||
let tabId = 0;
|
let tabId = 0;
|
||||||
let tabNav = '';
|
let tabNav = '';
|
||||||
@ -20,13 +19,8 @@ module.exports = ctx => function(args, content) {
|
|||||||
if (!tabName) ctx.log.warn('Tabs block must have unique name!');
|
if (!tabName) ctx.log.warn('Tabs block must have unique name!');
|
||||||
|
|
||||||
while ((match = tabBlock.exec(content)) !== null) {
|
while ((match = tabBlock.exec(content)) !== null) {
|
||||||
matches.push(match[1]);
|
let [caption = '', icon = ''] = match[1].split('@');
|
||||||
matches.push(match[2]);
|
let postContent = match[2];
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = 0; i < matches.length; i += 2) {
|
|
||||||
let [caption = '', icon = ''] = matches[i].split('@');
|
|
||||||
let postContent = matches[i + 1];
|
|
||||||
|
|
||||||
postContent = ctx.render.renderSync({ text: postContent, engine: 'markdown' }).trim();
|
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 {
|
.footer-inner {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
flex-column();
|
||||||
main-container();
|
main-container();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user