<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 標簽插件(Tag) 標簽插件幫助開發者在文章中快速插入內容。 ## 概要 ``` hexo.extend.tag.register(name, functionargs, content{}, options); ``` 標簽函數會傳入兩個參數:`args` 和 `content`,前者代表開發者在使用標簽插件時傳入的參數,而后者則是標簽插件所覆蓋的內容。 從 Hexo 3 開始,因為新增了非同步渲染功能,而改用 [Nunjucks](http://mozilla.github.io/nunjucks/) 作為渲染引擎,其行為可能會與過去使用的 [Swig](http://paularmstrong.github.io/swig/) 有些許差異。 ## 選項 ### ends 使用結束標簽,此選項默認為 `false`。 ### async 開啟非同步模式,此選項默認為 `false`。 ## 范例 ### 沒有結束標簽 插入 Youtube 影片。 ``` hexo.extend.tag.register('youtube'functionargs{ var0 return'<div class="video-container"><iframe width="560" height="315" src="http://www.youtube.com/embed/''" frameborder="0" allowfullscreen></iframe></div>' }); ``` ### 有結束標簽 插入 pull quote。 ``` hexo.extend.tag.register('pullquote'functionargs, content{ var' ' return'<blockquote class="pullquote''">''</blockquote>' }, {ends: true ``` ### 非同步渲染 插入文件。 ``` varrequire'hexo-fs' varrequire'path' hexo.extend.tag.register('include_code'functionargs{ var0 var returnfunctioncontent{ return'<pre><code>''</code></pre>' });}, {asynctrue ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看