From d5a9c64a7c68094e58cad4f76de5ec653379ccd5 Mon Sep 17 00:00:00 2001 From: Alexandros Date: Wed, 20 Feb 2019 21:30:20 +0200 Subject: [PATCH] Move menu configuration in config.toml (#25) --- config.toml | 10 +++++++++- content/post/creating-a-new-theme.md | 5 ----- content/post/goisforlovers.md | 1 - content/post/hugoisforlovers.md | 1 - content/post/migrate-from-jekyll.md | 4 ---- 5 files changed, 9 insertions(+), 12 deletions(-) diff --git a/config.toml b/config.toml index b9ded72d..09f739fe 100644 --- a/config.toml +++ b/config.toml @@ -16,4 +16,12 @@ title = "Hugo Themes" [languages.fr] languageName = "Français" weight = 2 -title = "Thèmes Hugo" \ No newline at end of file +title = "Thèmes Hugo" + +[menu] + + [[menu.main]] + identifier = "tutorials" + name = "Tutorials" + url = "/post/" + weight = 5 \ No newline at end of file diff --git a/content/post/creating-a-new-theme.md b/content/post/creating-a-new-theme.md index 8fe3a30b..bf33bc3c 100644 --- a/content/post/creating-a-new-theme.md +++ b/content/post/creating-a-new-theme.md @@ -2,11 +2,6 @@ author: "Michael Henderson" date: 2014-09-28 linktitle: Creating a New Theme -menu: - main: - parent: tutorials -next: /tutorials/github-pages-blog -prev: /tutorials/automated-deployments title: Creating a New Theme weight: 10 series: diff --git a/content/post/goisforlovers.md b/content/post/goisforlovers.md index 07c2d75a..003d8d56 100644 --- a/content/post/goisforlovers.md +++ b/content/post/goisforlovers.md @@ -13,7 +13,6 @@ categories = [ "Development", "golang", ] -menu = "main" series = ["Hugo 101"] +++ diff --git a/content/post/hugoisforlovers.md b/content/post/hugoisforlovers.md index e9f40e34..47124442 100644 --- a/content/post/hugoisforlovers.md +++ b/content/post/hugoisforlovers.md @@ -12,7 +12,6 @@ categories = [ "Development", "golang", ] -menu = "main" series = ["Hugo 101"] +++ diff --git a/content/post/migrate-from-jekyll.md b/content/post/migrate-from-jekyll.md index 6281d314..a8b5a354 100644 --- a/content/post/migrate-from-jekyll.md +++ b/content/post/migrate-from-jekyll.md @@ -1,10 +1,6 @@ --- date: 2014-03-10 linktitle: Migrating from Jekyll -menu: - main: - parent: tutorials -prev: /tutorials/mathjax title: Migrate to Hugo from Jekyll weight: 10 series: