|
пре 8 година | |
---|---|---|
archetypes | пре 8 година | |
exampleSite | пре 8 година | |
i18n | пре 8 година | |
images | пре 9 година | |
layouts | пре 8 година | |
static | пре 8 година | |
.editorconfig | пре 8 година | |
LICENSE.md | пре 9 година | |
README.md | пре 8 година | |
theme.toml | пре 8 година |
A highly flexible personal website theme for Hugo.
Key features:
Latest demo: gcushen.github.io/hugo-academic-demo/
Install Hugo and create a new website by typing the following commands in your Terminal or Command Prompt app:
hugo new site my_website
cd my_website
Install Academic theme with git:
git clone https://github.com/gcushen/hugo-academic.git themes/academic
Or alternatively, download Academic and extract it into a themes/academic
folder within your Hugo website.
If you are creating a new website, copy the contents of the exampleSite
folder to your website root folder, overwriting existing files if necessary. The exampleSite
folder contains an example config file and content to help you get started.
cp -av themes/academic/exampleSite/* .
Start the Hugo server from your website root folder:
hugo server --watch
Now you can go to localhost:1313 and your new Academic themed website should appear.
Customize your website and add your content by referring to the Academic theme documentation
Build your site by running the hugo
command. Then host it for free using Github Pages. Or alternatively, copy the generated public/
directory (by FTP, Rsync, etc.) to your production web server (such as your university's hosting service).
Feel free to star the project on Github and monitor the commits for updates.
Before upgrading the theme, it is recommended to make a backup of your entire website directory, or at least your themes/academic
directory. You can also read about the most recent milestones (but this doesn't necessarily reflect the latest master release).
Before upgrading for the first time, the remote origin repository should be renamed to upstream:
$ cd themes/academic
$ git remote rename origin upstream
To list available updates:
$ cd themes/academic
$ git fetch upstream
$ git log --pretty=oneline --abbrev-commit --decorate HEAD..upstream/master
Then, upgrade by running:
$ git pull upstream
If you have modified files in themes/academic
, git will attempt to auto-merge changes. If conflicts are reported, you will need to manually edit the files with conflicts and add them back (git add <filename>
).
If there are any issues after upgrading, you may wish to compare your site with the latest example site to check if any settings changed.
Please use the issue tracker to let me know about any bugs or feature requests, or alternatively make a pull request.
For general questions about Hugo, there is a Hugo discussion forum.
Copyright 2016 George Cushen.
Released under the MIT license.