ohroy / hexo-neat

auto Minify html、js、css and make it neat
74 stars 11 forks source link

The neat plugin failed to render HTML with the Pug theme in Butterfly when rendering articles with pictures #18

Open slblog-github opened 4 years ago

slblog-github commented 4 years ago

The neat plugin failed to render HTML with the Pug theme in Butterfly when rendering articles with pictures The error is as follows: `ERROR Render HTML failed: 2020/如何白嫖免费域名/index.html Error: Parse Error:
在方框里输入你想要的域名(带后缀哦)
后缀类型:.tk,.ml,.ga,.gq,.cf
这边用dodola.ml举例子

点击完成,稍等一会儿他就会跳转至下一步
网站加载可能稍慢
接着点击

将3 Months @ FREE改为12 Months @ FREE
PS:Use Dns代表自定义DNS
Forward this domain代表将域名跳转至某域名
当这一步做好后点击Continue
接下来会跳转至

在Enter Your Email Address填写你的域名
然后点击 Verify My Email Address
这时候Freenom将会给你发一封邮件
在邮件内部找到Verify My Email Address
点击一下,就会跳转至一个页面,下面让你填写真实信息,推荐和自己IP一样,否则可能结算报错。
填写 好后将下面的小方块打上勾,点击下一步(应该是的)
然后跳转至一个页面,看看上面有没有Error之类的报 错,如果没有,恭喜你,注册成功!
下面是修改DNS教程
打开https://my.freenom.com/clientarea.php?action=domains
找到你刚才嫖的域名点击后面的Manage Domain
然后找到Management Tools-Nameserver
选择Use custom nameservers(enter below)
将下面的Nameserver改成你想用的DNS
这时候一年 的域名就白嫖完成啦~
续费也是免费的哦!

PS:白嫖的域名现在无法使用CF啦(无法解析!)

文章作者: 失踪的SuperのLove
文章链接: https://www.slblog.ga/2020/%E5%A6%82%E4%BD%95%E7%99%BD%E5%AB%96%E5%85%8D%E8%B4%B9%E5%9F%9F%E5%90%8D/index.html
版权声 明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请 注明来自 SuperのLove's blog

评论

    <script>
    $('a').each(function() {
      const $this = $(this);
      const href = $this.attr('href');
      if (href && href.match('^((http|https|thunder|qqdl|ed2k|Flashget|qbrowser|ftp|rtsp|mms)://)')) {
        const strs = href.split('/');
        if (strs.length >= 3) {
            const host = strs[2];
            if (host !== '' || window.location.host) {
                $this.attr('href', '/go.html?u='+Base64.encode(href)+'').attr('rel', 'external nofollow noopener noreferrer');
                if (true) {
                    $this.attr('target', '_blank');
                }
            }
        }
      }
    });
    </script></body></html>
at new HTMLParser (D:\Hexo\node_modules\html-minifier\src\htmlparser.js:236:13)
at minify (D:\Hexo\node_modules\html-minifier\src\htmlminifier.js:945:3)
at exports.minify (D:\Hexo\node_modules\html-minifier\src\htmlminifier.js:1294:10)
at Hexo.logic_html (D:\Hexo\node_modules\hexo-neat\lib\filter.js:28:18)
at Hexo.tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23)
at Hexo.<anonymous> (D:\Hexo\node_modules\bluebird\js\release\method.js:15:34)
at D:\Hexo\node_modules\hexo\lib\extend\filter.js:62:52
at tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23)
at Object.gotValue (D:\Hexo\node_modules\bluebird\js\release\reduce.js:166:18)
at Object.gotAccum (D:\Hexo\node_modules\bluebird\js\release\reduce.js:155:25)
at Object.tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\Hexo\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (D:\Hexo\node_modules\bluebird\js\release\promise.js:604:18)       
at Promise._settlePromise0 (D:\Hexo\node_modules\bluebird\js\release\promise.js:649:10)      
at Promise._settlePromises (D:\Hexo\node_modules\bluebird\js\release\promise.js:729:18)      
at _drainQueueStep (D:\Hexo\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (D:\Hexo\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (D:\Hexo\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (D:\Hexo\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:456:21)

FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html Error: Parse Error: <img class="avatar-img" src= data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs= data-src="https://cdn.slblog.ga/pic/logo.png" onerror="onerror=null,src="/img/friend_404.gif"" alt="avatar">



评论
avatar
失踪的SuperのLove
一个B站UP主的博客
公告
本次大改切换了渲染器为PUG、切换了主题为Butterfly
网站资讯
文章数目 :
6
已运行时间 :
本站总字数 :
1.3k
本站访客数 :
本站总访问量 :

    <script>
    $('a').each(function() {
      const $this = $(this);
      const href = $this.attr('href');
      if (href && href.match('^((http|https|thunder|qqdl|ed2k|Flashget|qbrowser|ftp|rtsp|mms)://)')) {
        const strs = href.split('/');
        if (strs.length >= 3) {
            const host = strs[2];
            if (host !== '' || window.location.host) {
                $this.attr('href', '/go.html?u='+Base64.encode(href)+'').attr('rel', 'external nofollow noopener noreferrer');
                if (true) {
                    $this.attr('target', '_blank');
                }
            }
        }
      }
    });
    </script></body></html>
at new HTMLParser (D:\Hexo\node_modules\html-minifier\src\htmlparser.js:236:13)
at minify (D:\Hexo\node_modules\html-minifier\src\htmlminifier.js:945:3)
at exports.minify (D:\Hexo\node_modules\html-minifier\src\htmlminifier.js:1294:10)
at Hexo.logic_html (D:\Hexo\node_modules\hexo-neat\lib\filter.js:28:18)
at Hexo.tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23)
at Hexo.<anonymous> (D:\Hexo\node_modules\bluebird\js\release\method.js:15:34)
at D:\Hexo\node_modules\hexo\lib\extend\filter.js:62:52
at tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23)
at Object.gotValue (D:\Hexo\node_modules\bluebird\js\release\reduce.js:166:18)
at Object.gotAccum (D:\Hexo\node_modules\bluebird\js\release\reduce.js:155:25)
at Object.tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\Hexo\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (D:\Hexo\node_modules\bluebird\js\release\promise.js:604:18)       
at Promise._settlePromise0 (D:\Hexo\node_modules\bluebird\js\release\promise.js:649:10)      
at Promise._settlePromises (D:\Hexo\node_modules\bluebird\js\release\promise.js:729:18)      
at _drainQueueStep (D:\Hexo\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (D:\Hexo\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (D:\Hexo\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (D:\Hexo\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:456:21)`
cooper1x commented 4 years ago

一样的问题

slblog-github commented 4 years ago

Solved, the problem is caused by the Butterfly theme