{"id":21561899,"url":"https://github.com/easonzero/geekblog","last_synced_at":"2025-04-10T12:06:24.651Z","repository":{"id":112072384,"uuid":"73039520","full_name":"Easonzero/GeekBlog","owner":"Easonzero","description":"A Lite and Geek-Style Blog Generator ","archived":false,"fork":false,"pushed_at":"2019-04-07T07:44:15.000Z","size":1233,"stargazers_count":24,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T10:56:26.514Z","etag":null,"topics":["node"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"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/Easonzero.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":"2016-11-07T03:36:40.000Z","updated_at":"2024-04-26T06:47:03.000Z","dependencies_parsed_at":"2023-04-15T17:17:55.569Z","dependency_job_id":null,"html_url":"https://github.com/Easonzero/GeekBlog","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/Easonzero%2FGeekBlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Easonzero%2FGeekBlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Easonzero%2FGeekBlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Easonzero%2FGeekBlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Easonzero","download_url":"https://codeload.github.com/Easonzero/GeekBlog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248216962,"owners_count":21066632,"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":["node"],"created_at":"2024-11-24T09:29:20.477Z","updated_at":"2025-04-10T12:06:24.646Z","avatar_url":"https://github.com/Easonzero.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GeekBlog\n\n[![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE)\n[![Badge](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu/#/zh_CN)\n\nA Lite and Geek-Style Blog Generator  \n一个`轻量的`、`极客风格`的博客生成器  \n\n[geekblog展示博客](http://easonzero.github.io)\n\n为什么说是极客风格呢？该博客生成器的默认主题采用终端风格，打造酷炫的geek风页面  \n而且不单单只是风格，默认主题上的终端是完全可以使用的...  \n![结果](./image/result.png)\n\n### Installation\n说实话写的好累啊- -  \n这个东西就不挂在npm上了  \n想用的人请自行clone，使用方法往下读\n\n### Run\n\nclone之后首先要在根目录下初始化全局命令:\n\n```shell\nsudo npm install -g\n```\n\n初始化:  \n\n```shell\ngeekcli init    #初始化博客生成器\ngeekcli build   #构建、生成博客\ngeekcli server  #运行调试服务器，通过127.0.0.1:4000可以本地访问生成的博客\n```\n\n发布文章:  \n\n```shell\ngeekcli post create ${文章路径} #创建文章\ngeekcli post update ${文章路径} #更新文章\ngeekcli post delete ${文章路径} #删除文章\n```\n\nps.`data.json`文件中管理数据，目前可以在里面设置博客名、知乎链接、github链接、友链\n### Themes DIY\n\n首先，最后生成的页面是由完全静态的html、js、css文件组成，这意味着只要你会前端，就可以随意制作自己的主题。  \n\n在这个前提下，GeekBlog提供了简单的模板功能，目前可以定制统一的文章`post`界面风格和主页`index`界面风格，之后会开放更多的模板，所有模板在layout文件夹下。  \n\n在使用模板时需要注意的是，GeekBlog为模板提供了数据支持：  \n\n* 模板中可以使用`{{}}`语法，在html中插入相应的数据，也可以通过在js中直接调用data获得所有数据。\n* 在post模板中，可以调用所有与本文章相关的数据\n* 在post之外的模板中，可以调用所有数据\n* 可调用的数据键名和数据格式请参考`./data.json`中的内容\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasonzero%2Fgeekblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasonzero%2Fgeekblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasonzero%2Fgeekblog/lists"}