由PTT熱門看板選取熱門文章,自動節錄生成模擬新聞。
此github為網頁生成部分。
由記者快抄後端生成markdown檔至_posts
資料夾後
再根據markdown檔產生網頁(markdown格式請參閱brach gh-pages中的_posts
資料夾)
使用Jekyll套件生成網頁
版面配置目前暫時基於webjeda修改
於gh-pages分支中有 _posts
資料夾以供測試,此資料夾不會更新。
基礎執行指令如下:
bundle exec jekyll build # 生成網頁於_site資料夾
bundle exec jekyll serve --watch # 於local端(http://127.0.0.1:4000)架設網站
bundle exec jekyll serve --host your_server --watch # 於你的機器上(your_server:4000)架設網站
_pages
代替_posts
,以解決預設_posts
分類markdown檔名需加日期的問題js
、_sass
、_includes
、_layouts
等精簡Auto-generate news articles from popular posts in PTT forum.
This github is the website-generation part.
Powered by Jekyll
Layout based on webjeda
In branch gh-pages we got _posts
folder for you to test layouts, the examples in that folder will not update.
To install the related toolkits, please follow the guide in:Jekyll, Bundler
Basic running commands are:
bundle exec jekyll build # generate _site
bundle exec jekyll serve --watch # active a website server in http://127.0.0.1:4000
bundle exec jekyll serve --host your_server --watch # active a website server in your_server:4000