Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Shorter <davidshorter@users.noreply.github.com>2017-04-03 11:38:05 +0300
committerAdrián Moreno <adrian@morenomartinez.com>2017-04-03 11:38:05 +0300
commit9bdf4b7ea1e9a9a8249cbd0b92725fef1b1ddbb9 (patch)
treedce4fae15a1208f2aa0d938bdb7df9cba6076021 /README.md
parent0dbed9eae421530737e6aef2a692261f9a1376e8 (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.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/README.md b/README.md
index 94dab2e..6d38f6b 100644
--- a/README.md
+++ b/README.md
@@ -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.