diff --git a/apps/hexo/README.md b/apps/hexo/README.md new file mode 100644 index 00000000..6ed5f7bc --- /dev/null +++ b/apps/hexo/README.md @@ -0,0 +1,102 @@ +Hexo logo + +# Hexo + +> A fast, simple & powerful blog framework, powered by [Node.js](https://nodejs.org). + +[Website](https://hexo.io) | +[Documentation](https://hexo.io/docs/) | +[Installation Guide](https://hexo.io/docs/#Installation) | +[Contribution Guide](https://hexo.io/docs/contributing) | +[Code of Conduct](CODE_OF_CONDUCT.md) | +[API](https://hexo.io/api/) | +[Twitter](https://twitter.com/hexojs) + +[![NPM version](https://badge.fury.io/js/hexo.svg)](https://www.npmjs.com/package/hexo) +![Required Node version](https://img.shields.io/node/v/hexo) +[![Build Status](https://github.com/hexojs/hexo/workflows/Tester/badge.svg)](https://github.com/hexojs/hexo/actions?query=workflow%3ATester) +[![dependencies Status](https://img.shields.io/librariesio/release/npm/hexo)](https://libraries.io/npm/hexo) +[![Coverage Status](https://coveralls.io/repos/hexojs/hexo/badge.svg?branch=master)](https://coveralls.io/r/hexojs/hexo?branch=master) +[![Gitter](https://badges.gitter.im/hexojs/hexo.svg)](https://gitter.im/hexojs/hexo) +[![Discord Chat](https://img.shields.io/badge/chat-on%20discord-7289da.svg)](https://discord.gg/teM2Anj) +[![Telegram Chat](https://img.shields.io/badge/chat-on%20telegram-32afed.svg)](https://t.me/hexojs) +[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fhexojs%2Fhexo.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fhexojs%2Fhexo?ref=badge_shield) +[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md) + +## Features + +- Blazing fast generating +- Support for GitHub Flavored Markdown and most Octopress plugins +- One-command deploy to GitHub Pages, Heroku, etc. +- Powerful API for limitless extensibility +- Hundreds of [themes](https://hexo.io/themes/) & [plugins](https://hexo.io/plugins/) + +## Quick Start + +**Install Hexo** + +``` bash +$ npm install hexo-cli -g +``` + +Install with [brew](https://brew.sh/) on macOS and Linux: + +```bash +$ brew install hexo +``` + +**Setup your blog** + +``` bash +$ hexo init blog +$ cd blog +``` + +**Start the server** + +``` bash +$ hexo server +``` + +**Create a new post** + +``` bash +$ hexo new "Hello Hexo" +``` + +**Generate static files** + +``` bash +$ hexo generate +``` + +## More Information + +- Read the [documentation](https://hexo.io/) +- Visit the [Awesome Hexo](https://github.com/hexojs/awesome-hexo) list +- Find solutions in [troubleshooting](https://hexo.io/docs/troubleshooting.html) +- Join discussion on [Google Group](https://groups.google.com/group/hexo), [Discord](https://discord.gg/teM2Anj), [Gitter](https://gitter.im/hexojs/hexo) or [Telegram](https://t.me/hexojs) +- See the [plugin list](https://hexo.io/plugins/) and the [theme list](https://hexo.io/themes/) on wiki +- Follow [@hexojs](https://twitter.com/hexojs) for latest news + +## Contributing + +We welcome you to join the development of Hexo. Please see [contributing document](https://hexo.io/docs/contributing). 🤗 + +Also, we welcome PR or issue to [official-plugins](https://github.com/hexojs). + +## Contributors + +[![](https://opencollective.com/Hexo/contributors.svg?width=890)](https://github.com/hexojs/hexo/graphs/contributors) + +## Backers + +[![Backers](https://opencollective.com/hexo/tiers/backers.svg?avatarHeight=36&width=600)](https://opencollective.com/hexo) + +## Sponsors + +RSS3 + +## License + +[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fhexojs%2Fhexo.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fhexojs%2Fhexo?ref=badge_large) diff --git a/apps/hexo/data.yml b/apps/hexo/data.yml new file mode 100644 index 00000000..3f5453e9 --- /dev/null +++ b/apps/hexo/data.yml @@ -0,0 +1,20 @@ +name: Hexo +tags: + - 建站 +title: 快速、简洁且高效的博客框架 +type: 建站 +description: 快速、简洁且高效的博客框架 +additionalProperties: + key: hexo + name: Hexo + tags: + - WebSite + shortDescZh: 快速、简洁且高效的博客框架 + shortDescEn: A fast, simple & powerful blog framework + type: website + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://hexo.io/ + github: https://github.com/hexojs/hexo + document: https://hexo.io/docs/ diff --git a/apps/hexo/latest/.env.sample b/apps/hexo/latest/.env.sample new file mode 100644 index 00000000..f6c6fa51 --- /dev/null +++ b/apps/hexo/latest/.env.sample @@ -0,0 +1,5 @@ +CONTAINER_NAME="hexo" +PANEL_APP_PORT_HTTP="40064" +DATA_PATH="./data" +GIT_USERNAME="gituser" +GIT_MAIL="user@email.com" diff --git a/apps/hexo/latest/data.yml b/apps/hexo/latest/data.yml new file mode 100644 index 00000000..8875e4fc --- /dev/null +++ b/apps/hexo/latest/data.yml @@ -0,0 +1,31 @@ +additionalProperties: + formFields: + - default: 40064 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: ./data + edit: true + envKey: DATA_PATH + labelEn: Data folder path + labelZh: 数据文件夹路径 + required: true + type: text + - default: "" + edit: true + envKey: GIT_USERNAME + labelEn: Git username + labelZh: Git 用户名 + required: true + type: text + - default: "" + edit: true + envKey: GIT_MAIL + labelEn: Git Email + labelZh: Git 邮箱 + required: true + type: text \ No newline at end of file diff --git a/apps/hexo/latest/docker-compose.yml b/apps/hexo/latest/docker-compose.yml new file mode 100644 index 00000000..2bcb4199 --- /dev/null +++ b/apps/hexo/latest/docker-compose.yml @@ -0,0 +1,24 @@ +version: '3' +services: + hexo: + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:4000" + volumes: + - "${DATA_PATH}:/app" + environment: + - PUID=1000 + - PGID=1000 + - TZ=Asia/Shanghai + - GIT_USER=${GIT_USERNAME} + - GIT_EMAIL=${GIT_MAIL} + image: bloodstar/hexo:latest + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/hexo/logo.png b/apps/hexo/logo.png new file mode 100644 index 00000000..cc61dcec Binary files /dev/null and b/apps/hexo/logo.png differ diff --git a/apps/hexo/stable-23-07-01/.env.sample b/apps/hexo/stable-23-07-01/.env.sample new file mode 100644 index 00000000..f6c6fa51 --- /dev/null +++ b/apps/hexo/stable-23-07-01/.env.sample @@ -0,0 +1,5 @@ +CONTAINER_NAME="hexo" +PANEL_APP_PORT_HTTP="40064" +DATA_PATH="./data" +GIT_USERNAME="gituser" +GIT_MAIL="user@email.com" diff --git a/apps/hexo/stable-23-07-01/data.yml b/apps/hexo/stable-23-07-01/data.yml new file mode 100644 index 00000000..8875e4fc --- /dev/null +++ b/apps/hexo/stable-23-07-01/data.yml @@ -0,0 +1,31 @@ +additionalProperties: + formFields: + - default: 40064 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: ./data + edit: true + envKey: DATA_PATH + labelEn: Data folder path + labelZh: 数据文件夹路径 + required: true + type: text + - default: "" + edit: true + envKey: GIT_USERNAME + labelEn: Git username + labelZh: Git 用户名 + required: true + type: text + - default: "" + edit: true + envKey: GIT_MAIL + labelEn: Git Email + labelZh: Git 邮箱 + required: true + type: text \ No newline at end of file diff --git a/apps/hexo/stable-23-07-01/docker-compose.yml b/apps/hexo/stable-23-07-01/docker-compose.yml new file mode 100644 index 00000000..114f57de --- /dev/null +++ b/apps/hexo/stable-23-07-01/docker-compose.yml @@ -0,0 +1,24 @@ +version: '3' +services: + hexo: + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:4000" + volumes: + - "${DATA_PATH}:/app" + environment: + - PUID=1000 + - PGID=1000 + - TZ=Asia/Shanghai + - GIT_USER=${GIT_USERNAME} + - GIT_EMAIL=${GIT_MAIL} + image: bloodstar/hexo:stable-23-07-01 + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/hexo/taskbjorn-latest/.env.sample b/apps/hexo/taskbjorn-latest/.env.sample new file mode 100644 index 00000000..f62b64af --- /dev/null +++ b/apps/hexo/taskbjorn-latest/.env.sample @@ -0,0 +1,2 @@ +CONTAINER_NAME="hexo" +PANEL_APP_PORT_HTTP="40064" diff --git a/apps/hexo/taskbjorn-latest/data.yml b/apps/hexo/taskbjorn-latest/data.yml new file mode 100644 index 00000000..793ab404 --- /dev/null +++ b/apps/hexo/taskbjorn-latest/data.yml @@ -0,0 +1,11 @@ +additionalProperties: + formFields: + - default: 40064 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + diff --git a/apps/hexo/taskbjorn-latest/docker-compose.yml b/apps/hexo/taskbjorn-latest/docker-compose.yml new file mode 100644 index 00000000..0f10518d --- /dev/null +++ b/apps/hexo/taskbjorn-latest/docker-compose.yml @@ -0,0 +1,21 @@ +version: '3' +services: + hexo: + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:4000" + volumes: + - hexo_data:/home/hexo/.hexo + image: taskbjorn/hexo:alpine-latest + labels: + createdBy: "Apps" + +volumes: + hexo_data: + +networks: + 1panel-network: + external: true