Skip to content

Commit

Permalink
Update di config to set inclde_base for frontmatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosbth committed Aug 14, 2018
1 parent ac74dd7 commit 09e7378
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
9 changes: 8 additions & 1 deletion REVISION.md
Expand Up @@ -3,7 +3,14 @@ Revision history



v1.2.1 (2018-08-10)
v1.2.* (2018-08-14)
-----------------------------------

* Update di config to set inclde_base for frontmatter.



v1.2.2 (2018-08-13)
-----------------------------------

* Remove composer.lock from repo.
Expand Down
10 changes: 9 additions & 1 deletion config/di/textfilter.php
Expand Up @@ -6,7 +6,15 @@
"services" => [
"textfilter" => [
"shared" => true,
"callback" => "\Anax\TextFilter\TextFilter",
"callback" => function () {
$filter = new \Anax\TextFilter\TextFilter();
if (is_dir(ANAX_INSTALL_PATH . "/content")) {
$filter->setFilterConfig("frontmatter", [
"include_base" => ANAX_INSTALL_PATH . "/content"
]);
}
return $filter;
},
],
],
];

0 comments on commit 09e7378

Please sign in to comment.