Feature: show artworks for the search page
This commit is contained in:
parent
09a2d6e2d4
commit
356450ac00
2 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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" }}
|
||||
|
|
Loading…
Reference in a new issue