zola/docs/content/documentation/content
Philip Daniels 3e1221064b Filter ignored content in page.rs.
* Add ignored_content to the Config structure.
* Use the GlobSet crate to parse the glob patterns into a matcher, which
  is created once at program initialization. If there are no patterns in
  ignored_content, an empty globber is created, which excludes no files.
  This is consistent with the existing behaviour of Gutenberg, before
  this feature was added.
* Bail if there are any errors in the glob patterns.
* Add a call to the globber in page.rs to actually do the filtering.
* Update documentation.

A note on the Config structure
------------------------------
* I had to remove the PartialEq derive from the Config structure as it
  does not work for the GlobSet type. No harm is done, Config does not
  need to be PartialEq anyway, since there is no need to sort Configs.
* The implementation follows the pattern of the existing config settings
  in that it uses an Option<...>. This would appear unnecessary, in that
  an empty vec could be used as the default, but it appears to be needed
  by the TOML parsing. A better approach would be to use a separate
  SerializableConfig and map to/from a Config struct. This would also
  allow the elimination of most, if not all, of the other Options in
  the Config structure, but that ought to be another PR.
2018-02-25 15:15:51 +00:00
..
_index.md Working on site 2017-09-29 15:37:58 +09:00
linking.md Finishing up site (#131) 2017-10-19 13:48:50 +02:00
overview.md Filter ignored content in page.rs. 2018-02-25 15:15:51 +00:00
page.md Mention lack of quotes for dates in docs 2018-01-14 18:08:04 +01:00
section.md Move test_site and turn rebuild.rs into a component 2018-01-29 18:40:12 +01:00
shortcodes.md Properly parse shortcode arg value types 2017-10-26 17:03:26 +02:00
syntax-highlighting.md Update syntaxes 2018-01-02 18:14:26 +01:00
table-of-contents.md Finishing up site (#131) 2017-10-19 13:48:50 +02:00
tags-categories.md Fix tests and add taxonomies to changelog 2017-11-26 10:07:34 +01:00