Using the Archive Pipeline with a custom pipeline #145
-
I'm still doing a toy project to learn Statiq and now comes the pagination problem. Right now, I have a custom public class PostPipeline : Pipeline
{
public PostPipeline()
{
InputModules = new ModuleList
{
new ReadFiles("posts/**/*.md")
};
// Processing and PostProcessing modules goes here
OutputModules = new ModuleList
{
new WriteFiles()
};
} Everything is fine, my post are rendered, my custom modules are working, all shortcodes were processed and extra metadata were added ! My problem now is I'm not using Statiq's default pipelines at the moment. I want all the contents from Now the So I'll try to split my problem in several simple questions :
Thanks in advance, and if it's not clear, let me know, I'll try to make things clearer ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Wow, you're making a ton of progress! Hopefully I've got some answers to this latest set of questions...
So there's a feature configured via the fluent API named What you'll probably need to do is adjust the globbing pattern that gets used by the built-in modules to exclude that folder. That's controlled by the .ConfigureFileSystem(fs =>
{
fs.InputPaths.Clear();
fs.InputPaths.Add("*{!posts}/**/{!_,}*");
}) I'm not entirely sure about the globbing pattern there so you might need to test that part out a bit.
There's a module for that - the |
Beta Was this translation helpful? Give feedback.
Wow, you're making a ton of progress! Hopefully I've got some answers to this latest set of questions...
So there's a feature configured via the fluent API named
.AddExcludedPath()
that lets you exclude a directory entirely from Statiq. The impact of that though is that any pipeline will treat the path as excluded - it'll essentially appear invisible. This is useful when integration with other toolchains like webpack but isn't quite what you want.What you'll probably need to do is adjust the globbing pattern that gets used by the built-in modules t…