From d17d06853fe11ddbfb0ec61e5cebb2c9d3ac16c2 Mon Sep 17 00:00:00 2001 From: orangix Date: Mon, 14 Aug 2023 22:03:14 +0200 Subject: [PATCH] trending nav on frontpage --- api/trending.go | 2 +- static/icons/PhArrowUpRight.svg | 1 + views/frontpage.hbs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 static/icons/PhArrowUpRight.svg diff --git a/api/trending.go b/api/trending.go index 0c41b69..2026f8f 100644 --- a/api/trending.go +++ b/api/trending.go @@ -10,7 +10,7 @@ import ( ) func (client *Client) FetchTrending(section, sort, page string) ([]Submission, error) { - req, err := http.NewRequest("GET", "https://api.imgur.com/post/v1/posts?client_id="+client.ClientID+"&filter[section]=eq:"+section+"&include=cover,viral&page=1" /* "https://imgur.com/search/all/page/"+page+"?scrolled&q_size_is_mpx=off&qs=list&q="+query */, nil) + req, err := http.NewRequest("GET", "https://api.imgur.com/post/v1/posts?client_id="+client.ClientID+"&filter[section]=eq:"+section+"&include=cover,viral&page=1", nil) if err != nil { return []Submission{}, err } diff --git a/static/icons/PhArrowUpRight.svg b/static/icons/PhArrowUpRight.svg new file mode 100644 index 0000000..4d98f58 --- /dev/null +++ b/static/icons/PhArrowUpRight.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/views/frontpage.hbs b/views/frontpage.hbs index 11b3b97..6101526 100644 --- a/views/frontpage.hbs +++ b/views/frontpage.hbs @@ -13,6 +13,7 @@

The fast, private image viewer for Imgur.

{{> partials/searchBar }} + Or see what's trending