{"id":15007250,"url":"https://github.com/jihuun/documentudy","last_synced_at":"2026-02-13T05:02:13.419Z","repository":{"id":85010847,"uuid":"401709270","full_name":"jihuun/documentudy","owner":"jihuun","description":"UNIX \u0026 Linux Kernel","archived":false,"fork":false,"pushed_at":"2022-08-01T01:12:27.000Z","size":9462,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T06:14:54.410Z","etag":null,"topics":["blog","c","c-language","linux-distribution","linux-kernel","rust","shell","unix"],"latest_commit_sha":null,"homepage":"https://soopsaram.com/documentudy","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/jihuun.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":"2021-08-31T13:15:54.000Z","updated_at":"2021-11-14T04:21:59.000Z","dependencies_parsed_at":"2023-03-03T16:30:15.482Z","dependency_job_id":null,"html_url":"https://github.com/jihuun/documentudy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jihuun/documentudy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihuun%2Fdocumentudy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihuun%2Fdocumentudy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihuun%2Fdocumentudy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihuun%2Fdocumentudy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jihuun","download_url":"https://codeload.github.com/jihuun/documentudy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihuun%2Fdocumentudy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273767311,"owners_count":25164461,"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-09-05T02:00:09.113Z","response_time":402,"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":["blog","c","c-language","linux-distribution","linux-kernel","rust","shell","unix"],"created_at":"2024-09-24T19:06:35.519Z","updated_at":"2026-02-13T05:02:08.376Z","avatar_url":"https://github.com/jihuun.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 关于这个博客主题\n\n随着 jekyll 的版本升级，同时我也想重构我的旧版博客主题，因此在这个月对博客进行了重构加改版，这个仓库存放我的新博客，并且我也会一直使用这个主题。目前基本改版完成，后续可能还会有些细节上的修补。\n\n**博客访问地址：[http://gaohaoyang.github.io/](http://gaohaoyang.github.io/)**。若您喜欢这个新的博客主题，请给我个star以示鼓励吧，欢迎大家使用。\n\n## 目录\n\n* [预览图](#预览图)\n* [各部分详情](#各部分详情)\n    * [主页 Home](#主页-home)\n    * [归档页 Archives](#归档页-archives)\n    * [分类页 Categories](#分类页-categories)\n    * [标签页 Tags](#标签页-tags)\n    * [收藏页 Collections](#收藏页-collections)\n    * [展示页 Demo](#展示页-demo)\n    * [关于页 About](#关于页-about)\n    * [评论](#评论)\n    * [目录 Contents](#目录-contents)\n    * [代码高亮](#代码高亮)\n    * [灯泡效果](#灯泡效果)\n    * [移动端适配](#移动端适配)\n    * [Footer](#footer)\n    * [统计](#统计)\n* [博客主题使用方法](#博客主题使用方法)\n    * [1. 安装 ruby 和 jekyll 环境](#1-安装-ruby-和-jekyll-环境)\n    * [2. 复制博客主题代码](#2-复制博客主题代码)\n    * [3. 修改参数](#3-修改参数)\n        * [基本信息](#基本信息)\n        * [链接信息](#链接信息)\n        * [评论信息](#评论信息)\n        * [统计信息](#统计信息)\n    * [4. 写文章](#4-写文章)\n    * [5. 本地运行](#5-本地运行)\n    * [6. 发布到 GitHub](#6-发布到-github)\n* [捐助 donate](#捐助-donate)\n* [Update Log](#update-log)\n* [License](#license)\n\n## 预览图\n\n先上预览图：\n\n主页\n![index](http://ww3.sinaimg.cn/large/7011d6cfjw1f3bdli86awj211k0oyqen.jpg)\n\n文章页\n![post](http://ww4.sinaimg.cn/large/7011d6cfjw1f3bdmzb9v6j210p0j7gwn.jpg)\n\n## 各部分详情\n\n### 主页 Home\n\n主页默认展示5篇文章的摘要部分，用户点击标题或阅读全文后进入文章页。右侧为近期文章、分类和标签3块区域，用户可以继续在这部分添加区域，只需修改`index.html`即可。\n\n### 归档页 Archives\n\n按照年份归档文章。\n\n### 分类页 Categories\n\n按照文章的分类，显示文章。\n\n### 标签页 Tags\n\n按照文章的标签显示文章。\n\n### 收藏页 Collections\n\n本页是用`markdown`写的，用户可以收藏自己喜欢的文章链接。\n\n### 展示页 Demo\n\n使用 [Masonry](http://masonry.desandro.com/) 重写了瀑布流布局，响应式布局，更好的交互体验。\n\n### 关于页 About\n\n对个人和对本站的介绍，使用`markdown`写的。\n\n### 评论\n\n支持 [多说评论](http://duoshuo.com/) 和 [disqus](https://disqus.com/) 评论。\n\n只需要在 `_config.yml` 修改相应的配置`short_name`即可，如下：\n\n```yml\n# comments\n# two ways to comment, only choose one, and use your own short name\n# 两种评论插件，选一个就好了，使用自己的 short_name\nduoshuo_shortname: #xxx\ndisqus_shortname: xxx\n```\n\n### 目录 Contents\n\n页面滚动时目录固定在屏幕右侧，若目录高度超出屏幕高度，目录产生滚动条。\n\n### 代码高亮\n\n随着 jekyll 的升级，目前代码高亮使用风格与 github 上的 markdown 写法一致。\n\n### 灯泡效果\n\n![light](http://ww3.sinaimg.cn/large/7011d6cfjw1f3be6y4vp3j209i02rweg.jpg)\n\n可以看到导航按钮高亮时，下面的阴影效果，我把这个称为灯泡效果。\n\n### 移动端适配\n\n完美适配移动端。\n\n![mobile](http://ww4.sinaimg.cn/large/7011d6cfjw1f3bebnzxkpj20ah0fzgp4.jpg)\n\n### Footer\n\n**欢迎使用这个主题，使用时请保留 footer 上的模板主题来源。**Theme designed by [HyG](https://github.com/gaohaoyang).\n![footer](http://ww3.sinaimg.cn/large/7011d6cfjw1f3bepd8002j20hl02ct95.jpg)\n\n关于旧版博客，我不再维护，同时我把代码转移到了另一个仓库，见 [Gaohaoyang/old-blog](https://github.com/Gaohaoyang/old-blog)。\n\n### 统计\n\n博客支持百度统计和 Google Analytics，只需在`_config.yml`中配置响应的id即可，代码如下。\n\n```yml\n# statistic analysis 统计代码\n# 百度统计 id，将统计代码替换为自己的百度统计id，即\n# hm.src = \"//hm.baidu.com/hm.js?xxxxxxxxxxxx\";\n# xxxxx字符串\nbaidu_tongji_id: xxxxxxxxxxxx\ngoogle_analytics_id: UA-xxxxxxxx # google 分析追踪id\n```\n\n## 博客主题使用方法\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\n```\n\n详情可以查看 jekyll 官网。[https://jekyllrb.com/](https://jekyllrb.com/) 或 中文翻译版 jekyll 官网[http://jekyllcn.com/](http://jekyllcn.com/) （中文文档翻译落后于英文官网，有兴趣有时间的小伙伴可以参与翻译，为开源世界贡献一份力哦~）\n\n![jekyll logo](http://jekyllcn.com/img/logo-2x.png)\n\n### 2. 复制博客主题代码\n\n可以直接 clone 、下载 或 fork 这个仓库的代码即可\n\n### 3. 修改参数\n\n主要修改 `_config.yml` 中的参数和自己的网站小图`favicon.ico`\n\n`_config.yml`文件中\n\n#### 基本信息\n\n主要用于网站头部header。\n\n```yml\n# Site settings\ntitle: HyG\nbrief-intro: Front-end Dev Engineer\nbaseurl: \"\" # the subpath of your site, e.g. /blog\nurl: \"http://gaohaoyang.github.io\" # the base hostname \u0026 protocol for your site\n```\n\n#### 链接信息\n\n主要用于网站底部footer。\n\n```yml\n# other links\ntwitter_username: gaohaoyang126\nfacebook_username: gaohaoyang.water\ngithub_username:  Gaohaoyang\nemail: gaohaoyang126@126.com\nweibo_username: 3115521wh\nzhihu_username: gaohaoyang\n\ndescription_footer: 本站记录我前端之旅的沿途风景！\n```\n\n#### 评论信息\n\n获取`short_name`的方法：\n\n访问 https://disqus.com/ 或 http://duoshuo.com/ 根据提示操作即可。\n\n```yml\n# comments\n# two ways to comment, only choose one, and use your own short name\n# 两种评论插件，选一个就好了，使用自己的 short_name\nduoshuo_shortname: #hygblog\ndisqus_shortname: gaohaoyang\n```\n\n运行成功后，可以在 disqus 或 多说 的后台管理页看到相关信息。\n\n#### 统计信息\n\n获取 百度统计id 或 Google Analytics id 的方法：\n\n访问 http://tongji.baidu.com/ 或 https://www.google.com/analytics/ 根据提示操作即可。当然，如果不想添加统计信息，这两个参数可以不填。\n\n```yml\n# statistic analysis 统计代码\n# 百度统计 id，将统计代码替换为自己的百度统计id，即\n# hm.src = \"//hm.baidu.com/hm.js?xxxxxxxxxxxx\";\n# xxxxx字符串\nbaidu_tongji_id: cf8506e0ef223e57ff6239944e5d46a4\ngoogle_analytics_id: UA-72449510-4 # google 分析追踪id\n```\n\n成功后，进入自己的百度统计或 Google Analytics 后台管理，即可看到网站的访问量、访客等相关信息。\n\n### 4. 写文章\n\n`_posts`目录下存放文章信息，文章头部注明 layout(布局)、title、date、categories、tags、author(可选)，如下：\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\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:/GitWorkSpace/blog/_config.yml\n            Source: E:/GitWorkSpace/blog\n       Destination: E:/GitWorkSpace/blog/_site\n Incremental build: disabled. Enable with --incremental\n      Generating...\n                    done in 6.33 seconds.\n  Please add the following to your Gemfile to avoid polling for changes:\n    gem 'wdm', '\u003e= 0.1.0' if Gem.win_platform?\n Auto-regeneration: enabled for 'E:/GitWorkSpace/blog'\nConfiguration file: E:/GitWorkSpace/blog/_config.yml\n    Server address: http://127.0.0.1:4000/\n  Server running... press ctrl-c to stop.\n```\n\n在本地访问 localhost:4000 即可看到博客主页。\n\n若安装了 Foxit 福昕pdf阅读器可能会占用4000端口，关闭 Foxit服务 或切换 jekyll 端口即可解决。详情见文章：[对这个 jekyll 博客主题的改版和重构](http://gaohaoyang.github.io/2016/03/12/jekyll-theme-version-2.0/)\n\n若正在使用全局代理，可能会报错502，关闭全局代理即可。\n\n### 6. 发布到 GitHub\n\n没什么问题，推送到自己的博客仓库即可。\n\n## 捐助 donate\n\n您也可以捐助我喝杯咖啡！感谢！\n\n支付宝\n\n![alipay](http://ww2.sinaimg.cn/large/7011d6cfjw1f3bk8ikzoij20740743z5.jpg)\n\n微信\n\n![wechat](http://ww2.sinaimg.cn/large/7011d6cfjw1f3bkdw3bslj206z06q3z6.jpg)\n\n感谢捐助的小伙伴！！！\n\n* 2016.05.08 收到 1057 ¥10.57 捐赠\n* 2016.05.07 收到 吴林 ¥2 捐赠\n* 2016.04.29 收到 北归 ¥10 捐赠\n* 2016.04.28 收到 魏楚阳_Brian ¥2 捐赠\n* 2016.04.28 收到 薛彬 ¥8.8 捐赠\n\n\n## Update Log\n\n### 2016.5.11 v2.0.1\n\n* `[^]` 优化代码，将页面中的大段评论相关代码抽离出来，放入`comments.html`\n* `[+]` 添加百度统计和Google分析代码，在`_config.yml`中配置相关参数即可\n* `[+]` 更新文档，添加博客主题使用方法，便于上手\n* `[+]` 添加了`favicon.ico`\n* `[^]` 修复 bug，目录太长时，滚动到最底部时隐藏到footer下面。修复后长目录在滚动到底部时使用`position:absolute`\n* `[^]` 修改目录区的滚动条样式（仅针对`webkit`内核浏览器）\n* `[^]` 修改 demo 页中 disqus 评论区 a 标签的颜色 bug，修改 blockqoute 中 p 标签的 margin\n* `[+]` 添加不蒜子计数功能，在footer上显示访问量\n* `[+]` 添加回到顶部功能\n\n### 2016.4.27 v2.0.0\n\n* `[^]` 基于 jekyll 3.1.2 重构了所有代码\n* `[+]` 主页添加了摘要，在正文中使用4个换行符来分割，可在`_config.yml`中修改\n* `[+]` 主页添加了近期文章、分类列表和标签云\n* `[+]` 主页导航区做了视觉优化，阴影效果\n* `[+]` 增加了归档、标签和分类页面\n* `[+]` 增加了收藏页面\n* `[+]` 评论插件可以选择 disqus 或 多说，直接在`_config.yml`中修改\n* `[+]` 适配移动端\n* `[+]` 页面滚动时，文章目录固定在右侧\n* `[+]` 页面内容较少时，固定 footer 在页面底部\n* `[^]` 使用 GitHub 风格的代码高亮写法，即\\`\\`\\`的写法，去除`highlight.js`代码高亮插件的使用\n* `[^]` 使用 Masonry 重写了 Demo 页中的瀑布流布局，响应式交互体验更好\n* `[-]` 去除了 jQuery 和 BootStrap，使得加载速度更快\n\n## License\n\n[MIT License](https://github.com/Gaohaoyang/gaohaoyang.github.io/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjihuun%2Fdocumentudy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjihuun%2Fdocumentudy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjihuun%2Fdocumentudy/lists"}