Hexo Blog - Live My Life Theme
過程中遇到的小問題
當吃到 INFO Validating config WARN Deprecated config detected: “external_link“ with a Boolean
時
把_config.yml
裡的
1 | external_link: |
改成
1 | external_link: |
當吃到 lineno
column
filename
的 Warning
1 | (node:117248) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency |
原因如這裡
說白一點就是nodejs@14版本太高的問題,大部分我看到的文章都是要你降級程12版。
但我覺得太毒瘤太不資工正確了。
這是我所查到有用的三篇文章:
延續第三篇搭配第二篇,把路徑node_module\nib\node_module\stylus\lib\nodes\index.js
裡的
1 | export.true = new export.Boolean(true); |
一起註解掉
1 | /*export.true = new export.Boolean(true); |
想把每一篇文章底部的socialshare改成自己要的
像我,我只想要twitter
facebook
google
mail
首先,先去themes/livemtlife/layout/partial/socialshare.ejs
中把<div>
裡的
1 | <div class="social-share" data-initialized="true" data-disabled="tencent ,douban ,qzone ,linkedin ,facebook ,google ,diandian" data-wechat-qrcode-helper="" align="center"> |
中的 google
和 facebook
刪掉,因為它原本把兩者的link都disable掉了。(PS: data-wechat-qrcode-helper=""
也可以砍掉,因為我等一下會把wechat
那段 <li></li>
砍掉
然後,將
1 | <!-- 刪掉 wechat weibo QQ --> |
改成
1 | <!-- 新增 google facebook --> |
不想用不蒜子統計
到themes/livemylife/layout/partial/header.ejs
把以下的<span></span>
給註記掉。
1 | <!-- 不蒜子统计 start --> |
If you like this blog or find it useful for you, you are welcome to comment on it. You are also welcome to share this blog, so that more people can participate in it. If the images used in the blog infringe your copyright, please contact the author to delete them. Thank you !