Haoyang's Academic Homepage
This project is fork from Weiguo Wang's Academic Homepage, many thanks to Weiguo.
👋 Hi there, this is my academic homepage built on vue.js, marked, citation-js and bolt.css.
🌴 Clone Template
This repo is licensed under MIT, so feel free to clone or fork it.
To use this as a template, you may want to:
- Fork this repository to your namespace.
- Rename the repo to
<your github username>.github.io
- Remove analytics in
src/index.html
- Remove files in
public/files/
- Change favicon in
public/favicon-32x32.png
- Change footer in
src/App.vue
- Change all the contents in
src/content/
- Setup node.js for development (nvm is recommended to manage different versions of node.js)
- Clone your repo to your computer
- Change directory to the cloned repo, type
npm install
in the terminal to install all necessary dependencies - Type
npm run dev
to test in your localhost - You may want to change branches in
.github/workflows/deploy.yml
, and change reposettings/Code and automation/Pages/Build and deployment/Source
toGithub Actions
🚀 Quick Start
- Project Setup
npm install
- Compile and Hot-Reload for Development
npm run dev
- Compile and Minify for Production
npm run build
📝 Memorandum
- Favicon is generated via favicon.io, you should put the generated one into
/public
folder - Change
<title>
content inindex.html
- Search icons from font-awesome and academicons
- All info are stored in
./src/content/*.json
, please modify these files. - Analytics are hard-coded in
index.html
, make sure to remove them. - footer links are hard-coded in
App.vue
a little problem
- 需要修改路径 /dist/index 文件
./assets/index-24f9fb47.js ./assets/index-2884ae93.css
- 需要修改个人照片路径,全局搜索照片名称,在asset之前加 "."
M4="./assets/personal-photo-6d66aeda.jpg"
how to submit
- git checkout gh-pages //切换到gh-pages分支
- 把main分支的内容merge到gh-pages中
- git add -f dist //强制把dist文件夹提交到github
- git subtree push --prefix dist origin gh-pages //把dist文件夹单独部署到gh-pages分支