add: default header on new note

This commit is contained in:
quenousimporte 2024-02-19 10:26:10 +01:00
parent 6e85a1336b
commit 62570915eb
1 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,8 @@
if (!file_exists($dir . '/' . $param)) if (!file_exists($dir . '/' . $param))
{ {
file_put_contents($dir . '/' . $param, ''); $content = "---\r\ndate: " . substr($now, 0, 10) . "\r\ntags: \r\n---\r\n";
file_put_contents($dir . '/' . $param, $content);
} }
else if (!$content) else if (!$content)
{ {