diff --git a/static/resources_list.txt b/static/resources_list.txt index cf11aa3d8..4d48e7287 100644 --- a/static/resources_list.txt +++ b/static/resources_list.txt @@ -1,6 +1,7 @@ skin/caret.png skin/bittorrent.png skin/magnet.png +skin/feed.png skin/download.png skin/hash.png skin/search-icon.svg diff --git a/static/skin/feed.png b/static/skin/feed.png new file mode 100644 index 000000000..5176e7bf6 Binary files /dev/null and b/static/skin/feed.png differ diff --git a/static/skin/index.css b/static/skin/index.css index f6e16be20..ae9294fa2 100644 --- a/static/skin/index.css +++ b/static/skin/index.css @@ -441,6 +441,13 @@ body { width: auto; } +.feedLogo { + margin: 16px 12px 0 0; + height: 30px; + float: right; + border-radius: 5px; +} + @media screen and (max-width: 1100px) { .kiwixHomeBody { @@ -482,4 +489,8 @@ body { .kiwixNav__filters { grid-template-columns: 1fr; } + + .feedLogo { + display: none; + } } diff --git a/static/skin/index.js b/static/skin/index.js index ec54a098a..036e18516 100644 --- a/static/skin/index.js +++ b/static/skin/index.js @@ -26,7 +26,9 @@ filteredParams.append(key, value); } } - document.querySelector('#feed_link').href = `${root}/catalog/v2/entries?${filteredParams.toString()}`; + const feedLink = `${root}/catalog/v2/entries?${filteredParams.toString()}`; + document.querySelector('#headFeedLink').href = feedLink; + document.querySelector('#feedLink').href = feedLink; } function queryUrlBuilder() { diff --git a/static/templates/index.html b/static/templates/index.html index 652bc69fb..0274e9a3a 100644 --- a/static/templates/index.html +++ b/static/templates/index.html @@ -14,7 +14,7 @@ rel="alternate" type="application/atom+xml" title="Library OPDS Feed" - id="feed_link" + id="headFeedLink" href="{{root}}/catalog/v2/entries" /> @@ -42,6 +42,9 @@
+ +