{"id":13430483,"url":"https://github.com/litten/hexo-theme-yilia","last_synced_at":"2025-05-14T04:04:54.307Z","repository":{"id":20234857,"uuid":"23506840","full_name":"litten/hexo-theme-yilia","owner":"litten","description":"一个简洁优雅的hexo主题  A simple and elegant theme for hexo.","archived":false,"fork":false,"pushed_at":"2024-07-02T10:07:43.000Z","size":10630,"stargazers_count":8362,"open_issues_count":465,"forks_count":2406,"subscribers_count":235,"default_branch":"master","last_synced_at":"2024-10-29T15:32:53.931Z","etag":null,"topics":["hexo","hexo-theme","hexo-theme-yilia"],"latest_commit_sha":null,"homepage":"http://litten.me/","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/litten.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":"2014-08-31T04:59:32.000Z","updated_at":"2024-10-25T09:19:43.000Z","dependencies_parsed_at":"2022-08-07T09:15:58.214Z","dependency_job_id":"19dc082a-7504-45fc-ac44-d38e17823c60","html_url":"https://github.com/litten/hexo-theme-yilia","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/litten%2Fhexo-theme-yilia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litten%2Fhexo-theme-yilia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litten%2Fhexo-theme-yilia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litten%2Fhexo-theme-yilia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litten","download_url":"https://codeload.github.com/litten/hexo-theme-yilia/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254067229,"owners_count":22009114,"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","hexo-theme","hexo-theme-yilia"],"created_at":"2024-07-31T02:00:54.455Z","updated_at":"2025-05-14T04:04:54.257Z","avatar_url":"https://github.com/litten.png","language":"JavaScript","funding_links":[],"categories":["Content","CSS","JavaScript","7 Yilia"],"sub_categories":[],"readme":"hexo-theme-yilia\r\n================\r\n\r\nYilia 是为 [hexo](https://github.com/tommy351/hexo) 2.4+制作的主题。\r\n崇尚简约优雅，以及极致的性能。 你可以点击 [我的博客](http://litten.me/) 查看效果。           \r\n \r\n如果想体验手机浏览效果，可以扫一下二维码：\r\n\r\n![litten-qrcode](https://cloud.githubusercontent.com/assets/2024949/6349328/51a067fe-bc64-11e4-881c-f68050c50c28.png)\r\n\r\n—————————————————————\r\n\r\n**关于主题：**\r\n\r\n1. 崇尚简约       \r\n2. 追求移动端体验     \r\n3. 希望把加载速度做到极致（努力中）    \r\n4. 让大家把注意力放到内容上。这是本主题设计初衷      \r\n5. 主题不支持IE6，7，8。以后也不会     \r\n\r\n**近期更新（2017.07.09）：**\r\n\r\n2017.07.09\r\n1. 返回顶部\r\n2. TOC目录\r\n\r\n2016.12.04\r\n1. 打赏\r\n2. 搜索\r\n3. “更好的”标签云\r\n4. “更好的”分享\r\n5. 一些动画\r\n\r\n**计划中：**\r\n\r\n1. 移动端优化\r\n             \r\n## 一、外观\r\n\r\n####**常规**\r\n\r\n![常规](https://cloud.githubusercontent.com/assets/2024949/19027861/92879edc-8967-11e6-8e60-7987b6507c8d.gif)\r\n\r\n####**手机**\r\n\r\n![手机](https://cloud.githubusercontent.com/assets/2024949/19027020/1c5b756a-895f-11e6-99bf-ddff9687aee0.gif)   \r\n\r\n####**ipad横竖屏切换**\r\n\r\n![ipad横竖屏切换](https://cloud.githubusercontent.com/assets/2024949/19026392/e74e1816-8957-11e6-8f08-eac9b3c8c036.gif)                    \r\n\r\n## 二、开发者\r\n\r\n为了性能和开发工程化考虑，Yilia需要使用webpack进行构建生成。\r\n\r\n如果您对主题有一些定制化的需求，请参考wiki[《Yilia源码目录结构及构建须知》](https://github.com/litten/hexo-theme-yilia/wiki/Yilia%E6%BA%90%E7%A0%81%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84%E5%8F%8A%E6%9E%84%E5%BB%BA%E9%A1%BB%E7%9F%A5)\r\n\r\n## 三、使用\r\n\r\n#### 安装\r\n\r\n``` bash\r\n$ git clone https://github.com/litten/hexo-theme-yilia.git themes/yilia\r\n```\r\n\r\n#### 配置\r\n\r\n修改hexo根目录下的 `_config.yml` ： `theme: yilia`\r\n\r\n#### 更新\r\n\r\n``` bash\r\ncd themes/yilia\r\ngit pull\r\n```\r\n\r\n## 四、配置\r\n\r\n主题配置文件在主目录下的`_config.yml`，请根据自己需要修改使用。\r\n完整配置例子，可以参考[我的博客备份](https://github.com/litten/BlogBackup)\r\n\r\n```\r\n# Header\r\n\r\nmenu:\r\n  主页: /\r\n  随笔: /tags/随笔/\r\n\r\n# SubNav\r\nsubnav:\r\n  github: \"#\"\r\n  weibo: \"#\"\r\n  rss: \"#\"\r\n  zhihu: \"#\"\r\n  #qq: \"#\"\r\n  #weixin: \"#\"\r\n  #jianshu: \"#\"\r\n  #douban: \"#\"\r\n  #segmentfault: \"#\"\r\n  #bilibili: \"#\"\r\n  #acfun: \"#\"\r\n  #mail: \"mailto:litten225@qq.com\"\r\n  #facebook: \"#\"\r\n  #google: \"#\"\r\n  #twitter: \"#\"\r\n  #linkedin: \"#\"\r\n\r\nrss: /atom.xml\r\n\r\n# 是否需要修改 root 路径\r\n# 如果您的网站存放在子目录中，例如 http://yoursite.com/blog，\r\n# 请将您的 url 设为 http://yoursite.com/blog 并把 root 设为 /blog/。\r\nroot: \r\n\r\n# Content\r\n\r\n# 文章太长，截断按钮文字\r\nexcerpt_link: more\r\n# 文章卡片右下角常驻链接，不需要请设置为false\r\nshow_all_link: '展开全文'\r\n# 数学公式\r\nmathjax: false\r\n# 是否在新窗口打开链接\r\nopen_in_new: false\r\n\r\n# 打赏\r\n# 打赏type设定：0-关闭打赏； 1-文章对应的md文件里有reward:true属性，才有打赏； 2-所有文章均有打赏\r\nreward_type: 2\r\n# 打赏wording\r\nreward_wording: '谢谢你请我吃糖果'\r\n# 支付宝二维码图片地址，跟你设置头像的方式一样。比如：/assets/img/alipay.jpg\r\nalipay: \r\n# 微信二维码图片地址\r\nweixin: \r\n\r\n# 目录\r\n# 目录设定：0-不显示目录； 1-文章对应的md文件里有toc:true属性，才有目录； 2-所有文章均显示目录\r\ntoc: 1\r\n# 根据自己的习惯来设置，如果你的目录标题习惯有标号，置为true即可隐藏hexo重复的序号；否则置为false\r\ntoc_hide_index: true\r\n# 目录为空时的提示\r\ntoc_empty_wording: '目录，不存在的…'\r\n\r\n# 是否有快速回到顶部的按钮\r\ntop: true\r\n\r\n# Miscellaneous\r\nbaidu_analytics: ''\r\ngoogle_analytics: ''\r\nfavicon: /favicon.png\r\n\r\n#你的头像url\r\navatar:\r\n\r\n#是否开启分享\r\nshare_jia: true\r\n\r\n#评论：1、多说；2、网易云跟帖；3、畅言；4、Disqus；5、Gitment\r\n#不需要使用某项，直接设置值为false，或注释掉\r\n#具体请参考wiki：https://github.com/litten/hexo-theme-yilia/wiki/\r\n\r\n#1、多说\r\nduoshuo: false\r\n\r\n#2、网易云跟帖\r\nwangyiyun: false\r\n\r\n#3、畅言\r\nchangyan_appid: false\r\nchangyan_conf: false\r\n\r\n#4、Disqus 在hexo根目录的config里也有disqus_shortname字段，优先使用yilia的\r\ndisqus: false\r\n\r\n#5、Gitment\r\ngitment_owner: false      #你的 GitHub ID\r\ngitment_repo: ''          #存储评论的 repo\r\ngitment_oauth:\r\n  client_id: ''           #client ID\r\n  client_secret: ''       #client secret\r\n\r\n# 样式定制 - 一般不需要修改，除非有很强的定制欲望…\r\nstyle:\r\n  # 头像上面的背景颜色\r\n  header: '#4d4d4d'\r\n  # 右滑板块背景\r\n  slider: 'linear-gradient(200deg,#a0cfe4,#e8c37e)'\r\n\r\n# slider的设置\r\nslider:\r\n  # 是否默认展开tags板块\r\n  showTags: false\r\n\r\n# 智能菜单\r\n# 如不需要，将该对应项置为false\r\n# 比如\r\n#smart_menu:\r\n#  friends: false\r\nsmart_menu:\r\n  innerArchive: '所有文章'\r\n  friends: '友链'\r\n  aboutme: '关于我'\r\n\r\nfriends:\r\n  友情链接1: http://localhost:4000/\r\n  友情链接2: http://localhost:4000/\r\n  友情链接3: http://localhost:4000/\r\n  友情链接4: http://localhost:4000/\r\n  友情链接5: http://localhost:4000/\r\n  友情链接6: http://localhost:4000/\r\n\r\naboutme: 很惭愧\u003cbr\u003e\u003cbr\u003e只做了一点微小的工作\u003cbr\u003e谢谢大家\r\n```\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitten%2Fhexo-theme-yilia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitten%2Fhexo-theme-yilia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitten%2Fhexo-theme-yilia/lists"}