diff options
| author | 2025-08-06 21:44:06 +0700 | |
|---|---|---|
| committer | 2025-08-06 21:44:06 +0700 | |
| commit | 3a4c583a4486c89e35754389f92243b5817e382d (patch) | |
| tree | d20121f88d327fd4d07f40a90f3db41ebb076201 /internal | |
| parent | 9ca8869eedd19ca0b019ccd3284aa1724cecb407 (diff) | |
| download | web-3a4c583a4486c89e35754389f92243b5817e382d.tar.gz web-3a4c583a4486c89e35754389f92243b5817e382d.zip | |
feat: new index page layout (pick a language)v0.4.0
feat: blog main pages are now looking at a picked language dir
feat: "/blog" redirects to index page
format: correct yaml layout of ansible playbook
feat: enable no_log back again
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/b2/client.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/b2/client.go b/internal/b2/client.go index f2b6cad..1a97e5f 100644 --- a/internal/b2/client.go +++ b/internal/b2/client.go @@ -36,10 +36,10 @@ type BlogPage struct { Metadata *frontmatter.Metadata } -func (c *B2Client) Scan() ([]*BlogPage, error) { +func (c *B2Client) Scan(prefix string) ([]*BlogPage, error) { filePaths := []*BlogPage{} - iter := c.bucket.List(context.Background(), b2.ListPrefix(c.prefix)) + iter := c.bucket.List(context.Background(), b2.ListPrefix(c.prefix+prefix)) for iter.Next() { obj := iter.Object() |