2022-09-11 11:14:54 +08:00
|
|
|
{{ partialCached "scripts/global.html" . }}
|
|
|
|
|
2022-09-19 21:57:23 +08:00
|
|
|
{{ if or .Params.math .Site.Params.math }}
|
|
|
|
{{ partialCached "_thirdparty/others/math.html" . }}
|
2022-07-02 22:22:46 +08:00
|
|
|
{{ end }}
|
2022-09-11 11:14:54 +08:00
|
|
|
|
2022-09-19 21:57:23 +08:00
|
|
|
{{ if .Params.mermaid }}
|
|
|
|
{{ partialCached "_thirdparty/others/mermaid.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
|
2022-10-23 18:36:10 +08:00
|
|
|
{{ if .Site.Params.footer.translate }}
|
|
|
|
<script type="text/javascript">
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
const element = '#gtranslate';
|
|
|
|
if (!NexT.utils.checkDOMExist(element)) return;
|
|
|
|
NexT.utils.lazyLoadComponent(element).then(() => {
|
|
|
|
window.translateelement_styles='/css/google-translate.min.css';
|
|
|
|
NexT.utils.getScript('/js/third-party/google-translate.min.js');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{{ end }}
|