Skip to content

Commit

Permalink
only week 0 post on site
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaklog committed Mar 25, 2024
1 parent 9d62666 commit b0288cd
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 10 deletions.
29 changes: 29 additions & 0 deletions pkg/helpers/helper_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package helpers_test

import (
"fmt"
"io/fs"
"log"
"testing"
"testing/fstest"
)

type Helper struct {
ErrorLogger *log.Logger
SiteDataPath string
}

func TestCopyDirectoryContents(t *testing.T) {
t.Run("Testinf copying contents from A to B", func(t *testing.T) {
fsMock := fstest.MapFS{
"index.md": {Data: []byte("# Index Page")},
"about.md": {Data: []byte("# About Page")},
}

fs.WalkDir(fsMock, ".", func(path string, d fs.DirEntry, err error) error {
fmt.Printf("%s\n", path)
return nil
})

})
}
11 changes: 6 additions & 5 deletions site/content/posts/lang_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ author: John Doe
date: 2024-02-23
scripts:
type: post
tags:
- rust
- C
draft: true
tags:
- rust
- C
---

## struct in rust

```rust
struct Vector2D {
struct Vector2D {
x: f64,
y: f64,
}
Expand Down Expand Up @@ -51,7 +52,7 @@ void ex(int *v, char *syn){
case 62: if(st!=1){*v = *v>>1;}else{printf("synerr");return;} break;
case 64: if(st == 1){st = 0;*p=*v;}else{st=1;} break;
case 38: if(st == 1){st = 0;*v=*p;}else{st=1;}break;// & is used to get value
// operations, st == 1, for subsequent value for operation type
case 37: if(st==1){
syn++;
Expand Down
1 change: 1 addition & 0 deletions site/content/posts/markdown_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ categories:
- Programming
scripts:
type: post
draft: true
tags:
- test-post
---
Expand Down
4 changes: 2 additions & 2 deletions site/content/posts/test_0.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Chronological Test 2
date: 2023-01-02
draft: false
draft: true
type: post
description: This is a test description
tags:
- test-post
- test-post
---
4 changes: 2 additions & 2 deletions site/content/posts/test_date.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Chronological Test
date: 2024-01-01
draft: false
date: 2024-01-01
draft: true
type: post
---
2 changes: 1 addition & 1 deletion site/content/posts/week-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: week-0
date: 2024-03-02
type: post
draft: true
draft: false
tags:
- progress
---
Expand Down

0 comments on commit b0288cd

Please sign in to comment.