{"id":13431176,"url":"https://github.com/geektutu/hexo-theme-geektutu","last_synced_at":"2025-04-12T01:42:59.526Z","repository":{"id":53825557,"uuid":"92710875","full_name":"geektutu/hexo-theme-geektutu","owner":"geektutu","description":"极速加载的Hexo主题，不引入第三方JS库","archived":false,"fork":false,"pushed_at":"2021-03-05T14:09:49.000Z","size":2999,"stargazers_count":309,"open_issues_count":8,"forks_count":39,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-05-20T09:18:49.976Z","etag":null,"topics":["hexo","javascript","theme","website"],"latest_commit_sha":null,"homepage":"https://geektutu.com","language":"EJS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geektutu.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}},"created_at":"2017-05-29T05:56:03.000Z","updated_at":"2024-05-11T14:19:27.000Z","dependencies_parsed_at":"2022-08-22T03:21:14.264Z","dependency_job_id":null,"html_url":"https://github.com/geektutu/hexo-theme-geektutu","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/geektutu%2Fhexo-theme-geektutu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geektutu%2Fhexo-theme-geektutu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geektutu%2Fhexo-theme-geektutu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geektutu%2Fhexo-theme-geektutu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geektutu","download_url":"https://codeload.github.com/geektutu/hexo-theme-geektutu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505827,"owners_count":21115353,"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":["hexo","javascript","theme","website"],"created_at":"2024-07-31T02:01:01.087Z","updated_at":"2025-04-12T01:42:59.506Z","avatar_url":"https://github.com/geektutu.png","language":"EJS","funding_links":[],"categories":["Content"],"sub_categories":[],"readme":"# Hexo-theme-geektutu\n\n\u003e [极客兔兔的博客](https://geektutu.com)目前使用该主题。\n\u003e [Github - Geektutu's Blog](https://github.com/geektutu/geektutu-blog)\n\n![样图](Geektutu.png)\n\n## 1. 特性\n\n- [x] 支持标签、归档 (2019-06-06)。\n- [x] 支持`baidu` `google` `biying` `360`站点认证，以及`baidu`站点统计(2019-06-07)。\n- [x] 支持显示目录，目录随文章滚动高亮(2019-06-07)。\n- [x] 增加对gitalk（基于Github Issue第三方评论）的支持(2019-06-07)。\n- [x] 响应式布局，支持PC和移动端(2019-06-08)。\n- [x] 增加支付宝、微信赞赏功能(2019-06-08)。\n- [x] 对专题进行强化，聚合同专题链接，[点击查看效果](https://geektutu.com/post/tensorflow-make-npy-hdf5-data-set.html)(2019-06-13)。\n- [x] 点击文章区域的图片，可以查看大图，再点击图片则关闭。(2019-06-17)\n- [x] 使用QRious实现生成二维码功能，方便微信扫一扫，阅读/分享。(2019-06-17)\n- [x] 添加开关控制百度网址自动推送功能。(2019-06-22)\n- [x] 添加点击页面出现彩蛋的特效。(2019-06-22)\n- [x] 侧边栏目录与专题可进行切换，完善内链功能，方便依次浏览所有同专题的文章，进一步强化专题。(2019-06-22)\n- [x] 添加文章置顶功能。(2019-06-17)\n- [x] 不蒜子统计。(2019-08-09)\n- [x] 新增 Cheat Sheet 样式。 [点击查看效果](https://geektutu.com/post/cheat-sheet-sqlite.html) (2020-03-01)\n\n## 2. Hexo 基础命令\n\n```bash\nhexo new post \"\u003cpost name\u003e\" # 创建一篇新文章\nhexo clean \u0026\u0026 hexo generate # 生成静态文件\nhexo server # 本地调测\nhexo deploy # 自动部署到你配置的仓库的gh-pages分支\n```\n\n## 3. 如何使用该主题\n\n- 第一步，初始化博客\n\n```bash\ncd \u003cempty_dir\u003e # 进入一个空目录\nhexo init      # 初始化hexo博客\n```\n\n- 第二步，将package.json中的内容替换为[4.1](#user-content-41-packagejson)中的内容\n\n- 第三步，下载主题，并启动\n\n```bash\nnpm i   # 安装依赖\nnpm update # 下载geektutu主题\nnpm build  # 生成页面\nnpm start  # http://localhost:4000 可以看到效果\n```\n\n- 最终的目录结构\n\n```bash\n|--node_modules/\n|--source/\n    |--_posts/\n        |-- link.md  # 友链，必须有\n        |-- about.md # 关于我，必须有\n    |--img/   # _config.xml配置的img/xxx在这里\n        |--icon.png\n        |--bg.jpg\n        |--pay/ # 赞赏的图片位置，可自定义\n            |--alipay.jpeg\n            |--wechat.jpeg\n    |--archives/  # 归档\n        index.md\n    |--series/    # 专题\n        index.md\n    |--tags/      # 标签\n        index.md\n    |--404.md\n    CNAME\n|--themes/\n    |--geektutu/ # 主题将会下载在这里\n|--_config.xml   # 配置在这里\n|--package.json\n```\n\n## 4. 我的博客配置\n\n### 4.1 package.json\n\n```json\n{\n  \"name\": \"hexo-site\",\n  \"version\": \"0.0.0\",\n  \"private\": true,\n  \"hexo\": {\n    \"version\": \"3.8.0\"\n  },\n  \"scripts\": {\n    \"update\": \"rm -rf themes/geektutu \u0026\u0026 git clone https://github.com/geektutu/hexo-theme-geektutu.git themes/geektutu\",\n    \"build\": \"hexo clean \u0026\u0026 hexo generate\",\n    \"start\": \"hexo server --draft\",\n    \"deploy\": \"hexo deploy\"\n  },\n  \"dependencies\": {\n    \"hexo\": \"^3.9.0\",\n    \"hexo-deployer-git\": \"^2.1.0\",\n    \"hexo-generator-category\": \"^1.0.0\",\n    \"hexo-generator-feed\": \"3.0.0\",\n    \"hexo-generator-index\": \"1.0.0\",\n    \"hexo-generator-sitemap\": \"2.0.0\",\n    \"hexo-generator-tag\": \"1.0.0\",\n    \"hexo-renderer-ejs\": \"1.0.0\",\n    \"hexo-renderer-marked\": \"2.0.0\",\n    \"hexo-renderer-stylus\": \"1.1.0\",\n    \"hexo-server\": \"1.0.0\"\n  }\n}\n```\n\n### 4.2 _config.yml\n\n```yml\n# Hexo Configuration\n## Docs: https://hexo.io/docs/configuration.html\n\n# Site\ntitle: 极客兔兔\nkeyword: 极客兔兔,极客兔兔的博客,极客兔兔的小站\ndescription: 极客兔兔的小站，致力于分享一些技术教程和有趣的技术实践。\nauthor: 极客兔兔\nlanguage: zh-CN\n\nurl: https://geektutu.com\nroot: /\npermalink: post/:title.html\n\n# seo优化各个浏览器的验证信息\nbeian: 沪ICP备18001798号-1\nseo_title: 极客兔兔 # 子页面的后缀，效果： 关于我 | 极客兔兔，如果与title一致，则可以不设置\nseo:\n  google_site_verification: 19ixTFj-X-rXuvZFvR1PMkqSHMXZ5GjN7nhYdYYFm-c\n  baidu_site_verification: p7Pz3jlx4t\n  ms_site_verification: 7E2AEE3378AC93764DEAB411177A21A1\n  _360_site_verification: 5c7e8a1fdbf35ed6003c48733208f705 # 不能以数字开头，所以加上了下划线\n\n# 开启博客资源的相对链接 https://hexo.io/zh-cn/docs/asset-folders\npost_asset_folder: true\n\n# Site settings\nheader_icon: img/icon.png\n\ntheme: geektutu\n\n# Deployment\n## Docs: https://hexo.io/docs/deployment.html\ndeploy:\n  type: git\n  repository: https://git.coding.net/gzdaijie/geektutu-blog.git\n  branch: coding-pages\n\ngitalk:\n  client_id: 'c1fdd456a4caae5f7df0'\n  client_secret: 'b2674451e21feae50520f99337ec15d2aebe7879'\n  accessToken: 'xxxx'\n  repo: 'hexo-theme-geektutu'\n  owner: 'geektutu'\n\n# alipay wechatpay 的二维码转换的网址，不使用二维码图片，提高加载速率。\n# https://cli.im/deqr 可将二维码转为网址\nreward:\n  alipay: HTTPS://QR.ALIPAY.COM/FKX060337TUXBAX9LIFJE8\n  wechat: wxp://f2f0qgGBlfD1nZXjvBjievxB0z0fc0W2sBq5\n\nrelated_links:\n- link: https://github.com/geektutu/hexo-theme-geektutu\n  img: img/related_links/github.png\n- link: https://github.com/geekcircle\n  img: img/related_links/geekcircle.png\n- link: mailto:Geektutu\u003cgzdaijie@gmail.com\u003e?subject=From Geektutu's Blog\n  img: img/related_links/email.png\n\n# 文章末尾配置一些提示信息，可选，不配置则不显示\npost_tips:\n  find_me: true # 本站永久域名「 xx.domain 」， 也可以通过搜索「 xx 」找到我。\n  zhihu_zhuanlan: https://zhuanlan.zhihu.com/geektutu # 欢迎关注我的「 知乎专栏 」，所有文章可在「 知乎APP 」查看。\n\nwidgets:\n  mobile_qrcode: false # 开启移动端二维码，扫一扫，手机上阅读\n  caidan: true  # 开启彩蛋，点击屏幕会随机弹出 '点个赞','留个言'等\n  busuanzi: true # 开启不蒜子统计 https://busuanzi.ibruce.info/\n\nba_auto_push: true # Baidu 自动推送，以下均为可选配置\nba_track_id: 1a0ec33b1aa # Baidu Analytics\ncnzz_track_id: 123649 # CNZZ Analytics\ngoogle_analysis: UA-141425-1 # Google Analytics\ngoogle_ad_client: ca-pub-939225546 # Google Ad\n\nfeed:\n  enable: true\n  limit: 0\n  type: rss2\n  content: false\n  path: feed.xml\n  icon: img/icon.png\n```\n\n### 4.3 md参考\n\n- archives/index.md [效果](https://geektutu.com/archives)\n\n```markdown\n---\nlayout: \"archive\"\ntitle: \"归档\"\ndescription: \"极客兔兔的博客的归档列表\"\n---\n```\n\n- tags/index.md  [效果](https://geektutu.com/tags)\n\n```markdown\n---\nlayout: \"tags\"\ntitle: \"标签\"\ndescription: \"极客兔兔的博客的标签列表\"\n---\n```\n\n- series/index.md  [效果](https://geektutu.com/series)\n\n```markdown\n---\nlayout: \"category\"\ntitle: \"专题\"\ndescription: \"极客兔兔的博客的专题列表\"\n---\n```\n\n- _posts/about.md [效果](https://geektutu.com/post/about.html)\n\n```markdown\n---\ntitle: 关于我\ndate: 2017-07-03 11:51:24\ndescription: 极客兔兔的小站，致力于分享一些技术教程和有趣的技术实践。\ntags:\n- 关于我\n---\n\n## 个人介绍\n\n··· 省略\n\n```\n\n- _posts/tensorflow-mnist-simplest.md [效果](https://geektutu.com/post/tensorflow-mnist-simplest.html)\n\n```markdown\n---\ntitle: TensorFlow入门(一) - mnist手写数字识别(网络搭建)\ndate: 2017-12-09 11:51:24\ndescription: TensorFlow 入门系列文章，mnist手写数字识别(网络搭建)。\ntags:\n- 机器学习\n- tensorflow\n- mnist\n- Python\nnav:\n- TensorFlow\ncategories:\n- TensorFlow教程\ntop: 1\ngithub: https://github.com/geektutu/tensorflow-tutorial-samples\nimage: post/tensorflow-mnist-simplest/xxx.jpg\n---\n\n这篇文章是整个 TensorFlow入门-mnist手写数字识别系列的第一篇，主要介绍了如何从0开始用tensorflow搭建最简单的网络进行训练。\n\n··· 省略\n```\n\n\u003e 注意，这里的`image`是显示在主页和推荐阅读文章卡片左侧的图片，尽量选择方形的图片，相对路径从`根路径`开始。\n\u003e 关于`nav`，默认导航框显示的是 categories 的值，避免分类太多，可以使用nav标签聚合，属于同一`nav`的 `categories` 导航链接将会聚合在一起。\n\u003e nav 可选设置，若不设置，将平铺所有的 `categories`。\n\u003e top 是置顶顺序。\n\n## 5. 最后\n\n喜欢就点个[star](https://github.com/geektutu/hexo-theme-geektutu)吧。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeektutu%2Fhexo-theme-geektutu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeektutu%2Fhexo-theme-geektutu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeektutu%2Fhexo-theme-geektutu/lists"}