Skip to content

fengwz17/fengwz17.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zero Academic Page Starter Template

This is a quick start template for Zero Academic Page. It uses Hugo modules feature to load the theme.

It comes with a basic theme structure and configuration. GitHub action has been set up to deploy the theme to a public GitHub page automatically. Also, there's a cron job to update the theme automatically everyday.

Get started

  1. Click Use this template, and create your repository as <username>.github.io on GitHub. Step 1

  2. Once the repository is created, create a GitHub codespace associated with it. Create codespace

  3. And voila! You're ready to go. The codespace has been configured with the latest version of Hugo extended, just run hugo server in the terminal and see your new site in action.

  4. Check hugo.toml for the configuration file. You can edit them to suit your needs. Make sure to update the baseurl property in hugo.toml to your site's URL.

  5. Open Settings -> Pages. Change the build branch from main to gh-pages. Build

  6. Once you're done editing the site, just commit it and push it. GitHub action will deploy the site automatically to GitHub page asociated with the repository. GitHub action

Build and deploy locally

In case you don't want to use GitHub codespace, you can also run this template in your local machine. First, you need to install Git, Go and Hugo extended locally..

  1. Clone this repository to your local machine
git clone https://github.com/geekifan/zero-academic-page-starter && cd zero-academic-page-starter
  1. Run hugo server in the terminal and see your new site in action.

  2. Check hugo.toml for the configuration file. You can edit them to suit your needs. Make sure to update the baseurl property in hugo.toml to your site's URL.

  3. Run hugo build.

  4. Upload public directory to your server.

Update theme manually

Run:

hugo mod get -u github.com/geekifan/zero-academic-page
hugo mod tidy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published