19 | 20 | <%- item.title || theme.default_post_title || "Untitled" %> 21 | 22 |
23 | <% if (item.excerpt){ %> 24 |26 | <%- item.excerpt %> 27 |
28 |32 | <%= item.date.format(config.date_format) %> 33 |
34 | 41 |├── docs ├── Todo.md ├── Changelog.md ├── PreviewPhoto_首页预览图.md ├── pagefooter_页脚.md ├── widget_部件.md ├── navigation_导航栏.md ├── socail_社交.md ├── Hexo-Post-template.md ├── comment_评论.md ├── analytics_访问统计.md └── Home.md ├── screenshots └── daily.jpg ├── languages ├── zh-CN.yml ├── zh-TW.yml ├── en.yml └── default.yml ├── source ├── css │ ├── style.scss │ ├── _comment.scss │ ├── _archive.scss │ ├── _variables.scss │ ├── _mobile.scss │ ├── _nav.scss │ ├── _post.scss │ ├── _normalize.scss │ ├── _highlight.scss │ └── _daily.scss ├── images │ ├── arrow-left.svg │ ├── arrow-right.svg │ ├── menu.svg │ ├── github.svg │ ├── mail.svg │ ├── twitter.svg │ └── weibo.svg └── js │ └── app.js ├── layout ├── _partial │ ├── article-archive.ejs │ ├── pagination.ejs │ ├── comment.ejs │ ├── article-index.ejs │ ├── nav.ejs │ ├── footer.ejs │ ├── after-footer.ejs │ └── head.ejs ├── layout.ejs ├── index.ejs ├── tag.ejs ├── archive.ejs └── post.ejs ├── LICENSE ├── _config.yml └── README.md /docs/Todo.md: -------------------------------------------------------------------------------- 1 | - 添加访问统计 -------------------------------------------------------------------------------- /docs/Changelog.md: -------------------------------------------------------------------------------- 1 | - 2017-04-17 新增访问统计功能 2 | - 2016-09-07 更新归档页面:按年份分组展示 3 | - 2016-06-16 第一份提交 -------------------------------------------------------------------------------- /screenshots/daily.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glenhoooo/hexo-theme-Daily/HEAD/screenshots/daily.jpg -------------------------------------------------------------------------------- /languages/zh-CN.yml: -------------------------------------------------------------------------------- 1 | prev: 上一页 2 | next: 下一页 3 | comment: 留言 4 | archive_a: 归档 5 | archive_b: 归档:%s 6 | contact: 与我联系 7 | search: 站内搜索 8 | -------------------------------------------------------------------------------- /languages/zh-TW.yml: -------------------------------------------------------------------------------- 1 | prev: 上一頁 2 | next: 下一頁 3 | comment: 留言 4 | archive_a: 彙整 5 | archive_b: 彙整:%s 6 | contact: 與我聯系 7 | search: 站內搜索 8 | -------------------------------------------------------------------------------- /languages/en.yml: -------------------------------------------------------------------------------- 1 | prev: Older Posts 2 | next: Newer Posts 3 | comment: Comments 4 | archive_a: Archives 5 | archive_b: "Archives: %s" 6 | contact: Contact 7 | search: Search 8 | -------------------------------------------------------------------------------- /docs/PreviewPhoto_首页预览图.md: -------------------------------------------------------------------------------- 1 | ## 如何为文章添加首页预览图? 2 | 3 | 在你的 markdown 文章中添加 `photos` 变量,配置多张图则显示第一张。文章内容示例: 4 | 5 | https://github.com/GallenHu/hexo-theme-Daily/wiki/Hexo-Post-template -------------------------------------------------------------------------------- /languages/default.yml: -------------------------------------------------------------------------------- 1 | prev: Older Posts 2 | next: Newer Posts 3 | comment: Comments 4 | archive_a: Archives 5 | archive_b: "Archives: %s" 6 | contact: Contact 7 | search: Search 8 | -------------------------------------------------------------------------------- /docs/pagefooter_页脚.md: -------------------------------------------------------------------------------- 1 | ## 如何自定义页脚? 2 | How to customize page footer? 3 | 4 | 编辑站点的 `_config.yml`,添加 5 | ```yml 6 | footer: 你要自定义的内容(支持HTML标签) 7 | # 举例: 8 | # footer: Powered by Hexo with Theme Daily 9 | ``` 10 | -------------------------------------------------------------------------------- /source/css/style.scss: -------------------------------------------------------------------------------- 1 | @import './normalize'; 2 | @import './variables'; 3 | @import './daily'; 4 | @import './nav'; 5 | @import './post'; 6 | @import './highlight'; 7 | @import './archive'; 8 | @import './comment'; 9 | 10 | @import './mobile'; 11 | -------------------------------------------------------------------------------- /docs/widget_部件.md: -------------------------------------------------------------------------------- 1 | ## 如何自定义底部 widget? 2 | How to customize widget in footer? 3 | 4 | 在`_config.yml`文件中配置: 5 | ```yml 6 | # widget 7 | # title: 标题(如:关于本站/友情链接/关于作者...) 8 | # content: 内容(html标签) 9 | widget: 10 | title: 关于本站 11 | content:
替换为你的网站简介
12 | ``` -------------------------------------------------------------------------------- /docs/navigation_导航栏.md: -------------------------------------------------------------------------------- 1 | ## 如何自定义右上角导航栏? 2 | 3 | How to customize the navigation bar ? 4 | 5 | 在 `_config.yml` 中配置: 6 | ```yml 7 | # nav 8 | # NavName: your-folder-name 9 | # NavName2: your-folder-name2 10 | nav: 11 | Home: . 12 | Archive: archives 13 | About: about 14 | ``` -------------------------------------------------------------------------------- /source/css/_comment.scss: -------------------------------------------------------------------------------- 1 | #comment #ds-thread #ds-reset a.ds-like-thread-button { 2 | background-color: #fff; 3 | background-image: none; 4 | } 5 | #comment #ds-reset .ds-gradient-bg { 6 | background: none; 7 | } 8 | #comment #ds-thread #ds-reset .ds-powered-by { 9 | display: none; 10 | } 11 | -------------------------------------------------------------------------------- /docs/socail_社交.md: -------------------------------------------------------------------------------- 1 | ## 如何修改「与我联系」栏目中的内容? 2 | How to modify socail fields ? 3 | 4 | 编辑站点的 `_config.yml`,添加或修改 `social` 字段: 5 | ``` 6 | social: 7 | github: https://github.com/yourid 8 | weibo: http://weibo.com/yourid 9 | mail: mailto:yourmail@gmail.com 10 | twitter: https://twitter.com/yourid 11 | ``` -------------------------------------------------------------------------------- /docs/Hexo-Post-template.md: -------------------------------------------------------------------------------- 1 | ## 文章模板 2 | 3 | ``` 4 | title: 标题 5 | date: 2015-02-09 22:01 6 | modified: 2016-05-14 17:40 7 | tag: 8 | - 前端开发 9 | - CSS 10 | 11 | photos: 12 | - http://i.imgur.com/0dZAI8y.jpg 13 | --- 14 | 15 | 引言(简介) 16 | 17 | 18 | 19 | 详细内容 20 | balabalabalabalabalabalabalabalabala 21 | ``` -------------------------------------------------------------------------------- /source/css/_archive.scss: -------------------------------------------------------------------------------- 1 | .archive { 2 | padding-bottom: 60px; 3 | 4 | h2.year { 5 | color: #444444; 6 | } 7 | 8 | ul.list { 9 | padding-left: 50px; 10 | li { 11 | padding: 10px 0; 12 | line-height: 1.5; 13 | } 14 | } 15 | .date { 16 | margin-right: 30px; 17 | color: #7f8c8d; 18 | } 19 | } -------------------------------------------------------------------------------- /layout/_partial/article-archive.ejs: -------------------------------------------------------------------------------- 1 | <% posts.forEach(function(item) { %> 2 |26 | <%- item.excerpt %> 27 |
28 |32 | <%= item.date.format(config.date_format) %> 33 |
34 | 41 |<%- page.subtitle %>
12 | <% } %> 13 | 14 |15 | <%= page.date.format(config.date_format) %> 16 |
17 | 26 |