From f1597bd83cc93d94632c77f8b78d07d3242268ec Mon Sep 17 00:00:00 2001
From: Alexander Bilz <mail@alexbilz.com>
Date: Mon, 18 May 2020 19:12:24 +0000
Subject: [PATCH] About page linked in main menu

---
 exampleSite/config.toml      |    5 +++++
 exampleSite/content/about.md |    3 ---
 README.md                    |   12 ++++++------
 3 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/README.md b/README.md
index 8060624..0007e38 100644
--- a/README.md
+++ b/README.md
@@ -67,12 +67,12 @@
   weight = 200
   identifier = "posts"
   url = "/post/"
-```
-If you want to add content to menus, please see the `about.md` file as an example.
-```
-menu: main
-name: "About"
-weight: 300
+
+  [[menu.main]]
+  name = "About"
+  weight = 300
+  identifier = "about"
+  url = "/about/"
 ```
 ### Comments powered by Disqus
 No comment section is shown on the `single.html`, unless a disqus code is specified in the `config.toml` file.
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 56c4efa..cede40f 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -63,3 +63,8 @@
   identifier = "posts"
   url = "/post/"
 
+  [[menu.main]]
+  name = "About"
+  weight = 300
+  identifier = "about"
+  url = "/about/"
\ No newline at end of file
diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md
index d3a9f01..78c9c92 100644
--- a/exampleSite/content/about.md
+++ b/exampleSite/content/about.md
@@ -4,9 +4,6 @@
 date: "2018-02-11"
 aliases: ["about-us","about-hugo","contact"]
 author: "Hugo Authors"
-menu: main
-name: "About"
-weight: 300
 ---
 
 Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.

--
Gitblit v1.10.0