Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: optimize toc logic #426

Merged
merged 4 commits into from
Dec 25, 2021
Merged

refactor: optimize toc logic #426

merged 4 commits into from
Dec 25, 2021

Commits on Dec 25, 2021

  1. optimize toc logic

    - use CSS to set its width instead of js
    - process the logic of static toc and auto toc in hugo template instead of js
    HEIGE-PCloud committed Dec 25, 2021
    Configuration menu
    Copy the full SHA
    6b57a97 View commit details
    Browse the repository at this point in the history
  2. remove initToc from onResize event

    - Since the position calcuation is done by CSS (and media query) now, there is no need to initToc onResize
    HEIGE-PCloud committed Dec 25, 2021
    Configuration menu
    Copy the full SHA
    611e867 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e1aa245 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4a58a59 View commit details
    Browse the repository at this point in the history