Open fu-sen opened 3 years ago
Use this theme by setting _config.yml to:
_config.yml
show_downloads: false
The header disappears the download icon as expected:
But when scrolling down, the header still shows the download icon:
I referred to the template and noticed it: /_layouts/default.html:
<div class="current-section"> <a href="#top">Scroll to top</a> <a href="{{ site.github.tar_url }}" class="tar">tar</a><a href="{{ site.github.zip_url }}" class="zip">zip</a><a href="" class="code">source code</a> <p class="name"></p> </div>
There is no {% if site.show_downloads%} and {% endif%}.
{% if site.show_downloads%}
{% endif%}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Use this theme by setting
_config.yml
to:The header disappears the download icon as expected:
But when scrolling down, the header still shows the download icon:
I referred to the template and noticed it: /_layouts/default.html:
There is no
{% if site.show_downloads%}
and{% endif%}
.