{"id":13601391,"url":"https://github.com/shen-yu/hexo-theme-ayer","last_synced_at":"2025-10-06T21:52:56.774Z","repository":{"id":36663893,"uuid":"225604871","full_name":"shen-yu/hexo-theme-ayer","owner":"shen-yu","description":"一个干净优雅的hexo主题 A clean and elegant theme for Hexo.  🐋","archived":false,"fork":false,"pushed_at":"2024-12-11T15:52:41.000Z","size":5336,"stargazers_count":1862,"open_issues_count":22,"forks_count":298,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-10-03T00:31:47.986Z","etag":null,"topics":["ayer","elegant-theme","hexo","hexo-theme","theme"],"latest_commit_sha":null,"homepage":"https://ayer.886622.xyz","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shen-yu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":null,"patreon":null,"open_collective":"ayer","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://shen-yu.github.io/images/wechat.jpg","https://shen-yu.github.io/images/alipay.jpg"]}},"created_at":"2019-12-03T11:36:02.000Z","updated_at":"2025-10-02T11:17:13.000Z","dependencies_parsed_at":"2024-11-06T12:44:39.923Z","dependency_job_id":"f2fe5fa8-2605-41fd-89b1-377ef31001fa","html_url":"https://github.com/shen-yu/hexo-theme-ayer","commit_stats":{"total_commits":320,"total_committers":13,"mean_commits":"24.615384615384617","dds":"0.13124999999999998","last_synced_commit":"a2b085adea830c6643d827d47868cf620fe8c6c0"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/shen-yu/hexo-theme-ayer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shen-yu%2Fhexo-theme-ayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shen-yu%2Fhexo-theme-ayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shen-yu%2Fhexo-theme-ayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shen-yu%2Fhexo-theme-ayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shen-yu","download_url":"https://codeload.github.com/shen-yu/hexo-theme-ayer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shen-yu%2Fhexo-theme-ayer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278537758,"owners_count":26003250,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ayer","elegant-theme","hexo","hexo-theme","theme"],"created_at":"2024-08-01T18:01:02.094Z","updated_at":"2025-10-06T21:52:56.745Z","avatar_url":"https://github.com/shen-yu.png","language":"CSS","funding_links":["https://opencollective.com/ayer","https://shen-yu.github.io/images/wechat.jpg","https://shen-yu.github.io/images/alipay.jpg"],"categories":["CSS"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://ayer.886622.xyz\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg width=\"100\" src=\"logo.png\" alt=\"ayer logo\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e一个干净且优雅的 Hexo 主题\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://travis-ci.org/Shen-Yu/hexo-theme-ayer?branch=master\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cimg alt=\"travis-ci\" src=\"https://travis-ci.org/Shen-Yu/hexo-theme-ayer.svg?branch=master\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://standardjs.com\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cimg alt=\"js-standard-style\" src=\"https://img.shields.io/badge/code%20style-standard-brightgreen.svg\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e  \n  \u003ca href=\"https://www.npmjs.com/package/hexo-theme-ayer\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n  \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/dt/hexo-theme-ayer\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://shen-yu.gitee.io\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n   \u003cimg alt=\"platform\" src=\"https://img.shields.io/badge/platform-PC--ios--android-ff69b4.svg\"\u003e\n   \u003c/a\u003e\n  \u003ca href=\"https://gitter.im/hexo-theme-ayer/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cimg alt=\"Gitter\" src=\"https://badges.gitter.im/Join%20Chat.svg\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://www.npmjs.com/package/hexo-theme-ayer\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cimg alt=\"npm version\" src=\"https://img.shields.io/npm/v/hexo-theme-ayer\"\u003e\n  \u003c/a\u003e \n \u003cimg alt=\"language\" src=\"https://img.shields.io/badge/language-ejs--stylus-green.svg\"\u003e\n \u003ca href=\"https://github.com/Shen-Yu/hexo-theme-ayer/releases\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n  \u003cimg alt=\"GitHub repo size\" src=\"https://img.shields.io/github/repo-size/Shen-Yu/hexo-theme-ayer?color=b37feb\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/Shen-Yu/hexo-theme-ayer/blob/master/LICENSE\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg alt=\"LICENSE\" src=\"https://img.shields.io/badge/LICENSE-SATA-6ccab8\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n:ocean: Ayer is a clean and elegant theme for Hexo, also fast, powerful and responsive. It contains many awesome features, It's perfect for your blog, \"Ayer\" means \"water\" in Malaysian and \"yesterday\" in Spanish. [Create an issue](https://github.com/shen-yu/hexo-theme-ayer/issues/new/choose) if you have any queries or advice during the process of using, \n\n\u003cb\u003e注：收藏本主题请点右上角 Star，谢谢~~ \u003c/b\u003e\n\u003cb\u003e如果你想给主题添砖加瓦，可以点右上角 Fork，然后给此仓库提交 PR\u003c/b\u003e\n\n## 本人已转行不做码农了，项目暂停维护，仅供学习！！\n## QQ：448766534\n\n### [Preview 预览](https://ayer.886622.xyz)\n\n### [中文说明](https://ayer.886622.xyz/2019/ayer/)\n\n### [国内镜像](https://gitee.com/shen-yu/hexo-theme-ayer)\n\n![Screenshot](screenshots/hexo-theme-ayer.png)\n\n## Install\n\n### For hexo \u003e= 5.0\n\n```shell\nnpm i hexo-theme-ayer -S\n```\n\n- If this theme is newly installed, a `_config.ayer.yml` file will be generated in the root directory after the installation is complete, and you can directly edit the `_config.ayer.yml` file for configuration.\n- If it is a theme upgrade, you can use the configuration method of hexo \u003c 5.0, or you can move the original configuration file to the root directory and rename it to `_config.ayer.yml`.\n\n### For hexo \u003c 5.0\n\n```shell\ngit clone https://github.com/Shen-Yu/hexo-theme-ayer.git themes/ayer\n```\n\n## Enable\n\nModify `theme` setting in `_config.yml` to `ayer`\n\n```yml\ntheme: ayer\n```\n\n## Update\n\n```bash\ncd themes/ayer\ngit pull\n```\n\n## Multi Language Support\n\nzh-CN（中文简体） en（English） zh-TW（中文繁体） ja（日本語） es（Español） de（Deutsch） fr（Français） ru（Русский） ko（한국어） vi（Tiếng Việt） nl（Nederlands） no（norsk） pt（Português）\n\nEnglish is default languge, if you want to change, modify `language` option in `_config.yml` file in your Hexo blog's root folder.\n\n## Configuration\n\nlet me know if you have any questions.\n\n```yml\n# Menu-Sidebar\nmenu:\n  Home: /\n  Archives: /archives\n  Categories: /categories\n  Tags: /tags\n  Gallery: http://shenyu-vip.lofter.com\n  Travel: /tags/旅行/\n  About: /2019/about\n\n# Subtitle and Typing animation\n# https://github.com/mattboldt/typed.js\nsubtitle:\n  enable: true\n  text: A clean and elegant theme\n  text2: It's perfect for your hexo blog\n  text3: Have fun! #Supports up to three lines of text\n  startDelay: 0\n  typeSpeed: 200\n  loop: true\n  backSpeed: 100\n  showCursor: true\n\n# Favicon and sidebar logo\nfavicon: /favicon.ico\nlogo: /images/ayer-side.svg\n\n# Cover Setting\n# enable: [true|false]；path: [background-image]；logo: [cover-logo-image]\ncover:\n  enable: true\n  path: /images/cover1.jpg # there are some beautiful cover images in Ayer's directory: /source/images, choose your favorite image to replace it.\n  logo: /images/ayer.svg\n\n# ProgressBar\nprogressBar: true\n\n# Boardcast\nbroadcast:\n  enable: true\n  type: 2 # 1：custom，2：hitokoto api(https://hitokoto.cn/)\n  text: a clean and elegant theme, fast and responsive. # only work in custom mode\n\n# Article Setting\n# (Use this to excerpt if article is too long：\u003c!--more--\u003e)\nexcerpt_link: Read More...\nexcerpt_all: false\n\n# Copy code button\ncopy_btn: true\n# Share\nshare_enable: true\n# If you are not in China, maybe you prefer to set:false\nshare_china: true\n# share text\nshare_text: Share\n# search text\nsearch_text: Search\n# nav text\nnav_text:\n  page_prev: Prev page\n  page_next: Next page\n  post_prev: Newer posts\n  post_next: Older posts\n\n# Catalog in article\ntoc: true\n\n# images in the article support click to fullscreen\nimage_viewer: true\n\n# https://github.com/willin/hexo-wordcount\nword_count:\n  enable: true\n  # only display in article page(not in index page)\n  only_article_visit: true\n\n# Reward Setting\n# type：0-close reward； 1-only open in article which you have configured reward:true； 2-open in all articles\nreward_type: 2\n# reward word\nreward_wording: \"Buy me a cup of coffee~\"\n# qrcode image path\nalipay: /images/alipay.jpg\n# qrcode image path\nweixin: /images/wechat.jpg\n\n# Copyright\n# type：0-close all； 1-only display in article which you have configured copyright: true； 2-all articles\ncopyright_type: 2\n\n# Search\n# https://github.com/theme-next/hexo-generator-searchdb\nsearch: true\n\n# RSS\n# leave it empty if you dont' need\nrss: /atom.xml\n\n# DarkMode\ndarkmode: true\n\n# Canvas background style: 0-close，1-moveline\ncanvas_bg: 0\n\n# Custom mouse pointer，replace /images/mouse.cur\nmouse:\n  enable: false\n  path: /images/mouse.cur\n\n# Click effect: 0-close，1-love，2-boom，3-particles\nclick_effect: 0\n\n# articleWidth and sidebarWidth\nlayout:\n  article_width: 80rem\n  sidebar_width: 8rem\n\n# GitHub Ribbons(https://github.blog/2008-12-19-github-ribbons/)\ngithub:\n  # (Set false if you don't need)\n  enable: false\n  url: https://github.com/Shen-Yu/hexo-theme-ayer\n\n# pv\u0026uv statistics\nbusuanzi:\n  enable: true\n\n# cnzz statistics\ncnzz:\n  enable: true\n  url: #\n\n# Google Analytics\ngoogle_analytics: \"\"\n# Baidu Analytics\nbaidu_analytics: \"\"\n\n# Mathjax Support\nmathjax: true\n\n# Katex Support\n# note: need change the hexo-renderer，npm un hexo-renderer-marked -S \u0026\u0026 npm i hexo-renderer-markdown-it-katex -S\nkatex:\n  enable: false # true\n  allpost: true\n  copy_tex: false\n\n# since year\nsince: 2019\n\n# only for chinese website\n# ICP\nicp:\n  enable: false\n  url: \"http://www.beian.miit.gov.cn/\"\n  text: \"浙ICP备88888888\"\n# gongan\ngongan:\n  enable: false\n  img: /images/beian.png\n  url: \"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=01234567890123\" #link\n  text: \"浙公网安备01234567890123号\"\n\n# friends link\nfriends_link:\n  Ayer: #site name\n    # site url\n    url: https://github.com/Shen-Yu/hexo-theme-ayer\n    # site icon(optional)\n    img: /images/ayer.png\n  GitHub:\n    url: https://github.com/Shen-Yu\n    img: https://i.loli.net/2020/09/07/indb4PRYDA98EkN.png\n  gitee:\n    url: https://gitee.com/shen-yu\n    img: https://i.loli.net/2020/09/07/K3AqO7h6krQFlRX.png\n  Hexo:\n    url: https://hexo.io\n    img: https://i.loli.net/2020/09/07/UYGzjo7h68CRWny.png\n  hexo-tag-chart:\n    url: https://github.com/Shen-Yu/hexo-tag-chart\n    img: https://i.loli.net/2020/09/07/GIXBYE5SoylhR1r.png\n\n# Comment：1、Valine (recommended)；2、Gitalk；3、Twikoo；4、MiniValine\n# You can close the comment section on one of your posts by marking `comments: false` in front-matter.\n\n# 1、Valine [A fast, simple \u0026 powerful comment system](https://github.com/xCss/Valine)\n# You need create leancloud account first (https://console.leancloud.app), then put the id|key in below.\nleancloud:\n  enable: true\n  app_id: #\n  app_key: #\n# Valine Setting\nvaline:\n  enable: true\n  avatar: mp # (https://valine.js.org/avatar.html)\n  placeholder: Add some comments to my article~ # placeholder\n\n# 2、Gitalk(https://github.com/gitalk/gitalk)\ngitalk:\n  enable: false # true\n  clientID: # GitHub Application Client ID\n  clientSecret: # Client Secret\n  repo: # Repository name\n  owner: # GitHub ID\n  admin: # GitHub ID\n\n# 3、Twikoo(https://github.com/imaegoo/twikoo)\ntwikoo:\n  enable: false\n  envId: #\n\n\n# advertisement\n# if there is an \"ad\" word in photo or url，it may blocked by adblock or any other browser extensions\nads:\n  ad_1:\n    title: vultr优惠vps\n    img: https://cdn.jsdelivr.net/gh/Shen-Yu/cdn/img/vultr.png\n    url: https://www.vultr.com/?ref=8630075\n    width: 300\n  ad_2:\n    title: 云服务器全球购低至2折\n    img: https://cdn.jsdelivr.net/gh/Shen-Yu/cdn/img/ten_2.jpg\n    url: https://curl.qcloud.com/kvO7hb43\n    width: 300\n\n# encrypt settings\nlock:\n  enable: false\n  password: 123456\n```\n\n## Plugins\n\n- [hexo-generator-search](https://github.com/wzpan/hexo-generator-search) (for Local Search)\n\n  ```yml\n  $ npm install hexo-generator-searchdb --save\n  ```\n\n  Then add the plugin configuration in hexo's configuration file `_config.yml` (note: not the theme's configuration file):\n\n  ```yml\n  # Hexo-generator-search\n  search:\n    path: search.xml\n    field: post\n    format: html\n  ```\n\n- [hexo-generator-feed](https://github.com/hexojs/hexo-generator-feed) (for RSS)\n\n  ```yml\n  $ npm install hexo-generator-feed --save\n  ```\n\n  Then add the plugin configuration in hexo's configuration file `_config.yml` (note: not the theme's configuration file):\n\n  ```yml\n  feed:m\n      type: atom\n      path: atom.xml\n      limit: 20\n      hub:\n      content:\n      content_limit: 140\n      content_limit_delim: ' '\n      order_by: -date\n  ```\n\n- [hexo-generator-index-pin-top](https://github.com/netcan/hexo-generator-index-pin-top) (for Sticky Post)\n\n  ```bash\n  $ npm uninstall hexo-generator-index --save\n  $ npm install hexo-generator-index-pin-top --save\n  ```\n\n## Categories\n\n```bash\n  hexo new page categories\n```\n\nThen paste following codes to file: /source/categories/index.md\n\n```md\n---\ntitle: categories\ntype: categories\nlayout: \"categories\"\n---\n```\n\n## Tags\n\nSame as categories.\n\n## Friend Links\n\n```bash\nhexo new page friends\n```\n\nThen paste following codes to file: /source/friends/index.md\n\n```md\n---\ntitle: friends\ntype: friends\nlayout: \"friends\"\n---\n```\n\nThen edit `friends_link` in `_config.yml`\n\n## Gallery\n\nNeed to write in the head of the markdown, this is not a good way to write, I hope to get a better way to write on github.\n\n```md\n---\ntitle: Gallery\n\nalbums: [[\"img_url\", \"img_caption\"], [\"img_url\", \"img_caption\"]]\n---\n```\n\n## Toc\n\nUse Tocbot to parse the title tags (h1~h6) in the content and insert the directory.\n\n- ayer/\\_config.yml\n\n  ```bash\n  # Toc\n  toc: true\n  ```\n\n- If Toc is turned on in ayer/\\_config.yml, then Tocbot will generate a Toc article directory in the title tag of each blog parsing content, but not all blogs require Toc, so in the Front-matter section of markdown Can be closed:\n\n  ```md\n  ---\n  no_toc: true\n  ---\n  ```\n\n---\n\n\u003cbr/\u003e\n\n## Code Contributors\n\nThis project exists thanks to all the people who contribute.\n\n\u003ca href=\"https://github.com/Shen-Yu/hexo-theme-ayer/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/ayer/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n\n## Stargazers over time\n\n[![Stargazers over time](https://starchart.cc/Shen-Yu/hexo-theme-ayer.svg)](https://starchart.cc/Shen-Yu/hexo-theme-ayer)\n\n## License\n\n\u003ca src=\"https://github.com/Shen-Yu/hexo-theme-ayer\"\u003eAyer\u003c/a\u003e by \u003ca  href=\"https://github.com/Shen-Yu\"\u003eEric-Shen\u003c/a\u003e is licensed under \u003ca rel=\"license\" href=\"https://github.com/Shen-Yu/hexo-theme-ayer/blob/master/LICENSE\"\u003eSATA-License\u003c/a\u003e.\n\nThe basic idea is, whenever using a project using SATA license, people shall star/like/+1 that project and thank the author. Just imagine Google stared your project and send you a thank-you letter because they used your project in github!\n\u003cbr\u003e\n\n本项目采用\u003ca rel=\"license\" href=\"https://github.com/Shen-Yu/hexo-theme-ayer/blob/master/LICENSE\"\u003eSATA\u003c/a\u003e开源协议，在遵守 MIT 许可证的前提下，你应该马不停蹄的给这个开源项目“点个赞”，比如 github 右上角的 star，然后你应该感谢这个开源项目的作者，作者信息可以在许可证头部的版权声明部分找到。\u003cbr\u003e\n\n下面是几条 SATA 作者推荐的感谢途径，也是 SATA 包含的内容：\n\n- 给你使用的开源项目的作者发个 Email，和他交个朋友\n- 提出你在使用过程中发现的 BUG 或者提一些建设性的意见\n- 告诉你的朋友们这是一个多棒的开源项目\n- 当然，你也可以只是在心里默默的感激，不用让全世界都知道\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshen-yu%2Fhexo-theme-ayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshen-yu%2Fhexo-theme-ayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshen-yu%2Fhexo-theme-ayer/lists"}