From 853492596dd78dedb755e66db8d79d01e13c66b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20de=20Pr=C3=A1?= Date: Fri, 23 Mar 2018 14:28:38 -0300 Subject: Fix template to suport empty social parameter --- README.md | 7 ++----- exampleSite/config.toml | 4 ---- layouts/partials/header.html | 4 ++-- layouts/partials/home.html | 4 +++- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index f6f0ac3..c838ed4 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,6 @@ Add the following lines to your `config.toml`. ```toml theme = "coder" # set the theme -[permalinks] # configure post and fixed pages permalinks - post = "posts/:title/" - default = ":title/" - [params] # theme parameters author = "John Doe" # author's name info = "Full Stack DevOps and Magician" # author's job title or info @@ -83,4 +79,5 @@ Coder is licensed under the [MIT license](https://github.com/luizdepra/hugo-code ## Special Thanks -- Gleen McComb, for his great [article](https://glennmccomb.com/articles/how-to-build-custom-hugo-pagination/) about custom pagination. \ No newline at end of file +- Gleen McComb, for his great [article](https://glennmccomb.com/articles/how-to-build-custom-hugo-pagination/) about custom pagination. +- All contributors, for every PR and Issue reported.\ diff --git a/exampleSite/config.toml b/exampleSite/config.toml index e6d21b4..69bd7dd 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -12,10 +12,6 @@ pygmentsstyle = "b2" pygmentscodefences = true pygmentscodefencesguesssyntax = true -[permalinks] - posts = "posts/:title/" - default = ":title/" - [params] author = "John Doe" description = "John Doe's personal website" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 34fd729..1a2ae40 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,7 +3,7 @@ {{ .Site.Title }} - {{with .Site.Menus.main}} + {{ with .Site.Menus.main }} - {{end}} + {{ end }} diff --git a/layouts/partials/home.html b/layouts/partials/home.html index 6c44ae0..e497537 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -2,10 +2,12 @@

{{ .Site.Params.author }}

{{ .Site.Params.info }}

+ {{ with .Site.Params.social }} + {{ end }}
-- cgit v1.2.3