Turn "Feed" button to a dropdown if multiple feeds are avaiable (fixes #72)
This commit is contained in:
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Add active state to footer's "Powered by" links.
|
- Add active state to footer's "Powered by" links.
|
||||||
- Add active state to footnotes' go back button.
|
- Add active state to footnotes' go back button.
|
||||||
- Add active state to slider thumb.
|
- Add active state to slider thumb.
|
||||||
|
- Add Bahasa Melayu translation (#78).
|
||||||
- Add fading on top/bottom of the search results container.
|
- Add fading on top/bottom of the search results container.
|
||||||
- Add loading animation to "Load Comments" button.
|
- Add loading animation to "Load Comments" button.
|
||||||
- Add margin between comment author name and timestamp.
|
- Add margin between comment author name and timestamp.
|
||||||
@ -26,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Add zoom-on-hover to custom comment emojis.
|
- Add zoom-on-hover to custom comment emojis.
|
||||||
- Return the scrollbar styling.
|
- Return the scrollbar styling.
|
||||||
- Style mentions and hashtags in comments.
|
- Style mentions and hashtags in comments.
|
||||||
|
- Turn "Feed" button to a dropdown if multiple feeds are avaiable (#72).
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@
|
|||||||
{%- set scripts = scripts | concat(with=["theme-switcher.js"]) %}
|
{%- set scripts = scripts | concat(with=["theme-switcher.js"]) %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- if config.extra.nav.links.menu or config.languages | length > 0 or config.extra.nav.show_theme_switcher %}
|
{%- if config.extra.nav.links.menu or config.languages | length > 0 or config.extra.nav.show_theme_switcher or config.feed_filenames | length > 1 and config.extra.nav.show_feed %}
|
||||||
{%- set scripts = scripts | concat(with=["details.js"]) %}
|
{%- set scripts = scripts | concat(with=["details.js"]) %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
@ -105,7 +105,28 @@
|
|||||||
</details>
|
</details>
|
||||||
</li>
|
</li>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if config.generate_feeds and config.extra.nav.show_feed %}
|
{%- if config.feed_filenames | length > 1 and config.extra.nav.show_feed -%}
|
||||||
|
<li id="feed">
|
||||||
|
<details>
|
||||||
|
<summary class="circle" title="{{ macros_translate::translate(key='feed', default='Feed', language_strings=language_strings) }}">
|
||||||
|
<i class="icon"></i>
|
||||||
|
</summary>
|
||||||
|
<ul>
|
||||||
|
{%- for feed in config.feed_filenames %}
|
||||||
|
<li>
|
||||||
|
<a href="{{ get_url(path=feed, lang=lang) }}" rel="{{ rel_attributes }}">
|
||||||
|
{%- if feed == "rss.xml" -%}
|
||||||
|
RSS
|
||||||
|
{%- elif feed == "atom.xml" -%}
|
||||||
|
Atom
|
||||||
|
{%- endif -%}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{%- endfor -%}
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
</li>
|
||||||
|
{%- elif config.generate_feeds and config.extra.nav.show_feed %}
|
||||||
<li id="feed">
|
<li id="feed">
|
||||||
<a class="circle" href="{{ get_url(path=config.feed_filenames[0], lang=lang) }}" title="{{ macros_translate::translate(key='feed', default='Feed', language_strings=language_strings) }}">
|
<a class="circle" href="{{ get_url(path=config.feed_filenames[0], lang=lang) }}" title="{{ macros_translate::translate(key='feed', default='Feed', language_strings=language_strings) }}">
|
||||||
<i class="icon"></i>
|
<i class="icon"></i>
|
||||||
|
Reference in New Issue
Block a user