Skip to main content

touch

Function touch 

Source
pub fn touch(
    front_matter: Option<FrontMatter>,
    now: DateTime<Utc>,
) -> FrontMatter
Expand description

Update the updated_at timestamp in front matter to the current time.

If front_matter is None, creates a new FrontMatter with only created_at and updated_at set to now.