Skip to main content

content_dir_name

Function content_dir_name 

Source
pub fn content_dir_name(root: &Path) -> &'static str
Expand description

Determine the content directory name for a project root.

Prefers site/ if it exists, falls back to pages/ for backward compatibility. If neither exists, returns "site" (the new default for new projects).

Emits a one-time deprecation warning via tracing::warn! when pages/ is used.