add: default header on new note
This commit is contained in:
parent
6e85a1336b
commit
62570915eb
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue