{"id":22437235,"url":"https://github.com/ustclug/website","last_synced_at":"2025-10-04T11:53:55.710Z","repository":{"id":44467051,"uuid":"267574829","full_name":"ustclug/website","owner":"ustclug","description":"The next-gen website of LUG@USTC","archived":false,"fork":false,"pushed_at":"2025-09-20T17:32:48.000Z","size":167572,"stargazers_count":35,"open_issues_count":4,"forks_count":20,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-09-20T19:22:58.551Z","etag":null,"topics":["hacktoberfest","jekyll","website"],"latest_commit_sha":null,"homepage":"https://lug.ustc.edu.cn","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ustclug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-05-28T11:44:13.000Z","updated_at":"2025-09-20T17:31:10.000Z","dependencies_parsed_at":"2023-01-25T13:30:54.428Z","dependency_job_id":"335b178f-a525-4018-adfd-32373951514f","html_url":"https://github.com/ustclug/website","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ustclug/website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Fwebsite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Fwebsite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Fwebsite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Fwebsite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ustclug","download_url":"https://codeload.github.com/ustclug/website/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Fwebsite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278308625,"owners_count":25965654,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hacktoberfest","jekyll","website"],"created_at":"2024-12-06T00:12:13.824Z","updated_at":"2025-10-04T11:53:55.692Z","avatar_url":"https://github.com/ustclug.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LUG @ USTC 新版网站\n\n中国科学技术大学 Linux 用户协会的官方网站。（于 2020 年 8 月启用，所以称为“新版”）\n\n本仓库为源代码，所有推送到 master 分支的修改会使用 GitHub Actions 自动编译和部署。\n\n## 添加与修改页面\n\n本网站采用 [Minimal Mistakes 主题](https://mmistakes.github.io/minimal-mistakes/)，各自定义项目参见主题的文档。\n\n添加新页面（Wiki / News / Planet）请分别在 `pages/_wiki`，`pages/_news`，`pages/_planet` 中参考 `_template.md`。\n\n设置文章作者请在 [`_data/authors.yml`](_data/authors.yml) 中添加作者信息（参考已有内容），然后在页面中指定 `author: key`（只支持一个作者）。\n\n为了避免仓库过度膨胀，请避免将图片上传至本仓库。图片的处理方式有以下几种：\n\n- 上传至 [website-static 仓库](https://github.com/ustclug/website-static)，并使用如下格式引用：\n\n  ```markdown\n  ![图片的 alt 文字]({{ site.static_url }}/path/to/image.jpg)\n  ```\n\n- 上传至 LUG FTP，并使用完整路径引用\n\n## 本地预览与构建\n\n1. 安装 Ruby 开发环境（略）\n2. 运行 `bundle install --path=vendor/bundle` 以安装依赖的软件包\n3. 运行 `bundle exec jekyll serve`，此时即可在 \u003chttp://localhost:4000/\u003e 预览网站\n4. 编译整个网站的命令为\n\n   ```shell\n   bundle exec jekyll build\n   ```\n\n   在命令行末尾添加 `--profile` 可以查看编译性能分析（每个源文件耗时），添加 `--trace` 可以在出错时输出 stack trace\n\n   正式部署时需要添加环境变量 `JEKYLL_ENV=production`，详情请见 GitHub Actions 的 workflow 配置\n\n## Markdown 格式化\n\n请在提交前使用 `prettier` 进行格式化。\n\n1. 安装 Node.js 开发环境（略）\n2. 运行 `npm install` 以安装 prettier\n3. 使用 `npm run check` 验证格式无问题\n4. 使用 `npm run fix` 自动格式化\n\n   可以将不希望 prettier 处理的文件加入 `.prettierignore`，未来可能会加上 YAML 和 SCSS 格式文件的处理\n\n## 许可\n\n本仓库及本网站以 [CC BY-NC-SA 4.0](LICENSE.md) 许可协议开源。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustclug%2Fwebsite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fustclug%2Fwebsite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustclug%2Fwebsite/lists"}