best-of-lists / best-of-generator

🏆 Generates a ranked list of awesome libraries and tools.
https://best-of.org
GNU General Public License v3.0
79 stars 14 forks source link

Back to top indicator doesn't work if there is no TOC #26

Closed jrieke closed 3 years ago

jrieke commented 3 years ago

Describe the bug:

The "back to top" indicator (small gray arrow) points to #content but this anchor doesn't exist if TOC is turned off.

Expected behaviour:

Should still go back to top, maybe insert anchor regardless of TOC or link to title instead.

Steps to reproduce the issue:

In projects.yaml:

configuration:
  generate_toc: False

projects:
  - name: Any repo
    homepage: https://github.com/best-of-lists/best-of-generator
    github_id: best-of-lists/best-of-generator

Technical details:

Possible Fix:

Additional context:

lukasmasuch commented 3 years ago

Thanks for reporting this issue. I have now implemented it to use the # anchor as a backup. This should scroll to the top of the page. Will be rolled out in the next version.