four digit year #3 + README update
This commit is contained in:
parent
e15268092a
commit
c89bca3fc7
|
@ -45,6 +45,7 @@ Posts are Markdown files with a mandatory metadata head.
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
title: My new Post
|
title: My new Post
|
||||||
|
date: 13 Aug 22 17:07 UTC
|
||||||
aliases:
|
aliases:
|
||||||
- /my/new/post
|
- /my/new/post
|
||||||
- /old_blog_path/
|
- /old_blog_path/
|
||||||
|
|
2
user.go
2
user.go
|
@ -100,7 +100,7 @@ func (user User) CreateNewPost(title string) (Post, error) {
|
||||||
initial_content := ""
|
initial_content := ""
|
||||||
initial_content += "---\n"
|
initial_content += "---\n"
|
||||||
initial_content += "title: " + title + "\n"
|
initial_content += "title: " + title + "\n"
|
||||||
initial_content += "date: " + time.Now().UTC().Format(time.RFC822) + "\n"
|
initial_content += "date: " + time.Now().UTC().Format("02 Jan 2006 15:04 MST") + "\n"
|
||||||
initial_content += "---\n"
|
initial_content += "---\n"
|
||||||
initial_content += "\n"
|
initial_content += "\n"
|
||||||
initial_content += "Write your post here.\n"
|
initial_content += "Write your post here.\n"
|
||||||
|
|
Loading…
Reference in New Issue