hugo-academic-mirror/README.md

84 lines
4.4 KiB
Markdown
Raw Normal View History

2016-04-27 12:26:40 +01:00
# Hugo Academic
2016-12-19 07:52:13 +00:00
A highly flexible personal website theme for [Hugo](https://gohugo.io).
2016-04-27 12:26:40 +01:00
[![Screenshot](https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/screenshot.png)](https://github.com/gcushen/hugo-academic/)
Key features:
2016-05-07 02:00:31 +01:00
- Designed for academic staff, students, or general personal use
2016-12-19 07:52:13 +00:00
- Configurable widgets available for Biography, Publications, Projects, News/Blog, Talks, Contact, and Custom
- Write in [Markdown](http://gcushen.github.io/hugo-academic-demo/post/writing-markdown-latex/) for easy formatting and code highlighting, with [LaTeX](https://en.wikibooks.org/wiki/LaTeX/Mathematics) for mathematical expressions
2016-10-18 03:15:55 +01:00
- Academic linking (Scholar etc.), [Google Analytics](https://analytics.google.com), and [Disqus](https://disqus.com) comments
2016-04-27 12:26:40 +01:00
- Responsive and mobile friendly
2016-05-07 02:00:31 +01:00
- Simple and refreshing one page design
2016-04-27 12:26:40 +01:00
- Easy to customize
2016-05-31 18:36:43 +01:00
Latest demo: [gcushen.github.io/hugo-academic-demo/](http://gcushen.github.io/hugo-academic-demo/)
2016-10-18 03:15:55 +01:00
## Getting Started
2016-04-27 12:26:40 +01:00
2016-10-18 03:15:55 +01:00
1. [Install Hugo](https://georgecushen.com/create-your-website-with-hugo/#installing-hugo) and create a new website by typing the following commands in your *Terminal* or *Command Prompt* app:
2016-04-27 17:34:01 +01:00
hugo new site my_website
cd my_website
2016-05-31 18:36:43 +01:00
2. Install Academic theme with [git](https://help.github.com/articles/set-up-git/):
2016-04-27 12:26:40 +01:00
2016-06-05 01:08:18 +01:00
git clone https://github.com/gcushen/hugo-academic.git themes/academic
2016-04-27 12:26:40 +01:00
2016-05-31 18:36:43 +01:00
Or alternatively, [download Academic](https://github.com/gcushen/hugo-academic/archive/master.zip) and extract it into a `themes/academic` folder within your Hugo website.
2016-04-27 17:34:01 +01:00
3. 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.
2016-04-27 12:26:40 +01:00
2016-05-13 00:50:16 +01:00
cp -av themes/academic/exampleSite/* .
2016-04-27 17:34:01 +01:00
4. Start the Hugo server from your website root folder:
2016-04-27 12:26:40 +01:00
2016-04-27 17:34:01 +01:00
hugo server --watch
Now you can go to [localhost:1313](http://localhost:1313) and your new Academic themed website should appear.
2016-04-27 17:34:01 +01:00
2016-10-18 03:15:55 +01:00
5. [Customize your website](http://gcushen.github.io/hugo-academic-demo/post/getting-started/#getting-started) and [add your content](http://gcushen.github.io/hugo-academic-demo/post/managing-content/) by referring to the Academic theme documentation
2016-04-27 12:26:40 +01:00
2016-10-18 03:15:55 +01:00
6. Build your site by running the `hugo` command. Then [host it for free using Github Pages](https://georgecushen.com/create-your-website-with-hugo/). Or alternatively, copy the generated `public/` directory (by FTP, Rsync, etc.) to your production web server (such as your university's hosting service).
2016-04-27 12:26:40 +01:00
## Upgrading
2016-10-18 03:15:55 +01:00
Feel free to *star* the project on [Github](https://github.com/gcushen/hugo-academic/) and monitor the [commits](https://github.com/gcushen/hugo-academic/commits/master) for updates.
2016-05-13 00:50:16 +01:00
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](https://github.com/gcushen/hugo-academic/releases) (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
2016-05-13 11:28:22 +01:00
$ git fetch upstream
$ git log --pretty=oneline --abbrev-commit --decorate HEAD..upstream/master
2016-05-13 00:50:16 +01:00
2016-09-22 02:13:59 +01:00
Then, upgrade by running:
2016-05-13 00:50:16 +01:00
2016-05-31 18:36:43 +01:00
$ git pull upstream
2016-05-13 00:50:16 +01:00
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](https://github.com/gcushen/hugo-academic/tree/master/exampleSite) to check if any settings changed.
2016-04-27 23:53:39 +01:00
2016-10-18 03:15:55 +01:00
## Feedback & Contributing
2016-04-27 23:53:39 +01:00
Please use the [issue tracker](https://github.com/gcushen/hugo-academic/issues) to let me know about any bugs or feature requests, or alternatively make a pull request.
2016-04-27 12:26:40 +01:00
2016-10-18 03:15:55 +01:00
For general questions about Hugo, there is a [Hugo discussion forum](http://discuss.gohugo.io).
2016-05-07 02:00:31 +01:00
## License
2016-05-31 18:36:43 +01:00
Copyright 2016 [George Cushen](https://georgecushen.com).
2016-05-07 02:00:31 +01:00
Released under the [MIT](https://github.com/gcushen/hugo-academic/blob/master/LICENSE.md) license.
2016-10-18 03:15:55 +01:00
[![Analytics](https://ga-beacon.appspot.com/UA-78646709-2/hugo-academic/readme?pixel)](https://github.com/igrigorik/ga-beacon)