# Math Formulas Render Support # Warning: Please install / uninstall the relevant renderer according to the documentation. # See: https://theme-next.js.org/docs/third-party-services/math-equations # Server-side plugin: https://github.com/next-theme/hexo-filter-mathjax math: # Default (false) will load mathjax / katex script on demand. # That is it only render those page which has `mathjax: true` in front-matter. # If you set it to true, it will load mathjax / katex srcipt EVERY PAGE. every_page:true
# PDF tag # NexT will try to load pdf files natively, if failed, pdf.js will be used. # So, you have to install the dependency of pdf.js if you want to use pdf tag and make it available to all browsers. # Dependencies: https://github.com/next-theme/theme-next-pdf pdf: enable:true # Default height height:1000px
md:
1
{% pdf https://example.com/sample.pdf 600px %}
呈现效果:
Note便签
在Next的主题配置文件里:
1 2 3 4 5 6 7 8 9 10 11 12
# Note tag (bs-callout) note: # Note tag style values: # - simple bs-callout old alert style. Default. # - modern bs-callout new (v2-v3) alert style. # - flat flat callout style with background, like on Mozilla or StackOverflow. # - disabled disable all CSS styles import of note tag. style:flat icons:true # Offset lighter of background in % for modern and flat styles (modern: -12 | 12; flat: -18 | 6). # Offset also applied to label tag variables. This option can work with disabled note tag. light_bg_offset:0
Unique name : Unique name of tabs block tag without comma. Will be used in #id's as prefix for each tab with their index numbers. If there are whitespaces in name, for generate #id all whitespaces will replaced by dashes. Only for current url of post/page must be unique! [index] : Index number of active tab. If not specified, first tab (1) will be selected. If index is -1, no tab will be selected. It's will be something like spoiler. Optional parameter. [Tab caption] : Caption of current tab. If not caption specified, unique name with tab index suffix will be used as caption of tab. If not caption specified, but specified icon, caption will empty. Optional parameter. [@icon] : FontAwesome icon name (without 'fa-' at the begining). Can be specified with or without space; e.g. 'Tab caption @icon' similar to 'Tab caption@icon'. Optional parameter.
注意这里的<!-- tab -->并非省略,而是起到了标志的作用;此处的逗号是英文格式。
写法1:
参数默认,展开一项:
1 2 3 4 5 6 7 8 9 10 11
{% tabs First unique name %} <!-- tab --> This is Tab 1 <!-- endtab --> <!-- tab --> This is Tab 2 <!-- endtab --> <!-- tab --> This is Tab 3 <!-- endtab --> {% endtabs %}