Go to file
Jack Taylor 05c8b38c9b Add exampleSite/themes to .gitignore
This is so that we can clone the repo in the example site's themes
directory and test the example site using `hugo server`.
2017-05-06 21:15:08 +09:00
archetypes Remove comments and bigimg from archetype 2017-03-25 14:57:18 -07:00
data/beautifulhugo Move social.toml data file to theme folder 2017-03-27 23:41:41 -07:00
exampleSite Fix URLs for sites where baseURL is not the domain root 2017-05-04 20:21:14 +09:00
i18n Russian language support 2017-04-29 12:29:09 +01:00
images Add slashes to links in <head.html>, <nav.html>, <footer.html> and 2017-02-06 19:38:32 +01:00
layouts Moved Google Analytics snippet to head and changed it to use async snippet. 2017-05-05 03:13:34 -04:00
static Add links to translated content 2017-04-07 12:58:57 +09:00
.gitattributes 👾 Added .gitattributes & .gitignore files 2016-03-08 02:42:05 -08:00
.gitignore Add exampleSite/themes to .gitignore 2017-05-06 21:15:08 +09:00
LICENSE Selected updates from latest beautiful-jekyll changes 2017-02-20 00:10:26 -08:00
README.md very minor - change description of backticks/tilde 2017-02-19 02:23:37 -08:00
theme.toml Update the required Hugo version in theme.toml 2017-04-15 19:00:33 +09:00

README.md

Beautiful Hugo - A port of Beautiful Jekyll Theme

Beautiful Hugo Theme Screenshot

Installation

$ mkdir themes
$ cd themes
$ git clone https://github.com/halogenica/beautifulhugo.git beautifulhugo

See the Hugo documentation for more information.

Extra Features

Responsive

This theme is designed to look great on both large-screen and small-screen (mobile) devices.

Syntax highlighting

This theme has support for both server side and client side highlighting.

Server side syntax highlighting

Use the highlight shortcode (with Pygments), see the Hugo documentation for more information.

To use this feature install Pygments (pip install Pygments) and add pygmentsuseclasses = true to your config.toml.

Client side syntax highlighting

Use triple backticks ( ``` ) or triple tilde ( ~~~ ) around code blocks.

Client side highlighting does not require pygments to be installed.

Disqus support

To use this feature, uncomment and fill out the disqusShortname parameter in config.toml.

Google Analytics

To add Google Analytics, simply sign up to Google Analytics to obtain your Google Tracking ID, and add this tracking ID to the googleAnalytics parameter in config.toml.

If the source of your site is in a Git repo, the SHA corresponding to the commit the site is built from can be shown on the footer. To do so, two environment variables have to be set (GIT_COMMIT_SHA and GIT_COMMIT_SHA_SHORT) and parameter commit has to be defined in the config file:

[Params]
  commit = "https://github.com/<username>/<siterepo>/tree/"

This can be achieved by running the next command prior to calling Hugo:

  GIT_COMMIT_SHA=`git rev-parse --verify HEAD` GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD`

See at xor-gate/xor-gate.org an example of how to add it to a continuous integration system.

About

This is a port of the Jekyll theme Beautiful Jekyll by Dean Attali. It supports most of the features of the original theme.

License

MIT Licensed, see LICENSE.