🎨 更新README

pull/33/merge
ruibaby 2018-09-07 21:21:55 +08:00
parent 92d8910fef
commit 55d3f20e4c
23 changed files with 199 additions and 54 deletions

129
README-en-US.md Executable file
View File

@ -0,0 +1,129 @@
<h1>
<a href="#" target="_blank">Halo</a>
</h1>
> Halo may be the best Java blog system.
[![JDK](https://img.shields.io/badge/JDK-1.8-yellow.svg)](#)
[![GitHub release](https://img.shields.io/github/release/ruibaby/halo.svg)](https://github.com/ruibaby/halo/releases)
[![Travis CI](https://img.shields.io/travis/ruibaby/halo.svg)](https://travis-ci.org/ruibaby/halo)
------------------------------
[简体中文](./README.md) | English
## Catalog
- [Introduction](#introduction)
- [Quickstart](#quickstart)
- [Demo](#demo)
- [Download](#download)
- [Docs](#docs)
- [Themes](#themes)
- [License](#license)
- [Todo](#todo)
- [Thanks](#thanks)
- [Donate](#donate)
## Introduction
**Halo** [ˈheɪloʊ],Become the best blogging system using Java.
Fast, concise, and powerful blogging system developed in Java.
> QQ Group: 162747721Telegram Group[https://t.me/HaloBlog](https://t.me/HaloBlog)
## Quickstart
```bash
git clone https://github.com/ruibaby/halo.git
cd halo
mvn clean package -Pprod
java -jar target/dist/halo/halo-latest.jar
```
Rapid server deployment(Support for CentOS only):
```bash
# Install Halo
yum install -y wget && wget http://static.ryanc.cc/halo-cli.sh && sh halo-cli.sh 1
# Upgrade Halo
sh halo-cli.sh 2
```
> Note: If you use Idea, Eclipse and other IDEs to run, you need to install the Lombok plugin.
Let's start: http://localhost:8090
## Demo
[Ryan0up'S Blog](https://ryanc.cc)
[SNAIL BLOG](https://slogc.cc)
[宋浩志博客](http://songhaozhi.com)
## Download
> For deployment to the server, please refer to [Halo部署教程](https://ryanc.cc/archives/halo-run-with-git-maven) or [Wiki](https://github.com/ruibaby/halo/wiki).
## Docs
[Halo Document](https://halo-doc.ryanc.cc)
> The documentation is constantly being improved.
## Themes
In addition to the built-in [Anatole](https://github.com/hi-caicai/farbox-theme-Anatole) and [Material](https://github.com/viosey/hexo-theme-material), there are the following The theme is not integrated in the project. If you need it, please download it and upload it through the background.
- [Vno](https://github.com/ruibaby/vno-halo) - From Jekyll,Author[Wei Wang](https://onevcat.com/)。
- [Hux](https://github.com/ruibaby/hux-halo) - From Jekyll,Author[Xuan Huang](https://huangxuan.me/)。
- [Story](https://github.com/ruibaby/story-halo) - From Typecho,Author[Trii Hsia](https://yumoe.com/)。
- [NexT](https://github.com/ruibaby/next-halo) - From Hexo,Author[iissnan](https://notes.iissnan.com/)。
> Disclaimer: Do not accept any comments or suggestions on the functionality of the **Porting Theme**.
## License
[![license](https://img.shields.io/github/license/ruibaby/halo.svg)](https://github.com/ruibaby/halo/blob/master/LICENSE)
> Halo uses the GPL-v3.0 protocol to open source.
## Todo
- [x] Article reading statistics
- [ ] Article overhead
- [ ] Integrate cloud services such as Qiniu yun or Upyun
## Thanks
The birth of Halo is inseparable from the following projects:
- [IntelliJ IDEA](https://www.jetbrains.com/idea/)Personally think that the most powerful Java IDE.
- [Spring Boot](https://github.com/spring-projects/spring-boot)Spring's microservices framework.
- [Freemarker](https://freemarker.apache.org/)Template engine to make the page static.
- [H2 Database](https://github.com/h2database/h2database)Embedded database, no need to install.
- [Druid](https://github.com/alibaba/druid)Database connection pool developed by Alibaba.
- [Spring-data-jpa](https://github.com/spring-projects/spring-data-jpa.git)Do not need to write a sql script persistence layer framework.
- [Ehcache](http://www.ehcache.org/)Cache framework.
- [Lombok](https://www.projectlombok.org/)Make the code simpler.
- [Apache Commons](http://commons.apache.org/)Very easy to use Java tool library.
- [oh-my-email](https://github.com/biezhi/oh-my-email)Probably the smallest Java mailing library, support for CC, attachments, templates, etc.
- [Hutool](https://github.com/looly/hutool)A Java base tool library.
- [Thumbnailator](https://github.com/coobird/thumbnailator)Thumbnail generation library.
- [AdminLTE](https://github.com/almasaeed2010/AdminLTE)Background template based on Bootstrap.
- [Bootstrap](https://github.com/twbs/bootstrap.git)Use the most extensive front-end ui framework.
- [Animate](https://github.com/daneden/animate.css.git)Very easy to use css motion library.
- [Editor.md](https://github.com/pandao/editor.md.git)Markdown front-end editor, sorry for the author abandoned.
- [Editor.md](https://github.com/hawtim/editor.md)Editor.md, the version that hawtim took over to maintain.
- [Bootstrap-FileInput](https://github.com/kartik-v/bootstrap-fileinput.git)Personally think that the best upload component.
- [Font-awesome](https://github.com/FortAwesome/Font-Awesome.git)The most widely used font icon library.
- [Jquery](https://github.com/jquery/jquery.git)Use the widest range of JavaScript frameworks.
- [Layer](https://github.com/sentsin/layer.git)Personally think that the most practical and best-looking pop-up layer components.
- [Jquery-Toast](https://github.com/kamranahmedse/jquery-toast-plugin)Message prompt component.
- [Pjax](https://github.com/defunkt/jquery-pjax.git)pushState + ajax = pjax
- [OwO](https://github.com/DIYgod/OwO)Front-end expression library.
## Donate
| Alipay | Wechat | Alipay Red envelope |
| :------------: | :------------: | :------------: |
| <img src="https://cdn.ryanc.cc/img/github/donate/alipay.png" width="150"/> | <img src="https://cdn.ryanc.cc/img/github/donate/wechat.png" width="150" /> | <img src="https://cdn.ryanc.cc/img/github/donate/hongbao.png" width="150" /> |

View File

@ -1,27 +1,30 @@
<h1><a href="#" target="_blank">Halo</a></h1>
<h1>
<a href="#" target="_blank">Halo</a>
</h1>
> Halo may be the best Java blog system. | Halo可能是最好的Java博客系统。
> Halo可能是最好的Java博客系统。
[![JDK](https://img.shields.io/badge/JDK-1.8-yellow.svg)](#)
[![GitHub release](https://img.shields.io/github/release/ruibaby/halo.svg)](https://github.com/ruibaby/halo/releases)
[![Travis CI](https://img.shields.io/travis/ruibaby/halo.svg)](https://travis-ci.org/ruibaby/halo)
------------------------------
简体中文 | [English](./README-en-US.md)
## 目录
- [Introduction 简介](#introduction-简介)
- [Quickstart 快速开始](#quickstart-快速开始)
- [Demo 演示](#demo-演示)
- [Download 下载部署](#download-下载部署)
- [Docs 文档](#docs-文档)
- [Themes 主题](#themes-主题)
- [License 许可证](#license-许可证)
- [Todo 后续功能](#todo-后续功能)
- [Thanks 感谢](#thanks-感谢)
- [Donate 捐赠](#donate-捐赠)
- [简介](#简介)
- [快速开始](#快速开始)
- [演示](#演示)
- [下载部署](#下载部署)
- [文档](#文档)
- [主题](#主题)
- [许可证](#许可证)
- [后续功能](#后续功能)
- [感谢](#感谢)
- [捐赠](#捐赠)
## Introduction 简介
## 简介
**Halo** [ˈheɪloʊ],意为光环。当然,你也可以当成拼音读(哈喽)。
@ -29,7 +32,7 @@
> QQ交流群: 162747721Telegram交流群[https://t.me/HaloBlog](https://t.me/HaloBlog)
## Quickstart 快速开始
## 快速开始
```bash
git clone https://github.com/ruibaby/halo.git
@ -50,9 +53,7 @@ sh halo-cli.sh 2
Let's start: http://localhost:8090
## Demo 演示
[测试地址](http://149.28.63.223)[测试后台(admin,123456)](http://149.28.63.223/admin)
## 演示
[Ryan0up'S Blog](https://ryanc.cc)
@ -60,17 +61,17 @@ Let's start: http://localhost:8090
[宋浩志博客](http://songhaozhi.com)
## Download 下载部署
## 下载部署
> 如需部署到服务器,请参考[Halo部署教程](https://ryanc.cc/archives/halo-run-with-git-maven)或者[Wiki](https://github.com/ruibaby/halo/wiki)。
## Docs 文档
## 文档
[Halo Document](https://halo-doc.ryanc.cc)
> 文档正在不断完善中。
## Themes 主题
## 主题
除了内置的[Anatole](https://github.com/hi-caicai/farbox-theme-Anatole)和[Material](https://github.com/viosey/hexo-theme-material),还有下列主题没有集成在项目里,如有需要,请自行下载之后通过后台上传上去使用。
@ -81,19 +82,19 @@ Let's start: http://localhost:8090
> 声明:不接受任何对**移植主题**功能上的意见和建议。
## License 许可证
## 许可证
[![license](https://img.shields.io/github/license/ruibaby/halo.svg)](https://github.com/ruibaby/halo/blob/master/LICENSE)
> Halo使用GPL-v3.0协议开源,请尽量遵守开源协议,即便是在中国。
## Todo 后续功能
## 后续功能
- [x] 文章阅读统计
- [ ] 文章顶置
- [ ] 集成又拍云,七牛云等云服务
## Thanks 感谢
## 感谢
Halo的诞生离不开下面这些项目
@ -107,7 +108,7 @@ Halo的诞生离不开下面这些项目
- [Lombok](https://www.projectlombok.org/):让代码更简洁
- [Apache Commons](http://commons.apache.org/)非常好用的Java工具库
- [oh-my-email](https://github.com/biezhi/oh-my-email)可能是最小的Java邮件发送库了支持抄送、附件、模板等
- [Hutool](https://github.com/looly/hutool)一个Java基础工具类
- [Hutool](https://github.com/looly/hutool)一个Java基础工具类
- [Thumbnailator](https://github.com/coobird/thumbnailator):缩略图生成库
- [AdminLTE](https://github.com/almasaeed2010/AdminLTE)基于Bootstrap的后台模板
- [Bootstrap](https://github.com/twbs/bootstrap.git)使用最广泛的前端ui框架
@ -122,7 +123,7 @@ Halo的诞生离不开下面这些项目
- [Pjax](https://github.com/defunkt/jquery-pjax.git)pushState + ajax = pjax
- [OwO](https://github.com/DIYgod/OwO):前端表情库
## Donate 捐赠
## 捐赠
> 如果Halo对你有帮助可以请作者喝瓶娃哈哈哈哈哈哈哈哈哈哈。

View File

@ -64,6 +64,7 @@ admin.index.widgets.comment-lastest = 最新评论
admin.index.widgets.logs-lastest = 最新日志
admin.index.widgets.btn.clear-logs = 清空日志
admin.index.blog-data.motto = 加油!不要因为走的太远,而忘了当初为什么出发。
admin.index.blog-data.during = 在此期间:
# 附件管理页面
admin.attachments.title = 附件管理

View File

@ -46,6 +46,12 @@ admin.menu.settings = Settings
admin.menu.blog-settings = Blog Settings
admin.menu.blog-backup = Blog Backup
# header module
admin.module.header.a.title.turn-to-front = Turn to front
admin.module.header.btn.view-all-comments = View all comments
admin.module.header.btn.profile = Profile
admin.module.header.btn.loginout = Login out
# admin index
admin.index.title = Dashboard
admin.index.btn.widgets = Widgets options
@ -64,27 +70,28 @@ admin.index.widgets.comment-lastest = Newest comments
admin.index.widgets.logs-lastest = Newest logs
admin.index.widgets.btn.clear-logs = Clear logs
admin.index.blog-data.motto = Come on! Dont forget why you left because youre too far away.
admin.index.blog-data.during = During this period:
# attachments page
admin.attachments.title = Attachments management
admin.attachments.title = Attachments manage
# backup page
admin.backup.title = Backup management
admin.backup.title = Backup manage
# categories page
admin.categories.title = Categories
# comments page
admin.comments.title = Comments management
admin.comments.title = Comments manage
# menus page
admin.menus.title = Menus management
admin.menus.title = Menus manage
# options page
admin.options.title = Settings
# pages page
admin.pages.title = Pages management
admin.pages.title = Pages manage
# pages gallery page
admin.pages.galleries.title = Galleries page
@ -96,7 +103,7 @@ admin.pages.links.title = Links page
admin.pages.edit.title = Page edit
# posts page
admin.posts.title = Posts management
admin.posts.title = Posts manage
# posts edit page
admin.posts.edit.title = Post edit
@ -108,7 +115,7 @@ admin.user.profile.title = Profile
admin.tags.title = Tags
# themes page
admin.themes.title = Themes management
admin.themes.title = Themes manage
# themes edit page
admin.themes.edit.title = Theme edit

View File

@ -46,6 +46,12 @@ admin.menu.settings = 设置
admin.menu.blog-settings = 博客设置
admin.menu.blog-backup = 博客备份
# header模块
admin.module.header.a.title.turn-to-front = 跳转到前台
admin.module.header.btn.view-all-comments = 查看所有评论
admin.module.header.btn.profile = 个人资料
admin.module.header.btn.loginout = 退出登录
# 后台首页
admin.index.title = 仪表盘
admin.index.btn.widgets = 部件选项
@ -64,6 +70,7 @@ admin.index.widgets.comment-lastest = 最新评论
admin.index.widgets.logs-lastest = 最新日志
admin.index.widgets.btn.clear-logs = 清空日志
admin.index.blog-data.motto = 加油!不要因为走的太远,而忘了当初为什么出发。
admin.index.blog-data.during = 在此期间:
# 附件管理页面
admin.attachments.title = 附件管理

View File

@ -14,7 +14,7 @@
.thumbnail{margin-bottom:0}
</style>
<section class="content-header">
<h1 style="display: inline-block;">附件管理</h1>
<h1 style="display: inline-block;"><@spring.message code='admin.attachments.title' /></h1>
<a id="showForm" href="#">
<i class="fa fa-cloud-upload" aria-hidden="true"></i>上传
</a>

View File

@ -11,7 +11,7 @@
.resourceType,.databaseType,.postType{list-style:none;float:left;margin:0;padding-bottom:10px}
</style>
<section class="content-header">
<h1 style="display: inline-block;">备份管理</h1>
<h1 style="display: inline-block;"><@spring.message code='admin.backup.title' /></h1>
<ol class="breadcrumb">
<li>
<a href="/admin"><i class="fa fa-dashboard"></i> 首页</a>

View File

@ -9,7 +9,7 @@
<div class="content-wrapper">
<section class="content-header">
<h1>
分类目录
<@spring.message code='admin.categories.title' />
<small></small>
</h1>
<ol class="breadcrumb">

View File

@ -11,7 +11,7 @@
.draft,.publish,.trash{list-style:none;float:left;margin:0;padding-bottom:10px}s
</style>
<section class="content-header">
<h1>评论管理<small></small></h1>
<h1><@spring.message code='admin.comments.title' /><small></small></h1>
<ol class="breadcrumb">
<li>
<a data-pjax="true" href="/admin"><i class="fa fa-dashboard"></i> 首页</a>

View File

@ -344,7 +344,7 @@
</div>
<div class="modal-body">
<p>「${options.blog_title?if_exists}」已经运行了<span id="blogStartDay"></span>天了。</p>
<p>在此期间:</p>
<p><@spring.message code='admin.index.blog-data.during' /></p>
<p>累计发表了<@articleTag method="postsCount">${postsCount?default(0)}</@articleTag>篇文章。</p>
<p>累计创建了<@commonTag method="tags">${tags?size}</@commonTag>个标签。</p>
<p>累计获得了${commentCount}条评论。</p>

View File

@ -8,7 +8,7 @@
<#include "module/_sidebar.ftl">
<div class="content-wrapper">
<section class="content-header">
<h1 style="display: inline-block;">菜单管理</h1>
<h1 style="display: inline-block;"><@spring.message code='admin.menus.title' /></h1>
<ol class="breadcrumb">
<li>
<a data-pjax="true" href="/admin"><i class="fa fa-dashboard"></i> 首页</a>

View File

@ -17,7 +17,7 @@
</style>
<section class="content-header">
<h1>
博客设置
<@spring.message code='admin.options.title' />
<small></small>
</h1>
<ol class="breadcrumb">

View File

@ -12,7 +12,7 @@
#btnNewPage:hover{background:#3c8dbc;color:#fff}
</style>
<section class="content-header">
<h1 style="display: inline-block;">页面管理<small></small></h1>
<h1 style="display: inline-block;"><@spring.message code='admin.pages.title' /><small></small></h1>
<a id="btnNewPage" href="/admin/page/new">
新建页面
</a>

View File

@ -17,7 +17,7 @@
.thumbnail{margin-bottom:0}
</style>
<section class="content-header">
<h1 style="display: inline-block;">图库页面<small></small></h1>
<h1 style="display: inline-block;"><@spring.message code='admin.pages.galleries.title' /><small></small></h1>
<a id="btnNewPicture" href="#">
添加图片
</a>

View File

@ -8,7 +8,7 @@
<#include "module/_sidebar.ftl">
<div class="content-wrapper">
<section class="content-header">
<h1>友情链接页面<small></small></h1>
<h1><@spring.message code='admin.pages.links.title' /><small></small></h1>
<ol class="breadcrumb">
<li><a data-pjax="true" href="/admin"><i class="fa fa-dashboard"></i>首页</a></li>
<li><a data-pjax="true" href="/admin/page">页面管理</a></li>

View File

@ -21,7 +21,7 @@
</style>
<section class="content-header">
<h1 style="display: inline-block;">
新建页面
<@spring.message code='admin.pages.edit.title' />
</h1>
<a id="btnOpenAttach" href="#" onclick="openAttachCopy()">
附件库

View File

@ -13,7 +13,7 @@
#btnNewPost:hover{background:#3c8dbc;color:#fff}
</style>
<section class="content-header">
<h1 style="display: inline-block;">文章管理</h1>
<h1 style="display: inline-block;"><@spring.message code='admin.posts.title' /></h1>
<a data-pjax="false" id="btnNewPost" href="/admin/posts/new">
写文章
</a>

View File

@ -21,7 +21,7 @@
}
</style>
<section class="content-header">
<h1 style="display: inline-block;">新建文章</h1>
<h1 style="display: inline-block;"><@spring.message code='admin.posts.edit.title' /></h1>
<a id="btnOpenAttach" href="#" onclick="openAttachCopy()">
附件库
</a>

View File

@ -14,7 +14,7 @@
</style>
<section class="content-header">
<h1>
个人资料
<@spring.message code='admin.user.profile.title' />
<small></small>
</h1>
<ol class="breadcrumb">

View File

@ -12,7 +12,7 @@
</style>
<section class="content-header">
<h1>
标签
<@spring.message code='admin.tags.title' />
<small></small>
</h1>
<ol class="breadcrumb">

View File

@ -9,7 +9,7 @@
<div class="content-wrapper">
<link rel="stylesheet" href="/static/plugins/editor.md/css/editormd.min.css">
<section class="content-header">
<h1 style="display: inline-block;">主题编辑</h1>
<h1 style="display: inline-block;"><@spring.message code='admin.themes.edit.title' /></h1>
<ol class="breadcrumb">
<li>
<a data-pjax="true" href="/admin"><i class="fa fa-dashboard"></i> 首页</a>

View File

@ -59,7 +59,7 @@
}
</style>
<section class="content-header">
<h1 style="display: inline-block;">主题管理</h1>
<h1 style="display: inline-block;"><@spring.message code='admin.themes.title' /></h1>
<a id="showForm" href="#" onclick="openThemeInstall()">
<i class="fa fa-cloud-upload" aria-hidden="true"></i>安装主题
</a>

View File

@ -9,7 +9,7 @@
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<li><a href="/" title="跳转到前台" target="_blank"><i class="fa fa-location-arrow"></i></a></li>
<li><a href="/" title="<@spring.message code='admin.module.header.a.title.turn-to-front' />" target="_blank"><i class="fa fa-location-arrow"></i></a></li>
<@commonTag method="newComments">
<li class="dropdown messages-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
@ -45,7 +45,7 @@
</#if>
</ul>
</li>
<li class="footer"><a href="/admin/comments?status=1">查看所有评论</a></li>
<li class="footer"><a href="/admin/comments?status=1"><@spring.message code='admin.module.header.btn.view-all-comments' /></a></li>
</ul>
</li>
</@commonTag>
@ -60,12 +60,12 @@
<p>${user_session.userDisplayName?if_exists}</p>
</li>
<li class="user-footer">
<div class="pull-left"><a data-pjax="true" href="/admin/profile" class="btn btn-default "><i class="fa fa-user"></i>个人资料</a></div>
<div class="pull-right"><a href="/admin/logOut" class="btn btn-default "><i class="fa fa-sign-out"></i>退出登录</a></div>
<div class="pull-left"><a data-pjax="true" href="/admin/profile" class="btn btn-default "><i class="fa fa-user"></i><@spring.message code='admin.module.header.btn.profile' /></a></div>
<div class="pull-right"><a href="/admin/logOut" class="btn btn-default "><i class="fa fa-sign-out"></i><@spring.message code='admin.module.header.btn.loginout' /></a></div>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</header>
</header>