{"id":21347282,"url":"https://github.com/zddhub/zddhub.github.io","last_synced_at":"2025-08-02T09:10:19.304Z","repository":{"id":22085457,"uuid":"25415023","full_name":"zddhub/zddhub.github.io","owner":"zddhub","description":"zddhub's blog www.zddhub.com","archived":false,"fork":false,"pushed_at":"2024-04-15T12:27:56.000Z","size":43143,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-21T04:03:43.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/zddhub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2014-10-19T01:44:42.000Z","updated_at":"2024-04-23T14:36:49.870Z","dependencies_parsed_at":"2023-02-18T07:30:32.334Z","dependency_job_id":"37d4b5ea-1c51-449b-a1f8-faabb59fc1c3","html_url":"https://github.com/zddhub/zddhub.github.io","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Fzddhub.github.io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Fzddhub.github.io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Fzddhub.github.io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Fzddhub.github.io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zddhub","download_url":"https://codeload.github.com/zddhub/zddhub.github.io/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243822295,"owners_count":20353500,"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-11-22T02:13:36.392Z","updated_at":"2025-03-16T04:16:24.944Z","avatar_url":"https://github.com/zddhub.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"zddhub's blog\n-------------\n\nI want to write in a clean workspace, that only includes plain text (such as: markdown file) and assets referenced in articles.\n\nGem-based Jekyll theme is a good choice but Github doesn't support customized theme now ([Supported theme list](https://pages.github.com/themes/)).\n\nso ...\n\n\n### Blogs and Jekyll pages separation solution\n\nMy site is separated into three parts:\n\n- [Blogs](https://github.com/zddhub/zddhub.github.io/tree/blogs) - Only include markdown files and assets (also support gem-based theme)\n- [Gravid](https://github.com/zddhub/gravid) - A simple and beautiful jekyll theme.\n- [Jekyll pages](https://github.com/zddhub/zddhub.github.io/tree/master) - Above two parts are included by `git submodule`, and this repo just link important files for Jekyll pages.\n\n\n### How to do\n\n* Add submodules to Jekyll site.\n\n```sh\n    git submodule add -b blogs https://github.com/zddhub/zddhub.github.io .blogs\n    git submodule add -b master https://github.com/zddhub/gravid .gravid\n```\n\n* Symlink important files to Jekyll site.\n\n```sh\n    ln -s .blogs/posts _posts\n    ln -s .blogs/assets assets\n    ln -s .blogs/journal journal\n    ln -s .blogs/about.md about.md\n    ln -s .blogs/archive.md archive.md\n    ln -s .blogs/index.md index.md\n    ln -s .blogs/_config.yml _config.yml\n\n    mkdir -p _includes # the symlinked files under `includes` cannot be used.\n    ln -s .gravid/_layouts _layouts\n    ln -s .gravid/_sass _sass\n    ln -s .gravid/404.html 404.html\n    ln -s .gravid/ads.txt ads.txt\n```\n\n\n### Usage\n\n* Clone repo with submodules (once at first time)\n\n```sh\n    git clone --recursive https://github.com/zddhub/zddhub.github.io.git\n```\n\n* After you updated and pushed [Blogs](https://github.com/zddhub/zddhub.github.io/tree/blogs) or [Gravid](https://github.com/zddhub/gravid), run `./publish_blog` to trigger Jekyll pages on Github side.\n\n\n### Gem-based blog\n\nIf Github page supports customized theme later, or in your local environment, You can use gem-based style.\n\n```sh\ngit clone https://github.com/zddhub/zddhub.github.io.git -b blogs\n\n```\n\nAnd add this line to your Jekyll site's `_config.yml`:\n\n```yaml\ntheme: gravid\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install gravid\n\nRun `bundle exec jekyll serve` and open your browser at `http://localhost:4000`.\n\n\n### Troubleshooting\n\nIf you want debug in local (master branch) with `jekyll server --watch`, you will find some INFO like this:\n\n```sh\n    ** ERROR: directory is already being watched! **\n```\n\nDon't worry, this is just a Warning.\n\n\n### Contact\n\nIf you have any question or idea, please [email to me](mailto:zddhub@gmail.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzddhub%2Fzddhub.github.io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzddhub%2Fzddhub.github.io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzddhub%2Fzddhub.github.io/lists"}