From 24b483f6025f44eea513f138f4b0be01580d412c Mon Sep 17 00:00:00 2001 From: Edvin N Date: Thu, 8 Aug 2019 22:31:01 +0200 Subject: [PATCH] Changing url back to /blog (#5) I thought that i found a bug in the theme but it was a config error. I reported it in: https://github.com/luizdepra/hugo-coder/issues/204 But i got redirected to: https://github.com/luizdepra/hugo-coder/issues/186 That was the solution, this commit implements it. --- config.toml | 8 ++++---- content/posts/_index.md | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 content/posts/_index.md diff --git a/config.toml b/config.toml index e30a054..c14620e 100644 --- a/config.toml +++ b/config.toml @@ -64,9 +64,9 @@ pygmentscodefencesguesssyntax = true series = "series" tag = "tags" -# linkedin = "edvin-norling-54832135" -# strava = "28887261" -# email = "edvin.norling@gmail.com" +# Overwrite posts to blogs, i don't like the posts url +[permalinks] + posts = "/blog/:filename" [[params.social]] name = "Github" @@ -106,7 +106,7 @@ pygmentscodefencesguesssyntax = true [[languages.en.menu.main]] name = "Blog" weight = 2 - url = "/posts/" + url = "/blog/" #[[languages.en.menu.main]] #name = "Projects" diff --git a/content/posts/_index.md b/content/posts/_index.md new file mode 100644 index 0000000..f63ddef --- /dev/null +++ b/content/posts/_index.md @@ -0,0 +1,4 @@ +--- +title: Blog +url: /blog/ +--- \ No newline at end of file