{"id":23239415,"url":"https://github.com/r32/r32.github.io","last_synced_at":"2025-06-25T01:35:24.265Z","repository":{"id":16472197,"uuid":"19224409","full_name":"R32/r32.github.io","owner":"R32","description":"使用 jekyll 创建的个人笔记","archived":false,"fork":false,"pushed_at":"2024-10-03T08:09:44.000Z","size":2934,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T03:17:18.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/R32.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2014-04-28T02:15:45.000Z","updated_at":"2024-10-03T08:09:48.000Z","dependencies_parsed_at":"2024-12-19T04:32:50.743Z","dependency_job_id":"8f26ba5c-3dc9-4f4e-b877-4ba4e4335c9b","html_url":"https://github.com/R32/r32.github.io","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R32%2Fr32.github.io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R32%2Fr32.github.io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R32%2Fr32.github.io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R32%2Fr32.github.io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/R32","download_url":"https://codeload.github.com/R32/r32.github.io/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406110,"owners_count":20933806,"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":[],"created_at":"2024-12-19T04:28:08.400Z","updated_at":"2025-04-05T22:13:40.939Z","avatar_url":"https://github.com/R32.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"[blog](http://r32.github.io)\n----\n\n\n- [x] 需要把代码块的 `haxe` 替换成别的比如 js, 因为无法通过本地编译了, 或者以后等更新了.\n\n\n### 参考\n\n* [Liquid](https://github.com/Shopify/liquid/wiki/Liquid-for-Designers)\n\n* [variables](https://jekyllrb.com/docs/variables/)\n\n* [github pages jekyll 版本对比](https://pages.github.com/versions/)\n\n* [github 元数据](https://help.github.com/articles/repository-metadata-on-github-pages/)\n\n* jekyll 自带的模板选择 \u003chttps://github.com/pages-themes/\u003e\n\n* [github _config.yml](https://help.github.com/en/articles/configuring-jekyll)\n\n### 更新\n\n* 2014-10-4 12:24 : 将 _post目录中的各文件放置到相关目录中去\n\n  这个改动,引起了一项错误. 就 Liquid 提示 以前对应的 post_url 指向了不正确. 因此修正如下:\n\n  ```\n  # post_url\n  [haxe 中引用 SWC 文件 ]({% post_url haxe/2014-05-10-tips-haxe-flash %})\n\n  # 文章将根据文件头部的 categories 属性来分类, 而文件所在目录, 会影响到 post_url,\n  ```\n\n* 2014-10-4 12:24 : 添加 with_toc_data\n\n  ```yml\n  markdown: redcarpet\n\n  redcarpet:\n    extensions: [\"no_intra_emphasis\", \"fenced_code_blocks\", \"autolink\", \"tables\", \"with_toc_data\"]\n  ```\n\n* 2014-12-16 12:22: markdown 文件中 [中文Topic](#中文topic) 没有正确跳到锚点\n\n  \u003e 发现 markdown 解析引擎 redcarpet, 会自动把所有英文字符转为小写\n  \u003e\n  \u003e 空格字符将会被替换成减号 `-`\n  \u003e\n  \u003e `#### Desc(Note)` 这样的标题将变成为 `\u003ch4 id=\"Desc-Note\"\u003eDesc(Note)\u003c/h4\u003e`\n  \u003e\n  \u003e 但是 github 上的页面则为: `\u003ch4\u003e\u003ca id=\"user-content-DescNote\" href=\"DescNote\"\u003e\u003c/a\u003eDesc(Note)\u003c/h4\u003e`\n\n* 2015-2-2 更简洁的结构,设计更改, 不需要所有页面都使用 default.layout 这样后期不好维护更改.特别是 主页需要独立出来\n\n  抛弃变量 post.categories[0] 而转而使用 page.dir 来控制目录\n\n\n* 2015-3-25\n\n  - 将 css3-mediaqueries.js 替换为 Respond.js, 将 html5shiv 与 respond 整合为 lt-ie9 文件\n\n  - 添加  IE10 viewport hack 于 comm.js\n\n  - 尝试修正 ie8　的 strick-footer 的显示问题, 但最后维持不变,因为新的解决方法不适合文档页面\n\n  - 引用公共bootstrap cdn服务器上的 jQuery 和 bootstrap, 在 _config.yml 中添加 use_cdn 变量\n\n  注: 但是 bootstrap.css 照旧,因为 ie8 在处理 html5shiv 或 respond 时 无法处理 cdn 上的文件\n\n* 2016-2-8 由于 github-pages 在 5月时将只支持 `kramdown`, 因此估计要做大量的迁移改动\n\n  - 为了支持 \"fenced code blocks\" 需要添加:\n\n  ```yml\n  kramdown:\n  input: GFM\n  ```\n  - auto_ids: 1)字母将转换为小写 2)空格将转换成\"-\" 3)...\n\n* 2019-07-26: 移除了 bootstap, jquery, 保持极简模式.\n\n  - [x] ~~TODO:  页面左边的 scrollspy 后续再实现~~\n\n### 主要设计结构\n\n* _layouts\n  - home 用于主页\n  - default 用于除主页的目录\n  - post 用于单独的一篇 markdown\n\n* _includes\n  - head 默认的 `\u003chead\u003e` 标签内容\n  - header 默认的标题顶栏\n  - list-post 用于列出各目录的文章标题摘要\n  - footer 页脚\n\n* 几个特殊字符 `『』「」`\n\n### 错误\n\n* 可在乱掉的目录下尝试 windows 命令: `icacls * /T /Q /C /RESET`\n\n  - 如果这个命令没有权限，则右键属性去修改文件夹\n\n* window 复制的文件,或新建文件由于没有 文件权限,当 `jekyll build` 后,无法打开这些没有权限的文件, 当本地测试时\n\n  ```bash\n  # 以管理员模式进入 bash, 通过这个命令更改文件权限, 避免本地测试时无法复制。\n  chmod -R 755 ./\n  ```\n\n### TODOS:\n\n- [x] 由于 github-pages 将在 5月份不再支持 `redcarpet` 而使用 `kramdown` 来处理 markdown 文件,这个估计要改动很多页面\n\n  \u003chttps://help.github.com/articles/updating-your-markdown-processor-to-kramdown/\u003e\n\n- [x] 由于 jekyll 升级到了 3.0 因此之前 `{{post_url dir/filename}}` 的语法需要调整为 `{{post_url filename}}` 即移除目录就行了.\n\n### kramdown\n\n这个markdown的语法的解析有一点不太一样需要参考 \u003chttp://kramdown.gettalong.org/syntax.html\u003e\n\n\u003chttps://github.com/planetjekyll/quickrefs/blob/master/FAQ.md\u003e\n\n[在线编辑器](http://kramdown.herokuapp.com/)\n\n* list 后边接代码块, `*` 符号前边不能有空格, 只能是 2 个空格或 4 个空格, 不能是 tab\n\n* blockquote, `\u003e` 换行后前不可以有空格, 多个符号将 intent(相当于Tab)\n  - blockquote后可以接 段落 和 List列表\n\n* TAB 后的文字将会被包装成 `\u003cpre\u003e`, 如果想分开成二个可以加入 EOB 标记, 这个 EOB 标记还真不好理解\n\n  ```markdown\n      Here comes some code\n  ^\n    This one is separate.\n  ```\n\n\n* List 区别, 需要多按 2 个空格比上一级(但好像有时也不起作用.)\n\n  ```markdown\n  *   First item\n\n      A second paragraph\n\n      * nested list\n\n      \u003e blockquote\n\n  *   Second item\n  ```\n\n* 转义字符 `\\` 将输出一些原始字符\n\n* 将链接自动转换, 需要以 https 开头 e.g: `Information can be found on the \u003chttp://example.com\u003e homepage.`\n\n* 为 toc 指定 ID 值(不通用)\n\n  ```markdown\n  Hello\t\t{#some-hello}\n\n  # Hello\t\t{#first}\n  ## Hello ##\t{#second}\n  ```\n\n* 脚注(似乎并不通用)\n\n  ```markdown\n  This is some text.[^1]. Other text.[^footnote].\n\n  * 定义\n\n  [^1]: Some *crazy* footnote definition.\n\n  [^footnote]:\n    \u003e Blockquotes can be in a footnote.\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr32%2Fr32.github.io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr32%2Fr32.github.io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr32%2Fr32.github.io/lists"}