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

gitlab.com/rmaguiar/hugo-theme-color-your-world.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Aguiar <rmaguiar@tuta.io>2020-08-28 19:32:29 +0300
committerRaphael Aguiar <rmaguiar@tuta.io>2020-08-28 19:32:29 +0300
commit3c7b035b1b8e3481b666bc53859049f624d721a5 (patch)
tree5003da029f4ffaaa40f9474e98f17270691301f9 /exampleSite/content/posts/readme.md
parent91bb69cd7c7f7570359b544ae8427c12895ca262 (diff)
Update RSS template and minor changes
* Update RSS template * Add some custom front matter params to the README * Other minor changes
Diffstat (limited to 'exampleSite/content/posts/readme.md')
-rw-r--r--exampleSite/content/posts/readme.md13
1 files changed, 10 insertions, 3 deletions
diff --git a/exampleSite/content/posts/readme.md b/exampleSite/content/posts/readme.md
index 2922bc9..b9d473c 100644
--- a/exampleSite/content/posts/readme.md
+++ b/exampleSite/content/posts/readme.md
@@ -2,6 +2,7 @@
title : "Read Me"
description : "A copy of the README.md file."
tags : [ extra, markdown ]
+toc : true
---
[Live demo (on Netlify)](https://color-your-world-demo.netlify.app/) | [Demo (on Hugo Themes)](https://themes.gohugo.io/theme/hugo-theme-color-your-world/)
@@ -245,6 +246,12 @@ A **really** basic 404 page can be generated via config file by using:
paragraph = "Nothing to see here, buddy."
```
+### Custom front matter params
+
+* `mainTitle` (string): Can be used to replace the `<title>` meta tag, if you wish it to be different from the `<h1>` (which will still use the `title` param);
+* `sitemapExclude` (true|false): Can be used to exclude a page/section from the sitemap;
+* `noindex` (true|false): Similar to the above. Can be used to exclude a page/section from being indexed (by bots or your own site). It will change the meta tag `robots` to `noindex` and the page(s) will not be added to the site's search index.
+
### Custom partials
* The site title can be replaced by creating a file named `layouts/partials/custom/site-title.html`;
@@ -252,9 +259,9 @@ A **really** basic 404 page can be generated via config file by using:
* Custom CSS can be imported into the main CSS file by creating a file named `static/css/custom.css` or `assets/scss/custom.scss`;
* The `copyright` param can be replaced by creating a file named `layouts/partials/custom/copyright.html`.
-### More config
+### More params
-More possible params for your config file:
+More possible params for your config file (or front matter):
```toml
[params]
@@ -292,9 +299,9 @@ More possible params for your config file:
markupImgClass = "borderless"
# This will append a separator (of your choice) along the site title to your <title>
+ # ie.: | ❚ - – — • ⚫
# You can disabled it PER PAGE by using "disableTitleSeparator" at front
# matter or disable it entirely by commenting the line below
- # ie.: | ❚ - – — • ⚫
titleSeparator = "|"
[params.search]