|
| 1 | +# Academic Website |
| 2 | + |
| 3 | +Personal academic website built with Hugo and the Hugo Blox (Academic) theme. |
| 4 | + |
| 5 | +## Quick Start |
| 6 | + |
| 7 | +### Preview Locally |
| 8 | + |
| 9 | +To preview your site locally: |
| 10 | + |
| 11 | +```bash |
| 12 | +./hugo server -D |
| 13 | +``` |
| 14 | + |
| 15 | +Then visit `http://localhost:1313` in your browser. |
| 16 | + |
| 17 | +### Content Structure |
| 18 | + |
| 19 | +- `content/authors/admin/_index.md` - Your bio and profile information |
| 20 | +- `content/publication/` - Your publications |
| 21 | +- `content/post/` - Blog posts |
| 22 | +- `hugo.toml` - Main site configuration |
| 23 | + |
| 24 | +### Customization |
| 25 | + |
| 26 | +1. **Update your profile**: Edit `content/authors/admin/_index.md` |
| 27 | +2. **Site settings**: Edit `hugo.toml` to change: |
| 28 | + - `baseURL` to your GitHub Pages URL (e.g., `https://username.github.io/`) |
| 29 | + - `title` to your name |
| 30 | + - Contact information in the `[params]` section |
| 31 | +3. **Add publications**: Create new folders in `content/publication/` with an `index.md` file |
| 32 | +4. **Write blog posts**: Create new folders in `content/post/` with an `index.md` file |
| 33 | + |
| 34 | +### Deployment to GitHub Pages |
| 35 | + |
| 36 | +1. Create a new repository on GitHub (e.g., `username.github.io`) |
| 37 | +2. Push this code to the repository: |
| 38 | + ```bash |
| 39 | + git add . |
| 40 | + git commit -m "Initial commit" |
| 41 | + git branch -M main |
| 42 | + git remote add origin https://github.com/username/username.github.io.git |
| 43 | + git push -u origin main |
| 44 | + ``` |
| 45 | +3. In your GitHub repository, go to Settings > Pages |
| 46 | +4. Under "Build and deployment", set Source to "GitHub Actions" |
| 47 | +5. The site will automatically deploy when you push changes to the main branch |
| 48 | + |
| 49 | +### Adding Content |
| 50 | + |
| 51 | +#### Add a Publication |
| 52 | + |
| 53 | +```bash |
| 54 | +./hugo new content/publication/my-paper/index.md |
| 55 | +``` |
| 56 | + |
| 57 | +Then edit the created file with your publication details. |
| 58 | + |
| 59 | +#### Add a Blog Post |
| 60 | + |
| 61 | +```bash |
| 62 | +./hugo new content/post/my-post/index.md |
| 63 | +``` |
| 64 | + |
| 65 | +Then edit the created file with your post content. |
| 66 | + |
| 67 | +## Resources |
| 68 | + |
| 69 | +- [Hugo Documentation](https://gohugo.io/documentation/) |
| 70 | +- [Hugo Blox Documentation](https://docs.hugoblox.com/) |
| 71 | +- [Markdown Guide](https://www.markdownguide.org/) |
| 72 | + |
| 73 | +## License |
| 74 | + |
| 75 | +This website template is based on Hugo Blox, which is licensed under the MIT License. |
0 commit comments