Skip to content

Commit

Permalink
Show file uses results from all blogs
Browse files Browse the repository at this point in the history
  • Loading branch information
jlelse committed Feb 18, 2025
1 parent 1a9930f commit 857280b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions editorFiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (a *goBlog) serveEditorFilesUsesResults(w http.ResponseWriter, r *http.Requ
path: bc.getRelativePath(editorPath + editorFileUsesPath + "/" + filename),
usesFile: filename,
withoutFeeds: true,
allBlogs: true,
})))
}

Expand Down
3 changes: 2 additions & 1 deletion posts.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ type indexConfig struct {
search string
usesFile string
withoutFeeds bool
allBlogs bool
}

const defaultPhotosPath = "/photos"
Expand Down Expand Up @@ -335,7 +336,7 @@ func (a *goBlog) serveIndex(w http.ResponseWriter, r *http.Request) {
}
// Create paginator
p := paginator.New(&postPaginationAdapter{config: &postsRequestConfig{
blogs: []string{blog},
blogs: lo.If(!ic.allBlogs, []string{blog}).Else([]string{}),
sections: sections,
taxonomy: ic.tax,
taxonomyValue: ic.taxValue,
Expand Down

0 comments on commit 857280b

Please sign in to comment.