and the rest

This commit is contained in:
Jacob 2017-12-07 20:06:44 +01:00
parent 467478bcde
commit 75aa714eca
6 changed files with 5 additions and 5 deletions

View 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

Binary file not shown.

View File

@ -29,20 +29,18 @@ var PostsCollection []Post
func NewPostsCollection() {
verifyFolderModification()
initializeCollection()
go acquirePosts(10)
go acquirePosts(100)
}
func initializeCollection() {
PostsCollection = nil
filepath.Walk("./posts", newPost)
fmt.Println(len(PostsCollection))
PostsCollection = reversePosts()
}
func acquirePosts(duration time.Duration) {
for {
if verifyFolderModification() == true {
fmt.Println("updated")
initializeCollection()
setPostsCollection()
}

View File

@ -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&#8211;12&#8211;04</time></p>

Binary file not shown.

View File

@ -62,7 +62,6 @@ func blogHandler(w http.ResponseWriter, req *http.Request) {
return
}
length := len(posts)
fmt.Println("Hi, blog handler here. There are ", length, " posts.")
posts = posts[:3]
//posts = getNewestPosts(3)
page := Page{name, posts, "blog"}