$ mkdir themes
$ cd themes
$ git submodule add https://github.com/gnappuraz/tandoori-hugo.git tandoori-hugo
See the Hugo documentation for more information.
This theme is designed to look great on both large-screen and small-screen (mobile) devices.
This theme uses the default server-side Chroma highlighting, the style can be found in css/style.css
.
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
.
There are some extra shortcodes provided (along with the customized figure shortcode):
This simply adds the html5 detail attribute, supported on all modern browsers. Use it like this:
{{% details "This is the details title (click to expand)" %}}
This is the content (hidden until clicked).
{{% /details %}}
This adds a two column side-by-side environment (will turn into 1 col for narrow devices):
{{< columns >}}
This is column 1.
{{< column >}}
This is column 2.
{{< endcolumn >}}
It creates a round cut-out of the image passed in src
:
{{< avatar src="/images/avatar.png" >}}
Centers the content wrapping it in a div
with text-align: center
:
{{< centered >}}
<span>Some text that need to be centered</span>
{{< centered />}}
This is a restyle of the Beautiful Hugo theme by Michael Romero. It supports most of the features of the original theme.
MIT Licensed, see LICENSE.