{"id":16582212,"url":"https://github.com/dsrkafuu/dsr-blog","last_synced_at":"2025-04-09T14:13:55.035Z","repository":{"id":37729443,"uuid":"287286661","full_name":"dsrkafuu/dsr-blog","owner":"dsrkafuu","description":"新版整合式个人博客，基于 Hugo 实现，包含博客文章和笔记整合。","archived":false,"fork":false,"pushed_at":"2025-01-19T07:04:50.000Z","size":30802,"stargazers_count":73,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T10:41:46.002Z","etag":null,"topics":["esbuild","hugo","javascript","scss"],"latest_commit_sha":null,"homepage":"https://blog.dsrkafuu.net","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dsrkafuu.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}},"created_at":"2020-08-13T13:24:23.000Z","updated_at":"2025-03-24T06:42:35.000Z","dependencies_parsed_at":"2024-04-06T07:23:12.667Z","dependency_job_id":"5c5c43ba-6e01-46fb-b077-74a70309c3e6","html_url":"https://github.com/dsrkafuu/dsr-blog","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsrkafuu%2Fdsr-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsrkafuu%2Fdsr-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsrkafuu%2Fdsr-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsrkafuu%2Fdsr-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsrkafuu","download_url":"https://codeload.github.com/dsrkafuu/dsr-blog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054193,"owners_count":21039952,"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":["esbuild","hugo","javascript","scss"],"created_at":"2024-10-11T22:31:57.528Z","updated_at":"2025-04-09T14:13:55.015Z","avatar_url":"https://github.com/dsrkafuu.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dsr-blog\n\n![](https://img.shields.io/github/last-commit/dsrkafuu/dsr-blog)\n![](https://img.shields.io/github/package-json/v/dsrkafuu/dsr-blog)\n[![](https://img.shields.io/github/license/dsrkafuu/dsr-blog)](https://github.com/dsrkafuu/dsr-blog/blob/main/LICENSE)\n\n新版整合式个人博客 [dsr-blog](https://blog.dsrkafuu.net)，基于 Hugo 实现，包含博客文章和笔记整合。非面向主题使用者的通用主题，如果有朋友感兴趣也欢迎发 issue、修改或自己使用。\n\n## 浏览器支持\n\nSupports major browser versions released at 2020 or `ES2020`.\n\n- Chrome: \u003e=87\n- Firefox: \u003e=78\n- Safari: \u003e=14\n\n## 部分开发细节\n\n### 环境变量\n\n- `HUGO_SENTRY_DSN`\n\n### Hugo\n\n- 内置 ToC 层级限制 2-3\n- 完全自定义的分页控制，通过 partial 配合 scratch 变量引入\n- 所有可用的 Fromt Matter:\n  - `toc`：使用 `false` 关闭目录\n  - `banner`：文章头图，可为空\n- Lazyload 图片通过 Hugo 内置函数获取长宽比，并用内联样式进行懒加载占位渲染\n- 自定义头图路径解析，查找页面资源的 `*index.webp` 文件\n\n### JS\n\n- JS 通过 ESBuild 打包编译\n- 手机侧边栏控制 fixed 定位 right 偏移量实现动画淡入，用于显示目录\n\n### CSS\n\n- CSS 通过 Hugo Pipes 由 SCSS 编译而来\n- 全局主题与色彩均通过 CSS 变量实现以便于适配多主题\n- 定义不同比例占位适应 lazyload，使用 shortcode 参数传入比例渲染对应占位\n- Navbar 为响应式，移动平台高度与排列方式单独定义\n- 所有标题在 Summary 内不显示\n- 侧边栏与导航栏在手机平台上固定，且导航栏上 RSS 在手机上为目录，通过 `data-section` 属性判定\n\n### 评论区\n\n移除评论区，一劳永逸解决审查问题。\n\n## LICENSE\n\nThis project and all contributors shall not be responsible for any dispute or loss caused by using this project.\n\nThis project is released under the `GNU AGPLv3`, for more information read the [License](https://github.com/dsrkafuu/dsr-blog/blob/main/LICENSE).\n\n**Copyright © 2018-present DSRKafuU (\u003chttps://dsrkafuu.net\u003e)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsrkafuu%2Fdsr-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsrkafuu%2Fdsr-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsrkafuu%2Fdsr-blog/lists"}