記者快抄

由PTT熱門看板選取熱門文章,自動節錄生成模擬新聞。

此github為網頁生成部分。

記者快抄後端生成markdown檔至_posts資料夾後

再根據markdown檔產生網頁(markdown格式請參閱brach gh-pages中的_posts資料夾)

網頁生成

使用Jekyll套件生成網頁

版面配置目前暫時基於webjeda修改

於gh-pages分支中有 _posts 資料夾以供測試,此資料夾不會更新。

安裝執行

相關套件安裝方式請參閱官網:Jekyll, Bundler

基礎執行指令如下:

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)架設網站

Issues

  • 更好看與合理的Layout
  • 在jekyll框架下,以_pages代替_posts,以解決預設_posts分類markdown檔名需加日期的問題
  • 不同大小圖片在index頁的呈現調整
  • 當內文有多圖時的呈現方式
  • 資料夾配置與js_sass_includes_layouts等精簡
  • 分類項目下,進到post頁面後的上下篇文目前未依照分類

CopyNews

Auto-generate news articles from popular posts in PTT forum.

This github is the website-generation part.

Website Page Generation

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.

Install and Run

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