diff --git a/README.md b/README.md index 12df43d7..06864cac 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Academic is available in different color themes and font themes. | --- | --- | | ![default theme](https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-default.png) | ![ocean theme](https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-ocean.png) | -| `forest` | `coffee` | +| `forest` | `coffee` + `playfair` font | | --- | --- | | ![forest theme](https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-forest.png) | ![coffee theme](https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-coffee-playfair.png) | diff --git a/exampleSite/content/post/getting-started.md b/exampleSite/content/post/getting-started.md index b0c737b8..2b91312b 100644 --- a/exampleSite/content/post/getting-started.md +++ b/exampleSite/content/post/getting-started.md @@ -98,7 +98,7 @@ The following color themes are available and can be set by the `color_theme` opt | --- | --- | | ![default theme](https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-default.png)| ![ocean theme](https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-ocean.png) | -| `forest` | `coffee` | +| `forest` | `coffee` + `playfair` font | | --- | --- | | ![forest theme](https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-forest.png) | ![coffee theme](https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-coffee-playfair.png) | @@ -162,6 +162,13 @@ For further details on Hugo's internationalization and multilingual features, re Where `:slug` defaults to the filename of the post, excluding the file extension. However, slug may be overridden on a per post basis if desired, simply by setting `slug = "my-short-post-title"` in your post preamble. +**Example 2:** let's consider changing the URL path of posts from `post/` to `blog/`. First, add the following parameters right above the `[params]` section of your `config.toml`: +``` +[permalinks] + post = "/blog/:slug" +``` +Then add `aliases = ["/blog/"]` to your post archive page `post/_index.md` so that it can be accessed from the */blog/* URL. + ### Advanced style customization (CSS) For advanced customization of the style, you can link custom CSS assets (relative to your root `static/css`) from your `config.toml` using `custom_css = ["custom.css"]`.