Commit graph

370 commits

Author SHA1 Message Date
Vincent Prouillet d2b6cbde2f Update jinja2 syntax to include html syntax 2017-05-20 22:53:47 +09:00
Vincent Prouillet 26159609d2 Add a rendering module 2017-05-17 21:53:26 +09:00
Vincent Prouillet b2a63e2ada Add a get_url global fn
Close #67
2017-05-17 19:06:11 +09:00
Vincent Prouillet 59b4b07cb3 Use Path for fs utils rather than AsRef 2017-05-16 14:54:50 +09:00
Vincent Prouillet be784bbaa3 Refactor taxonomies
Fix #66
2017-05-16 13:39:42 +09:00
Vincent Prouillet 056bf55881 Add a FileInfo struct to hold some common data about the files 2017-05-15 19:53:39 +09:00
Vincent Prouillet d9ed7df118 Minify livereload.js 2017-05-15 17:11:14 +09:00
Vincent Prouillet b2c3adff37 Move page tests inside content mod 2017-05-15 17:02:38 +09:00
Vincent Prouillet 4f27dc2f18 Move find_content_components to content mod 2017-05-15 16:26:11 +09:00
Vincent Prouillet 54fc1055ad v0.0.5 2017-05-15 15:57:42 +09:00
Vincent Prouillet 86b6bd80c3 Fix SectionFrontMatter default 2017-05-15 14:59:14 +09:00
Vincent Prouillet 1aaf5c1beb Update some deps 2017-05-15 14:44:23 +09:00
Vincent Prouillet 9a7244b35f Merge pull request #65 from Keats/improvements
Improvements
2017-05-15 12:56:13 +09:00
Vincent Prouillet c35b76406e Move stuff around a bit more 2017-05-15 12:23:19 +09:00
Vincent Prouillet 07f11755d6 Create a content mod 2017-05-14 14:14:58 +09:00
Vincent Prouillet 09d5e74a65 Smarter rebuild on content change
Fix #59
2017-05-13 22:37:02 +09:00
Vincent Prouillet 76527801ce Move render_alias to templates mod 2017-05-13 13:05:38 +09:00
Vincent Prouillet 299c3c8b22 Separate Page and Section front matter into 2 structs
Fix #61
2017-05-13 13:01:39 +09:00
Vincent Prouillet bb3cba1ad5 Move adding filters to the templates mod 2017-05-13 11:45:29 +09:00
Vincent Prouillet 72c626ee55 Move all tera stuff into a templates mod 2017-05-12 23:27:22 +09:00
Vincent Prouillet 2fb4e2b01d Move all printing in cli to the console file 2017-05-12 23:10:21 +09:00
Vincent Prouillet 2a150299f3 Move cli code to bin directory 2017-05-12 22:59:41 +09:00
Vincent Prouillet 5ac5625de1 Default to not generating tags and categories page
Also add a Site::render_section method
2017-05-12 22:54:13 +09:00
Vincent Prouillet ab3e04c9e5 Do not count the index as a section when printing 2017-05-12 21:30:59 +09:00
Vincent Prouillet c791dffae5 Use livereload properly. Fix #10 2017-05-12 21:15:50 +09:00
Vincent Prouillet aee1552619 Add Jinja2 syntax 2017-05-12 20:28:26 +09:00
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 aa7ddef123 Update toml 2017-05-12 14:01:10 +09:00
Vincent Prouillet c07d875abb Update elm syntax 2017-05-11 16:16:09 +09:00
Vincent Prouillet 939b699518 Clippy 2017-05-11 15:45:19 +09:00
Vincent Prouillet 18ccb4b79e Merge pull request #62 from Keats/smarter
Slighty smarter rebuild on page content change
2017-05-11 15:43:20 +09:00
Vincent Prouillet 1e0744601e Slighty smarter rebuild on page content change 2017-05-11 14:53:52 +09:00
Vincent Prouillet 40b5a0547a Update changelog 2017-05-11 14:12:02 +09:00
Vincent Prouillet 8821ec17d7 Merge pull request #56 from Keats/get_page
Add global get_page tera fn
2017-05-10 12:44:08 +09:00
Vincent Prouillet 6f5e008853 Add global get_page tera fn 2017-05-10 12:17:15 +09:00
Vincent Prouillet 08bb1c8774 Merge pull request #60 from Keats/sections
Sections
2017-05-10 12:05:01 +09:00
Vincent Prouillet 20989b9f22 Update README 2017-05-09 23:10:27 +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 5bfe1c213b Clippy run 2017-05-08 17:39:31 +09:00
Vincent Prouillet 0dcca4e271 Update changelog 2017-05-03 21:30:17 +09:00
Vincent Prouillet c9c6b4c808 Merge pull request #55 from Keats/pagination2
Pagination
2017-05-03 21:28:19 +09:00
Vincent Prouillet a3318d4b56 Pagination 2017-05-03 20:00:50 +09:00
Vincent Prouillet 27287a50c3 Do not unwrap on watchers in serve cmd 2017-05-01 18:11:18 +09:00
Vincent Prouillet fc960c1771 Do not populate prev/next on section index rendering 2017-05-01 17:33:20 +09:00