{"id":28960230,"url":"https://github.com/lework/lework.github.io","last_synced_at":"2025-06-24T01:11:01.275Z","repository":{"id":59728472,"uuid":"191768524","full_name":"lework/lework.github.io","owner":"lework","description":"personal blog","archived":false,"fork":false,"pushed_at":"2025-05-16T08:41:45.000Z","size":61228,"stargazers_count":19,"open_issues_count":71,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T09:41:27.330Z","etag":null,"topics":["blog","lework"],"latest_commit_sha":null,"homepage":"https://lework.github.io","language":"SCSS","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/lework.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,"zenodo":null}},"created_at":"2019-06-13T13:30:09.000Z","updated_at":"2025-05-16T08:41:49.000Z","dependencies_parsed_at":"2024-08-16T10:31:04.776Z","dependency_job_id":"a06d3713-b4f5-4c15-b7a8-4196911b33ab","html_url":"https://github.com/lework/lework.github.io","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lework/lework.github.io","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Flework.github.io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Flework.github.io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Flework.github.io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Flework.github.io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lework","download_url":"https://codeload.github.com/lework/lework.github.io/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Flework.github.io/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261584234,"owners_count":23180675,"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":["blog","lework"],"created_at":"2025-06-24T01:10:53.223Z","updated_at":"2025-06-24T01:11:01.260Z","avatar_url":"https://github.com/lework.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lework.github.io ![GitHub](https://img.shields.io/github/license/lework/lework.github.io)\n\npersonal blog\n\n## 快速启动\n\n### 1. 安装 ruby 和 jekyll 环境\n\n这一步和第5步主要是为了让博客系统在本地跑起来，如果不想在本地运行，可以无视这两步，但我还是强烈建议试着先在本地跑起来，没有什么问题后再推送的 GitHub 上。\n\nWindows 用户可以直接使用 [RubyInstaller](http://rubyinstaller.org/) 安装 ruby 环境。后续的操作中可能还会提示安装 DevKit，根据提示操作即可。\n\n建议使用 [RubyGems 镜像- Ruby China](https://gems.ruby-china.org/) 安装 jekyll。\n\n安装 jekyll 命令如下\n\n```\ngem install jekyll\ngem install jekyll-paginate\n```\n\n### 2. 复制博客主题代码\n\n可以直接 clone 、下载 或 fork 这个仓库的代码即可\n\n### 3. 修改参数\n\n主要修改 `_config.yml` 中的参数和自己的网站小图`favicon.ico`\n\n### 4. 写文章\n\n`_posts`目录下存放文章信息，文章头部注明 layout(布局)、title、date、categories、tags、author(可选)、mathjax(可选，点击[这里](https://www.mathjax.org/)查看更多关于`Mathjax`)，如下：\n\n```\n---\nlayout: post\ntitle:  \"对这个 jekyll 博客主题的改版和重构\"\ndate:   2016-03-12 11:40:18 +0800\ncategories: jekyll\ntags: jekyll 端口 markdown Foxit RubyGems HTML CSS\nauthor: Haoyang Gao\nmathjax: true\n---\n```\n\n下面这两行代码为产生目录时使用\n```\n* content\n{:toc}\n```\n\n文章中存在的4次换行为摘要分割符，换行前的内容会以摘要的形式显示在主页Home上，进入文章页不影响。\n\n换行符的设置见配置文件`_config.yml`的 excerpt，如下：\n\n```yml\n# excerpt\nexcerpt_separator: \"\\n\\n\\n\\n\"\n```\n\n使用 markdown 语法写文章。\n\n代码风格与 GitHub 上 README 或 issue 中的一致。使用3个\\`\\`\\`的方式。\n\n### 5. 本地运行\n\n本地执行\n\n```\njekyll s\n```\n\n显示\n\n```\nConfiguration file: E:/lework.github.io/_config.yml\n            Source: E:/lework.github.io\n       Destination: E:/lework.github.io/_site\n Incremental build: disabled. Enable with --incremental\n      Generating...\n                    done in 9.773 seconds.\n Auto-regeneration: enabled for 'E:/lework.github.io'\n    Server address: http://127.0.0.1:4000/\n  Server running... press ctrl-c to stop.\n```\n\n在本地访问 localhost:4000 即可看到博客主页。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flework%2Flework.github.io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flework%2Flework.github.io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flework%2Flework.github.io/lists"}