Fix template to suport empty social parameter
| | |
| | | ```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 |
| | |
| | | ## Special Thanks |
| | | |
| | | - 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.\ |
| | |
| | | pygmentscodefences = true |
| | | pygmentscodefencesguesssyntax = true |
| | | |
| | | [permalinks] |
| | | posts = "posts/:title/" |
| | | default = ":title/" |
| | | |
| | | [params] |
| | | author = "John Doe" |
| | | description = "John Doe's personal website" |
| | |
| | | <div class="about"> |
| | | <h1>{{ .Site.Params.author }}</h1> |
| | | <h2>{{ .Site.Params.info }}</h2> |
| | | {{ with .Site.Params.social }} |
| | | <ul> |
| | | {{ range sort .Site.Params.social }} |
| | | {{ range sort .}} |
| | | <li><a href="{{ .url }}">{{ .name }}</a></li> |
| | | {{ end }} |
| | | </ul> |
| | | {{ end }} |
| | | </div> |
| | | </section> |