DirectoryMeta.

WithMetadataFile(DocumentConfig, bool, bool) Method

Summary

Specifies a file name to use as common metadata using a delegate so that the common metadata document can be specific to the input document.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Metadata
Containing Type
DirectoryMeta

Syntax

public DirectoryMeta WithMetadataFile(DocumentConfig metadataFileName, bool inherited = false, bool replace = false)

Parameters

Name Type Description
metadataFileName DocumentConfig A delegate that returns a bool indicating if the current document contains the metadata you want to use.
inherited bool If set to true, metadata from documents with this file name will be inherited by documents in nested directories.
replace bool If set to true, metadata from this document will replace any existing metadata on the target document.

Return Value

Type Description
DirectoryMeta The current module instance.
GitHub