Replies: 1 comment
-
That's probably the easiest way right now. Statiq actually supports several template engines, though not all of them are great at being "outer" layouts. The way Statiq Web is set up out-of-the-box is to run every
If there are no
The
This is where the layout comes in handy. You could add different layouts for different types of documents, but it may be easier to add everything to a single layout for now. The key to understanding this part is that So to add a footer with values from your front matter, you might write something like this:
Note that the CleanBlog theme already contains some support for this kind of thing and you only need to create a
This is a perfect example of the archives feature. You can create a Razor file and specify which other files it should traverse using front matter. Then you use Razor syntax to render lists or other summary data. The documentation contains several archives examples. |
Beta Was this translation helpful? Give feedback.
-
I am new to Statiq, I got the based Markdown to html working with Framework. I would like to add the following
Todo both it looks like I would have to write
cshtml
. But I am having trouble connecting the cshtml to the .md files. Also, how do I branch and do different a pipeline and do different set of actions for a subset of files. I see that cleanblog does some of this, but couldn't figure out how with reasonable time.Beta Was this translation helpful? Give feedback.
All reactions