-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
authored and
root
committed
Mar 26, 2024
0 parents
commit 4b688c1
Showing
54 changed files
with
7,888 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- name: Cache NPM dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.OS }}-npm-cache | ||
restore-keys: | | ||
${{ runner.OS }}-npm-cache | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: Upload Pages artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: ./public | ||
deploy: | ||
needs: build | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.DS_Store | ||
Thumbs.db | ||
db.json | ||
*.log | ||
node_modules/ | ||
public/ | ||
.deploy*/ | ||
_multiconfig.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 guidons | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,181 @@ | ||
<h1 align="center"> | ||
|
||
[*hexo-theme-lab*](https://github.com/guidons-master/hexo-theme-lab) | ||
|
||
</h1> | ||
|
||
<p align="center"> | ||
<img src="./source/assets/img/image.png" width="600px" alt="Lab" /> | ||
</p> | ||
|
||
<div align="center"> | ||
|
||
> 一个专为 **实验室网站** 而设计的 Hexo 主题 | ||
</div> | ||
|
||
<p align="center"> | ||
<img alt="Author" src="https://img.shields.io/badge/Author-guidons-red.svg"/> | ||
<img alt="Node" src="https://img.shields.io/badge/Node-6.0%2B-43853d.svg"/> | ||
<img alt="Hexo" src="https://img.shields.io/badge/Hexo-6.0+-0e83cd.svg"/> | ||
<img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square&logo=appveyor&logoColor=white"> | ||
<img alt="Build Status" src="https://img.shields.io/badge/build-passing-brightgreen"/> | ||
</p> | ||
|
||
## Contents 目录 | ||
- [Introduction 介绍](#introduction-介绍) | ||
- [Demo 演示](#demo-演示) | ||
- [Features 特点](#features-特点) | ||
- [Installation 安装](#installation-安装) | ||
- [Configuration 配置](#configuration-配置) | ||
- [License 开源许可](#license-开源许可) | ||
|
||
## Demo 演示 | ||
- [Demo Site](https://guidons-master.github.io/hexo-theme-lab/) | ||
|
||
## Features 特点 | ||
- 扁平化风格,简洁美观 | ||
- 夜间模式主题一键切换 | ||
- 便捷的站内搜索功能 | ||
- 精心挑选的字体,最好的阅读体验 | ||
- 响应式适配移动端/桌面端 | ||
- 支持 MathJax,支持 LaTeX 语法的数学公式 | ||
|
||
## Installation 安装 | ||
|
||
```bash | ||
cd your-blog/themes | ||
git clone https://github.com/guidons-master/hexo-theme-lab.git Lab | ||
npm install | ||
npm run server | ||
``` | ||
|
||
## Configuration 配置 | ||
|
||
```yaml | ||
stylesheet: | ||
- /css/main.css | ||
|
||
script: | ||
- /js/main.js | ||
|
||
github: https://github.com/guidons-masters/hexo-theme-lab | ||
|
||
menu: | ||
- title: Home | ||
url: / | ||
- title: Team | ||
url: /team | ||
- title: Research | ||
url: /research | ||
- title: Projects | ||
url: /projects | ||
- title: Contact | ||
url: /contact | ||
|
||
# 每页文章数 | ||
per_page_posts: 5 | ||
|
||
# MathJax功能支持, 如果不需要可以注释掉 | ||
mathjax: | ||
src: https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML | ||
|
||
lab: | ||
# 实验室名称 | ||
name: 机器感知与计算智能实验室 | ||
# 主页背景图片 | ||
background: /assets/img/background.jpg | ||
# 实验室的logo | ||
logo: /assets/img/logo.jpg | ||
# 欢迎语 | ||
welcome: 欢迎访问机器感知与计算智能实验室 | ||
# 团队照片 | ||
image: https://bulma.io/assets/images/placeholders/600x480.png | ||
# 实验室简介 | ||
introduce: Lorem ipsum dolor, sit amet consectetur adipisicing elit. Accusantium, voluptatem repudiandae adipisci quod consequuntur eum quis quos vitae quasi nostrum facere quam. Fuga, perferendis! Unde tenetur provident corporis voluptatibus architecto accusantium consectetur et, dolores, non mollitia deserunt alias, atque recusandae pariatur commodi aut veritatis! Corporis quae dolor velit et, omnis praesentium quisquam, laboriosam reprehenderit animi id fugiat quia modi alias. | ||
# 实验室Github地址 | ||
github: https://github.com/MAPLab | ||
# 友链 | ||
links: | ||
- name: 东北大学 | ||
url: https://www.neu.edu.cn/ | ||
|
||
- name: 信息学院 | ||
url: https://ise.neu.edu.cn/ | ||
|
||
# 实验室地址 | ||
location: | ||
address: 和平区文化路3号巷 | ||
city: 沈阳 | ||
province: 辽宁 | ||
country: 中国 | ||
zip: 110169 | ||
map: https://www.openstreetmap.org/export/embed.html?bbox=123.4326%2C41.8053%2C123.4373%2C41.8083&layer=mapnik | ||
|
||
# 实验室招生信息 | ||
recruitment: | ||
- "1. 具有较强的计算机编程能力,具有较强的自学能力。" | ||
- "2. 具备较好的英文阅读和写作能力。" | ||
- "3. 责任心强、有团队精神,能吃苦耐劳,积极进取。" | ||
- "欢迎控制科学与工程、模式识别与智能系统、人工智能、控制工程、电子信息专业学生报考东北大学机器感知与计算智能实验室博士、硕士研究生!" | ||
|
||
# 联系方式 | ||
contact: | ||
- name: John Doe | ||
email: johndoe@example.com | ||
img: https://bulma.io/assets/images/placeholders/96x96.png | ||
|
||
- name: Jane Smith | ||
email: janesmith@example.com | ||
img: https://bulma.io/assets/images/placeholders/96x96.png | ||
|
||
- name: Robert Johnson | ||
email: robertjohnson@example.com | ||
img: https://bulma.io/assets/images/placeholders/96x96.png | ||
|
||
``` | ||
|
||
### Source 目录结构 | ||
参考 [source](./source/) 目录 | ||
```bash | ||
source | ||
├── _posts | ||
│ └── test.md | ||
├── assets | ||
│ ├── img | ||
│ │ └── logo.jpg | ||
│ └── js | ||
│ ├── OrbitControls.min.js | ||
│ ├── luma-web.module.min.js | ||
│ └── three.min.js | ||
├── contact | ||
│ └── index.md | ||
├── projects | ||
│ ├── a.md | ||
│ ├── b.md | ||
│ └── index.md | ||
├── research | ||
│ ├── a.md | ||
│ └── index.md | ||
└── team | ||
├── index.md | ||
├── master | ||
│ └── a.md | ||
└── professor | ||
├── a.md | ||
└── b.md | ||
``` | ||
|
||
### 开启 MathJax 支持(数学公式) | ||
```yaml | ||
--- | ||
title: MathJax Test | ||
date: 2019-07-05 21:27:59 | ||
tags: | ||
mathjax: true # 加入这个声明,这篇文章就会开启mathjax渲染 | ||
--- | ||
``` | ||
|
||
## License 开源许可 | ||
[MIT](https://opensource.org/licenses/MIT) © guidons | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# Hexo Configuration | ||
## Docs: https://hexo.io/docs/configuration.html | ||
## Source: https://github.com/hexojs/hexo/ | ||
|
||
# Site | ||
title: Lab | ||
subtitle: '' | ||
description: '' | ||
keywords: | ||
author: guidons | ||
language: | ||
- zh-CN | ||
- en | ||
timezone: '' | ||
|
||
search: | ||
path: search.json | ||
field: page | ||
content: false | ||
|
||
# URL | ||
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' | ||
url: http://example.com | ||
permalink: /:category/:title/ | ||
permalink_defaults: | ||
pretty_urls: | ||
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks | ||
trailing_html: true # Set to false to remove trailing '.html' from permalinks | ||
|
||
# Directory | ||
source_dir: source | ||
public_dir: public | ||
tag_dir: tags | ||
archive_dir: archives | ||
category_dir: categories | ||
code_dir: downloads/code | ||
i18n_dir: :lang | ||
skip_render: | ||
|
||
# Writing | ||
new_post_name: :title.md # File name of new posts | ||
default_layout: post | ||
titlecase: false # Transform title into titlecase | ||
external_link: | ||
enable: true # Open external links in new tab | ||
field: site # Apply to the whole site | ||
exclude: '' | ||
filename_case: 0 | ||
render_drafts: false | ||
post_asset_folder: false | ||
# for github pages | ||
root: /hexo-theme-lab/ | ||
relative_link: false | ||
future: true | ||
syntax_highlighter: highlight.js | ||
highlight: | ||
line_number: true | ||
auto_detect: false | ||
tab_replace: '' | ||
wrap: true | ||
hljs: false | ||
prismjs: | ||
preprocess: true | ||
line_number: true | ||
tab_replace: '' | ||
|
||
# Home page setting | ||
# path: Root path for your blogs index page. (default = '') | ||
# per_page: Posts displayed per page. (0 = disable pagination) | ||
# order_by: Posts order. (Order by date descending by default) | ||
index_generator: | ||
path: '' | ||
per_page: 10 | ||
order_by: -date | ||
|
||
# Category & Tag | ||
default_category: uncategorized | ||
category_map: | ||
tag_map: | ||
|
||
# Metadata elements | ||
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta | ||
meta_generator: true | ||
|
||
# Date / Time format | ||
## Hexo uses Moment.js to parse and display date | ||
## You can customize the date format as defined in | ||
## http://momentjs.com/docs/#/displaying/format/ | ||
date_format: YYYY-MM-DD | ||
time_format: HH:mm:ss | ||
## updated_option supports 'mtime', 'date', 'empty' | ||
updated_option: 'mtime' | ||
|
||
# Pagination | ||
## Set per_page to 0 to disable pagination | ||
per_page: 10 | ||
pagination_dir: page | ||
|
||
# Include / Exclude file(s) | ||
## include:/exclude: options only apply to the 'source/' folder | ||
include: | ||
exclude: | ||
ignore: | ||
|
||
# Extensions | ||
## Plugins: https://hexo.io/plugins/ | ||
## Themes: https://hexo.io/themes/ | ||
theme: Lab | ||
|
||
# Deployment | ||
## Docs: https://hexo.io/docs/one-command-deployment | ||
deploy: | ||
type: '' |
Oops, something went wrong.