diff options
author | David Shorter <davidshorter@users.noreply.github.com> | 2017-04-03 11:38:05 +0300 |
---|---|---|
committer | Adrián Moreno <adrian@morenomartinez.com> | 2017-04-03 11:38:05 +0300 |
commit | 9bdf4b7ea1e9a9a8249cbd0b92725fef1b1ddbb9 (patch) | |
tree | dce4fae15a1208f2aa0d938bdb7df9cba6076021 /README.md | |
parent | 0dbed9eae421530737e6aef2a692261f9a1376e8 (diff) |
Add in support for meta tags. (#65)
* Add ability to define description and keyword tags
* Update documentation
* Update documentation
* Update documentation
* Update documentation
* Update documentation
* remove tab line endings
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -29,6 +29,7 @@ This Hugo theme was ported from [Bootstrapious](http://bootstrapious.com/p/unive * [See more](#see-more) * [Clients](#clients) * [Recent posts](#recent-posts) + * [Meta tags](#meta-tags) * [Usage](#usage) * [Contributing](#contributing) * [License](#license) @@ -353,6 +354,37 @@ You can enable it in the configuration file. subtitle = "Pellen ``` + +#### Meta tags + +`Description` and `Keyword` `meta tags` are enabled. +To set default values for all pages can be done in the `config.toml` file as below. + +```toml +[params] + defaultKeywords = ["devows", "hugo", "go"] + defaultDescription = "Site template made by devcows using hugo" +``` + +results in HTML + +```html +<meta name="keywords" content="devows, hugo, go"> +<meta name="description" content="Site template made by devcows using hugo"> +``` + +To not take the defaults from the `config.toml` file you can override these in the individual pages. +See `faq.md` in exampleSite for an example + +```yaml ++++ +title = "FAQ" +description = "Frequently asked questions" +keywords = ["FAQ","How do I","questions","what if"] ++++ +``` + + ## Usage In order to see your site in action, run Hugo's built-in local server. |