and the rest
This commit is contained in:
parent
467478bcde
commit
75aa714eca
3
drafts/Improvements part 2.md
Normal file
3
drafts/Improvements part 2.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<video autoplay loop> <source src="../images/2017-12-07/a.webm"></video>
|
||||||
|
<time datetime="2017-12-07">2017-12-07</time>
|
||||||
|
The improved _Newt Hare_ made its bigger counterpart, the _Motherhare_, too small. Also, it could be cuter and more bunny-like. So I have you, the _Motherhare 2.0_, or whatever. Now, the trap to avoid is to not constantly try and improve every enemy, every time I get some spare time.
|
BIN
images/2017-12-07/a.webm
Normal file
BIN
images/2017-12-07/a.webm
Normal file
Binary file not shown.
|
@ -29,20 +29,18 @@ var PostsCollection []Post
|
||||||
func NewPostsCollection() {
|
func NewPostsCollection() {
|
||||||
verifyFolderModification()
|
verifyFolderModification()
|
||||||
initializeCollection()
|
initializeCollection()
|
||||||
go acquirePosts(10)
|
go acquirePosts(100)
|
||||||
}
|
}
|
||||||
|
|
||||||
func initializeCollection() {
|
func initializeCollection() {
|
||||||
PostsCollection = nil
|
PostsCollection = nil
|
||||||
filepath.Walk("./posts", newPost)
|
filepath.Walk("./posts", newPost)
|
||||||
fmt.Println(len(PostsCollection))
|
|
||||||
PostsCollection = reversePosts()
|
PostsCollection = reversePosts()
|
||||||
}
|
}
|
||||||
|
|
||||||
func acquirePosts(duration time.Duration) {
|
func acquirePosts(duration time.Duration) {
|
||||||
for {
|
for {
|
||||||
if verifyFolderModification() == true {
|
if verifyFolderModification() == true {
|
||||||
fmt.Println("updated")
|
|
||||||
initializeCollection()
|
initializeCollection()
|
||||||
setPostsCollection()
|
setPostsCollection()
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<video autoplay loop> <source src="../images/2017-12-04/a.webm"></video>
|
<a href="../images/2017-12-04/a.webm"><video autoplay loop> <source src="../images/2017-12-04/a.webm"></video></a>
|
||||||
|
|
||||||
<p><time datetime="2017-12-04">2017–12–04</time></p>
|
<p><time datetime="2017-12-04">2017–12–04</time></p>
|
||||||
|
|
||||||
|
|
BIN
websiteTemplate
BIN
websiteTemplate
Binary file not shown.
|
@ -62,7 +62,6 @@ func blogHandler(w http.ResponseWriter, req *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
length := len(posts)
|
length := len(posts)
|
||||||
fmt.Println("Hi, blog handler here. There are ", length, " posts.")
|
|
||||||
posts = posts[:3]
|
posts = posts[:3]
|
||||||
//posts = getNewestPosts(3)
|
//posts = getNewestPosts(3)
|
||||||
page := Page{name, posts, "blog"}
|
page := Page{name, posts, "blog"}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user