{"id":17967761,"url":"https://github.com/yunyoujun/hexo-widget-tree","last_synced_at":"2025-03-25T08:31:29.036Z","repository":{"id":46720344,"uuid":"301926595","full_name":"YunYouJun/hexo-widget-tree","owner":"YunYouJun","description":"🌲 Tree preview widget for hexo.","archived":false,"fork":false,"pushed_at":"2024-09-18T02:37:59.000Z","size":36,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T22:39:34.377Z","etag":null,"topics":["hexo","hexo-plugin"],"latest_commit_sha":null,"homepage":"https://hexo-theme-yun.yunyoujun.cn/posts/widget-tree/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YunYouJun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["YunYouJun"]}},"created_at":"2020-10-07T04:29:09.000Z","updated_at":"2024-10-03T18:58:03.000Z","dependencies_parsed_at":"2024-11-07T11:32:40.088Z","dependency_job_id":"9866f12b-c299-4ffe-bb7e-c8e98fcc7792","html_url":"https://github.com/YunYouJun/hexo-widget-tree","commit_stats":{"total_commits":23,"total_committers":4,"mean_commits":5.75,"dds":"0.13043478260869568","last_synced_commit":"81b072887c0b3692d75fef165ec50022ea00c384"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YunYouJun%2Fhexo-widget-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YunYouJun%2Fhexo-widget-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YunYouJun%2Fhexo-widget-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YunYouJun%2Fhexo-widget-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YunYouJun","download_url":"https://codeload.github.com/YunYouJun/hexo-widget-tree/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245426290,"owners_count":20613324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hexo","hexo-plugin"],"created_at":"2024-10-29T14:09:33.544Z","updated_at":"2025-03-25T08:31:28.715Z","avatar_url":"https://github.com/YunYouJun.png","language":"JavaScript","funding_links":["https://github.com/sponsors/YunYouJun"],"categories":[],"sub_categories":[],"readme":"# hexo-widget-tree\n\n[![npm](https://img.shields.io/npm/v/hexo-widget-tree)](https://www.npmjs.com/package/hexo-widget-tree)\n\n[中文文档](./README.zh.md)\n\n[Demo](https://hexo-theme-yun.yunyoujun.cn/posts/widget-tree/)\n\nTree preview widget for hexo.\n\n(If your theme supports ajax, it can achieve refreshless browsing)\n\n## Usage\n\n```sh\nnpm install hexo-widget-tree\n# yarn add hexo-widget-tree\n```\n\nClick the middle button on the left of the page to expand the \"tree\" menu.\n\nClick the folder with the `+` icon to expand the menu. By clicking the folder name, you will be redirect to category page.\n\n## Options\n\n- `cdn`: `true`, default [jsdelivr CDN](https://cdn.jsdelivr.net/npm/hexo-widget-tree).\n- `hide`: `false`, automatically hides unless you move the mouse to the middle of the left part of the page.\n- `layout`: Which page will code snippets being injected. More info see [Injector | hexo](https://hexo.io/api/injector.html#to-lt-string-gt).\n- `showCount`: Show number of posts in category.\n- `toc`: More info [here](https://hexo.io/docs/helpers#toc).\n  - `enable`: `false`, display toc for post\n\n```yaml\n# You don't have to configure them.\nwidget_tree:\n  cdn: false\n  hide: false\n  layout: default\n  # layout:\n  #   - home\n  #   - page\n  showCount: true\n  toc:\n    enable: false\n    # max_depth:\n    # min_depth:\n    # list_number:\n```\n\n## Features\n\n- Adapt for dark mode\n\nYou need `data-user-color-scheme=\"dark\"` in parent node.\n\n## Dev\n\n```bash\ngit clone https://github.com/YunYouJun/hexo-widget-tree\n\ncd hexo-widget-tree\n# install dependencies\nnpm install\nnpm link\n\n# watch sass to compile\nnpm run dev\n\n# start your hexo\ncd your-hexo-blog\nnpm link hexo-widget-tree\nhexo s\n# We have to reload hexo server when plugin is modified.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunyoujun%2Fhexo-widget-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyunyoujun%2Fhexo-widget-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunyoujun%2Fhexo-widget-tree/lists"}