Yu Hsuan Yen

Results 10 comments of Yu Hsuan Yen

@GingoBang I've solved the problem, you may check on my [site](http://beantech.org/2017/03/18/hexo-theme-beantech/)

@RanchoCooper @xchz 你好 我有找到相關的方法解決這個問題 可以在sidebar裡面加上這段程式碼,應該就可以有categories在sidebar ```ejs ``` 不過我也講一下我的最終版本 因為我個人喜歡比較簡潔加上有模組化的功能 所以我把版主的程式碼重新編排過 我的做法是把所有的sidebar功能拆成小的widget 例如:sidebar有featured-tags、short-about、recent-posts、friends-blog、archive、category等功能,我這裡把所有程式碼都拆成小的存成`_widget/xxx.ejs`,然後修改post.ejs、page.ejs把sidebar相關的程式碼copy成一個檔案存至`_partial/sidebar.ejs`做成模組化的方式 有興趣繼續研究的話可以看我修改後的版本 😄 [BeanTech Theme](http://beantech.org/2017/03/18/hexo-theme-beantech/#sidebar-settings) 謝謝指教

@zengAlex 抱歉,不是很清楚你的意思 你是說要新增about&archives在導航欄? 還是你要修改他的css呢

@xingchenfengn 如果是post的話可以在你的文章中新增`header-img:"path/to/picture"` for example: ~~~ yml --- title: {{ title }} subtitle: date: {{ date }} header-img: "path/to/picture" tags: --- ~~~

@paulyung541 @xchz 你們好 我想原本版主的意思應該是希望每篇文章有自己的背景圖,所以大家再新增post時會同步產生一個同名稱的文件夾,這時把想要的背景圖放到這個資料夾並且修改md檔的`header-img`就可以看到圖片了! 為了方便理解我這邊舉個例子: 1. 當你使用指令`hexo new post cool`這時 hexo 會同時創建 `cool.md` 以及 `cool/`這個檔案及同名稱的資料夾。 2. 這時將你想要的背景圖("cool-header.png")放到 `cool/` 裡面。 3. 這時修改 `cool.md`: ```yml --- title: {{ title }} subtitle: date:...

@wanghaiqian 我也是跟 @terencehyz 的方法一樣解決此問題喔

以下為小弟淺見,不訪參考看看 可以自己加 - layout/ private_post.ejs ~~~ejs ~~~ - scaffold/ private_post.md ~~~yml title: {{ title }} subtitle: private_post: true date: {{ date }} tags: ~~~ (因為幾乎都跟原來的post一樣,所以改起來應該比較輕鬆) 這時`hexo new private_post "your-title"`應該就可以了^__^

@huweihuang Good advise! Sorry for the late reply, I'll try to add this function after I finish my recent project. But if you can finish it before then, that will...

@grt1st Got it i'll try to finish it :smile: thanks for your suggestion

@grt1st Thanks I think both of the solutions are great, but I still prefer the first one 😛 (``). so I'll try to make it work. Glad you guys like...