{"id":13430728,"url":"https://github.com/CodeDaraW/Hacker","last_synced_at":"2025-03-16T06:31:04.331Z","repository":{"id":40449223,"uuid":"54007722","full_name":"CodeDaraW/Hacker","owner":"CodeDaraW","description":"❤️ A simple theme for Hexo","archived":false,"fork":false,"pushed_at":"2022-09-06T08:39:42.000Z","size":88,"stargazers_count":643,"open_issues_count":1,"forks_count":133,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-05-20T09:17:02.841Z","etag":null,"topics":["elegant","hexo","simple","theme"],"latest_commit_sha":null,"homepage":"https://blog.daraw.cn/","language":"Stylus","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeDaraW.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-16T06:47:49.000Z","updated_at":"2024-05-14T09:19:31.000Z","dependencies_parsed_at":"2022-07-14T10:21:32.436Z","dependency_job_id":null,"html_url":"https://github.com/CodeDaraW/Hacker","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/CodeDaraW%2FHacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDaraW%2FHacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDaraW%2FHacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDaraW%2FHacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeDaraW","download_url":"https://codeload.github.com/CodeDaraW/Hacker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835952,"owners_count":20355611,"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":["elegant","hexo","simple","theme"],"created_at":"2024-07-31T02:00:57.166Z","updated_at":"2025-03-16T06:31:04.047Z","avatar_url":"https://github.com/CodeDaraW.png","language":"Stylus","readme":"# Hacker | [中文版文档](/README_zh-CN.md)\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badge/)  [![GPL Licence](https://badges.frapsoft.com/os/gpl/gpl.svg?v=103)](https://opensource.org/licenses/GPL-2.0)  \n\n\n__Hacker is a simple blog theme focused on writing. In such a trend of complex typography, choose the return to origins, focusing on writing this matter.__  \n\nThe beginning is [moyo](http://liuxinyu.me/) created a theme of Wordpress , by DaraW transplanted to Hexo.\n\n## Demo\nYou can refer to my blog: [DaraW](http://blog.daraw.cn/).  \nAlso, you can try auto-deployment with TravisCI, refer to [CodeDaraW/Blog](https://github.com/CodeDaraW/Blog)。\n\n![](https://ooo.0o0.ooo/2016/08/04/57a306f56bee2.png\n)\n\n## Installation\nFirstly get the theme files, `git clone` or `download zip` both are ok.  \n\nCreate a folder named `Hacker` in the folder `themes`, and copy all the theme files to the folder `Hacker`.  \n\nThen apply the theme in the hexo global configuration file `_config.yml`:\n\n```yaml\ntheme: Hacker\n```\nNow all are in order, just enjoy~\n\n__Notice: After every update, you'd better run command `hexo clean` to clean cache files before Hexo generating, in case of some problems cache files bring.__\n\n\n## Configure\n### Enable comments and Google Analytics\nRefering to the example configuration file `_config.example.yml`, \ncreate the theme configuration file `_config.yml` and edit it:\n\n```yaml\n# gitment\ngitment: false\ngitment_owner:\ngitment_repo:\ngitment_client_id:\ngitment_client_secret:\n\n# gitalk\ngitalk: false\ngitalk_owner:\ngitalk_admin: []\ngitalk_repo:\ngitalk_client_id:\ngitalk_client_secret:\n\n# valine comment\nvaline: false\nleancloud_id:\nleancloud_key:\n\n# disqus comment\ndisqus: false\ndisqus_shortname:\n\n# utterances comment\nutterances: false\nutterances_repo:\n\n# livere city comment\nlivere: false\nlivere_data_uid:\n\n# giscus comment\ngiscus: false\ndata_repo: \ndata_repo_id: \ndata_category: \ndata_category_id: \ndata_mapping: \n#data_term: \ndata_strict: 0\ndata_reactions_enabled: 0\ndata_emit_metadata: 0\ndata_input_position: bottom \ndata_loading: \ndata_lang: \n\n# google analytics\ngoogleTrackId:\n\n# baidu analytics\nbaiduTrackId:\n```\n\n`gitment`: `boolean`，use gitment or not  \n`gitment_owner`: `string`，your GitHub ID    \n`gitment_repo`: `string`，the repo to store comment data  \n`gitment_client_id`: `string`，your client ID  \n`gitment_client_secret`: `string`，your client secret  \n\n`gitalk`: `boolean`，use gitalk or not  \n`gitalk_owner`: `string`，your GitHub ID  \n`gitalk_admin`: `array`，all the admin GitHub IDs  \n`gitalk_repo`: `string`，the repo to store comment data \n`gitalk_client_id`: `string`，your client ID \n`gitalk_client_secret`: `string`，your client secret  \n\n`valine`: `boolean`, use Valine or not  \n`leancloud_id`: `string`, your leancloud ID  \n`leancloud_key`: `string`, your leancloud Key  \n\n`disqus`: `boolean`, use disqus or not\n`disqus_shortname`: your disqus site shortname.\n\n`utterances`: `boolean`, use utterances or not  \n`utterances_repo`: `string`，the repo to store comment data\n\n`livere`: `boolean`, use livere city or not  \n`livere_data_uid`: `string`，you can find it here https://livere.com/insight/myCode\n\n`giscus`: `boolean`, use giscus or not  \n`data_repo`: `string`，the repo to store comment data   \n`data_repo_id`: `string`，You can get it eaily from https://giscus.app  \n`data_category`: When searching for a matching discussion, giscus will only search in this category.  \n`data_category_id`: `string`，You can get it eaily from https://giscus.app . It is recommended to use a category with the Announcements type.  \n`data_mapping`: Enter pathname or URL or title or og:title or specific or number  \n`data_term`: If you choose specific or number in data_mapping , please turn on this option and ENTER TERM or NUMBER HERE.  \n`data_strict`: `boolean`, use strict title matching or not  \n`data_reactions_enabled`: `boolean`, enable reactions for the main post or not  \n`data_emit_metadata`: `boolean`, emit discussion metadata or not  \n`data_input_position`: Enter \"top\" or \"bottom\" to place the comment box above the comments or below the comments    \n`data_loading`: Enter \"lazy\" to Load the comments lazily or keep blank  \n`data_lang`:  The language giscus will be displayed in.\n\n`googleTrackId`: your Google Analytics ID, Hacker will not use Google Analytics if it's empty.\n\n`baiduTrackId`: your Baidu Analytics ID, Hacker will not use Baidu Analytics if it's empty.\n\n### Enable Categories and Tags pages\nCategories Page: run `hexo new page categories`，then modify the generated file `source/categories/index.md`：\n``` markdown\ntitle: categories\ndate: 2017-01-30 19:16:17\nlayout: \"categories\"\n---  \n```\nIf you need to close comments of this page , you can add a line `comments: false`; `title` corresponds to the title of the page.\n\nTags Page: run `hexo new page tags`，then modify the generated file `source/tags/index.md`：\n``` markdown\ntitle: tags\ndate: 2017-01-30 19:16:17\nlayout: \"tags\"\n---  \n```\nConfiguration is the same as Categories Page.  \n\nAdd links to the menu: Edit the `_config.yml` file of the theme, add `Categories: /categories` and `Tags: /tags` in `menu` like this：\n``` yml\nmenu:\n  Home: /\n  Archives: /archives\n  Categories: /categories\n  Tags: /tags\n```\n\n## Automation Deploy\n\nTo avoid the conflict, i added `_config.xml` to `gitignore`. so if you want to deploy the blog through automated tools, please remove `_config.xml` from `gitignore` or add symbolic link.\n\n## License\n\nGNU GPL(General Public License) v2.0\n","funding_links":[],"categories":["Content","Stylus"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCodeDaraW%2FHacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCodeDaraW%2FHacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCodeDaraW%2FHacker/lists"}