Commit graph

53 commits

Author SHA1 Message Date
Vincent Prouillet 8711c9a3c0 Change Site::section and fix empty paginated sections 2017-05-12 20:24:44 +09:00
Vincent Prouillet c565f10cb3 Let sections have their own body 2017-05-12 18:05:00 +09:00
Vincent Prouillet 005990a928 Create a default index section if there is none 2017-05-12 16:30:01 +09:00
Vincent Prouillet 939b699518 Clippy 2017-05-11 15:45:19 +09:00
Vincent Prouillet 1e0744601e Slighty smarter rebuild on page content change 2017-05-11 14:53:52 +09:00
Vincent Prouillet 6f5e008853 Add global get_page tera fn 2017-05-10 12:17:15 +09:00
Vincent Prouillet c989ab607c Add orphan in print notice and fix orphan with assets and url 2017-05-09 21:47:02 +09:00
Vincent Prouillet f3edef2640 Warn about ignored pages 2017-05-09 21:12:10 +09:00
Vincent Prouillet 7099fc8ac2 Add frontmatter flag to not render a section
Useful if you're creating a section only to access it in the index but
do not want a section page for it
2017-05-09 20:39:42 +09:00
Vincent Prouillet 4df9752b54 Pass the <directory, section> to the index 2017-05-09 20:24:44 +09:00
Vincent Prouillet 2d4cba5b2d Make index a section like any other 2017-05-08 19:43:31 +09:00
Vincent Prouillet a3318d4b56 Pagination 2017-05-03 20:00:50 +09:00
Vincent Prouillet fc960c1771 Do not populate prev/next on section index rendering 2017-05-01 17:33:20 +09:00
Vincent Prouillet 6e9a9eaa1f Fix prev/next 2017-05-01 17:10:22 +09:00
Vincent Prouillet 566f4e6919 Fix rebuild content logic to include sections 2017-05-01 16:31:23 +09:00
Vincent Prouillet a0b70bfc7e Allow sorting pages by order and date
Closes #14, #43
2017-05-01 14:46:01 +09:00
Vincent Prouillet dd9bab3142 Fix XML template overriding 2017-04-28 16:18:18 +09:00
Vincent Prouillet df51e4d8b6 Add a special section for home page 2017-04-22 14:36:02 +09:00
Vincent Prouillet fb7b5646ca Only load templates ending by .html
Avoid issues with temp files from some editors
2017-04-22 11:44:57 +09:00
Vincent Prouillet 6036927c19 Add more sublime syntaxes
Also fix gutenberg serve that has been broken (not
re-rendering content) for quite some time now.
2017-04-21 16:24:09 +09:00
Erle Carrara 9acb70442f Copy only modified files in static directory (#27)
Copy only static files that triggered the change notification
2017-04-18 14:07:02 +09:00
Vincent Prouillet 04da527e53 Render anchor link 2017-04-10 19:58:44 +09:00
Vincent Prouillet 7aeebcc981 Add current_url and current_path
To every templates, useful when doing
navigation to know which link is currently
active
2017-04-06 14:40:46 +09:00
Vincent Prouillet afc4a81ebf Fix rss link and description 2017-04-06 11:21:37 +09:00
Vincent Prouillet b86a30fb78 Add markdown and base64 filters 2017-04-04 16:08:40 +09:00
Vincent Prouillet d03974270d Add some default shortcodes 2017-03-29 23:32:40 +09:00
Vincent Prouillet a6b8caf6de Add shortcodes 2017-03-29 21:45:41 +09:00
Vincent Prouillet f4db5180ba Add sections to index page context 2017-03-27 11:48:13 +09:00
Vincent Prouillet 870fbbcd0f Allow selecting a config file other than config.toml 2017-03-25 13:18:15 +09:00
Vincent Prouillet d05a1559d9 Add prev/next hack 2017-03-23 13:10:00 +09:00
Vincent Prouillet 8b5183d4ad Partial reloading of content on change 2017-03-21 16:57:00 +09:00
Vincent Prouillet b0cc1ac042 Add robots.txt 2017-03-20 21:40:03 +09:00
Vincent Prouillet eb6fa3c314 Override base_url in serve cmd 2017-03-20 19:20:16 +09:00
Vincent Prouillet 540bbcc1b6 Add flags in config to disable tags/categories generation 2017-03-20 18:36:24 +09:00
Vincent Prouillet f63ec475eb Add categories and tags to sitemap 2017-03-20 12:42:43 +09:00
Vincent Prouillet fd10e77e39 Sort section pages after parsing 2017-03-19 20:34:02 +09:00
Vincent Prouillet d8995c156c Add sections to sitemap 2017-03-19 19:40:31 +09:00
Vincent Prouillet cd70aac065 Clippy run 2017-03-19 19:29:43 +09:00
Vincent Prouillet 7e496878e5 Sections
Parse _index.md files as sections and render them
2017-03-19 19:20:24 +09:00
Vincent Prouillet 4e99389566 disable_rss -> generate_rss in config 2017-03-12 13:01:17 +09:00
Vincent Prouillet dde9af3efd Copy assets found in content folders 2017-03-12 12:54:57 +09:00
Vincent Prouillet eaa09999fe Clippy run 2017-03-10 22:19:36 +09:00
Vincent Prouillet 2d26bf038c Force refresh on content/template change and various fixes 2017-03-10 21:36:43 +09:00
Vincent Prouillet a57baf2934 Refactor serve/rebuilding a bit 2017-03-10 20:39:58 +09:00
Vincent Prouillet 09ade9573c Use a lazy_static version of tera templates 2017-03-09 16:46:38 +09:00
Vincent Prouillet 57fd159025 Copy static directory and live reload changes to it 2017-03-09 16:34:12 +09:00
Vincent Prouillet 478e7054de More precise time and show what changed 2017-03-08 14:00:54 +09:00
Vincent Prouillet d43d738a4f RSS feed generation 2017-03-07 16:43:27 +09:00
Vincent Prouillet fa7fc6e49b Render categories and tags 2017-03-07 15:01:20 +09:00
Vincent Prouillet 434a7fcde8 Permalinks and sitemap 2017-03-07 12:11:59 +09:00