Feature: show artworks for the search page

This commit is contained in:
VnPower 2023-06-03 19:24:40 +07:00
parent 09a2d6e2d4
commit 356450ac00
Signed by: vnpower
GPG key ID: 881DE3DEB966106C
2 changed files with 4 additions and 1 deletions

View file

@ -448,7 +448,7 @@ func (p *PixivClient) GetSearchTop(name string) (*models.SearchResult, error) {
var artworks models.SearchArtworks
var result *models.SearchResult
url := fmt.Sprintf(SearchTopURL, name)
url := fmt.Sprintf(SearchArtworksURL, name, "date_d", "all", "1", "all")
s, err := p.TextRequest(url)

View file

@ -26,5 +26,8 @@
</div>
{{ end }}
<!-- Switchers here -->
<br />
<h2>Illustrations and Mangas</h2>
<div>{{ template "small-tn.html" .Data.Artworks.Artworks }}</div>
</div>
{{ template "footer.html" }}