diff --git a/script/ddgc_export_help.pl b/script/ddgc_export_help.pl index 39825b4bb..d10f57a46 100755 --- a/script/ddgc_export_help.pl +++ b/script/ddgc_export_help.pl @@ -112,7 +112,13 @@ sub write_markup { $node->attr( 'src', "/images/$src" ); } - $content = $tree->as_HTML =~ s{
}{}mgr; + $content = sprintf( + "---\ntitle: %s\ncategory: %s\norder: %s\n---\n", + $title, + ucfirst($category), + $help->sort // 9999, + ); + $content .= $tree->as_HTML =~ s{
}{}mgr; $content > io( catfile( $d, $help->key . '.html' ) ); }